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.core;
13 import java.util.Date;
17 public interface IRequest {
18 public static final byte TRANSPORT = 1;
19 public static final byte CONTENT = 2;
20 public static final byte ALL = 3;
23 * Return the type of the request.
25 * @return net.sourceforge.phpdt.monitor.core.IType
27 public IProtocolAdapter getType();
30 * Return the date/time of this request.
32 * @return java.util.Date
34 public Date getDate();
37 * Returns the local port.
41 public int getLocalPort();
44 * Returns the remote host.
46 * @return java.lang.String
48 public String getRemoteHost();
51 * Returns the remote port.
55 public int getRemotePort();
58 * Returns the request as a byte array.
62 public byte[] getRequest(byte type);
65 * Returns the response as a byte array.
69 public byte[] getResponse(byte type);
72 * Returns the response time in milliseconds.
76 public long getResponseTime();
79 * Returns a label for this request.
81 * @return java.lang.String
83 public String getLabel();
88 public void addProperty(String key, Object value);
93 public String getStringProperty(String key);
98 public Integer getIntegerProperty(String key);
103 public Object getObjectProperty(String key);
108 public void fireChangedEvent();