1 /**********************************************************************
2 * Copyright (c) 2003 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * IBM - Initial API and implementation
10 **********************************************************************/
11 package net.sourceforge.phpdt.monitor.ui.internal.view;
13 import java.util.List;
15 import net.sourceforge.phpdt.monitor.core.IContentFilter;
16 import net.sourceforge.phpdt.monitor.core.IRequest;
18 import org.eclipse.core.runtime.IConfigurationElement;
21 * Manager interface for TCP/IP request and response message viewers
23 public interface IViewerManager {
25 * Displays the HTTP header viewers if they are hidden.
26 * If the viewers are not hidden, do nothing.
28 //public void showHeader();
31 * Hides the HTTP header viewers if they are showing.
32 * If the viewers are already hidden, do nothing.
34 //public void hideHeader();
37 * Set whether or not to show HTTP header details
40 public void setDisplayHeaderInfo(boolean b);
43 * Returns whether or not HTTP header details is showing
46 public boolean getDisplayHeaderInfo();
49 * Show the TCP/IP request message in a parent Composite
50 * @param rr org.eclipse.tcpip.monitor.internal.RequestResponse
51 * @param parent org.eclipse.swt.widgets.Composite
53 public void setRequest(IRequest rr);
56 * Returns an array of the available TCP/IP request viewer ids
57 * @return java.lang.String[]
59 public List getRequestViewers();
62 * Returns an array of the available TCP/IP response viewer ids
63 * @return java.lang.String[]
65 public List getResponseViewers();
68 * Set the TCP/IP request message viewer
69 * @param id java.lang.String
71 public void setRequestViewer(IConfigurationElement element);
74 * Set the TCP/IP response message viewer
75 * @param id java.lang.String
77 public void setResponseViewer(IConfigurationElement element);
79 public void addFilter(IContentFilter filter);
81 public void removeFilter(IContentFilter filter);