diff options
author | deboer | 2006-07-07 20:17:41 +0000 |
---|---|---|
committer | deboer | 2006-07-07 20:17:41 +0000 |
commit | 232ab31f7dd1cdbaf8bd5532e47836074f736ef2 (patch) | |
tree | fc4147f41e6a8e59747db7063f1821280a0e1a9f /plugins/org.eclipse.wst.internet.monitor.core | |
parent | 87a2808fda9f0c67d5574553cf2ed05e0a2efaef (diff) | |
download | webtools.servertools-232ab31f7dd1cdbaf8bd5532e47836074f736ef2.tar.gz webtools.servertools-232ab31f7dd1cdbaf8bd5532e47836074f736ef2.tar.xz webtools.servertools-232ab31f7dd1cdbaf8bd5532e47836074f736ef2.zip |
[102504] TCP/IP monitor blank initially
Diffstat (limited to 'plugins/org.eclipse.wst.internet.monitor.core')
4 files changed, 14 insertions, 13 deletions
diff --git a/plugins/org.eclipse.wst.internet.monitor.core/META-INF/MANIFEST.MF b/plugins/org.eclipse.wst.internet.monitor.core/META-INF/MANIFEST.MF index 546e39306..bf3bf97cc 100644 --- a/plugins/org.eclipse.wst.internet.monitor.core/META-INF/MANIFEST.MF +++ b/plugins/org.eclipse.wst.internet.monitor.core/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: org.eclipse.wst.internet.monitor.core; singleton:=true -Bundle-Version: 1.0.102.qualifier +Bundle-Version: 1.0.103.qualifier Bundle-Activator: org.eclipse.wst.internet.monitor.core.internal.MonitorPlugin Bundle-Vendor: %providerName Bundle-Localization: plugin diff --git a/plugins/org.eclipse.wst.internet.monitor.core/monitorcore/org/eclipse/wst/internet/monitor/core/internal/http/HTTPRequest.java b/plugins/org.eclipse.wst.internet.monitor.core/monitorcore/org/eclipse/wst/internet/monitor/core/internal/http/HTTPRequest.java index ba4f34f2b..fc78cb4bd 100644 --- a/plugins/org.eclipse.wst.internet.monitor.core/monitorcore/org/eclipse/wst/internet/monitor/core/internal/http/HTTPRequest.java +++ b/plugins/org.eclipse.wst.internet.monitor.core/monitorcore/org/eclipse/wst/internet/monitor/core/internal/http/HTTPRequest.java @@ -22,7 +22,7 @@ public class HTTPRequest extends Request { protected static final String HTTP_REQUEST_BODY = "request-body"; protected static final String HTTP_RESPONSE_BODY = "response-body"; - + protected static final byte[] EMPTY = new byte[0]; /** @@ -48,7 +48,7 @@ public class HTTPRequest extends Request { else return getRequestContent(); } - + /** * @see Request#getResponse(int) */ @@ -60,35 +60,35 @@ public class HTTPRequest extends Request { else return getResponseContent(); } - + protected byte[] getRequestHeader() { Object obj = getProperty(HTTP_REQUEST_HEADER); if (obj == null || !(obj instanceof byte[])) return null; return (byte[]) obj; } - + protected byte[] getRequestContent() { Object obj = getProperty(HTTP_REQUEST_BODY); if (obj == null || !(obj instanceof byte[])) return null; return (byte[]) obj; } - + protected byte[] getResponseHeader() { Object obj = getProperty(HTTP_RESPONSE_HEADER); if (obj == null || !(obj instanceof byte[])) return null; return (byte[]) obj; } - + protected byte[] getResponseContent() { Object obj = getProperty(HTTP_RESPONSE_BODY); if (obj == null || !(obj instanceof byte[])) return null; return (byte[]) obj; } - + protected void setName(String n) { super.setName(n); } diff --git a/plugins/org.eclipse.wst.internet.monitor.core/monitorcore/org/eclipse/wst/internet/monitor/core/internal/http/HTTPThread.java b/plugins/org.eclipse.wst.internet.monitor.core/monitorcore/org/eclipse/wst/internet/monitor/core/internal/http/HTTPThread.java index e2650d1fb..cde04155b 100644 --- a/plugins/org.eclipse.wst.internet.monitor.core/monitorcore/org/eclipse/wst/internet/monitor/core/internal/http/HTTPThread.java +++ b/plugins/org.eclipse.wst.internet.monitor.core/monitorcore/org/eclipse/wst/internet/monitor/core/internal/http/HTTPThread.java @@ -622,7 +622,7 @@ Host: localhost:8081 } Trace.trace(Trace.PARSING, "Done notifying request " + this); } - + protected void setHTTPHeader(Request rr) { if (isRequest) { byte[] b = rr.getRequest(Request.ALL); @@ -636,7 +636,7 @@ Host: localhost:8081 rr.setProperty(HTTPRequest.HTTP_RESPONSE_HEADER, h); } } - + protected void setHTTPBody(byte[] b) { Request rr = conn.getRequestResponse(isRequest); if (isRequest) diff --git a/plugins/org.eclipse.wst.internet.monitor.core/monitorcore/org/eclipse/wst/internet/monitor/core/internal/provisional/Request.java b/plugins/org.eclipse.wst.internet.monitor.core/monitorcore/org/eclipse/wst/internet/monitor/core/internal/provisional/Request.java index e53cb9adf..d0e127f15 100644 --- a/plugins/org.eclipse.wst.internet.monitor.core/monitorcore/org/eclipse/wst/internet/monitor/core/internal/provisional/Request.java +++ b/plugins/org.eclipse.wst.internet.monitor.core/monitorcore/org/eclipse/wst/internet/monitor/core/internal/provisional/Request.java @@ -228,6 +228,7 @@ public class Request implements IAdaptable { } catch (Exception e) { Trace.trace(Trace.SEVERE, "Could not add property", e); } + monitor.requestChanged(this); } /** @@ -275,12 +276,12 @@ public class Request implements IAdaptable { public void addToResponse(byte[] addResponse) { if (addResponse == null || addResponse.length == 0) return; - + if (response == null || response.length == 0) { setResponse(addResponse); return; } - + int size = response.length + addResponse.length; byte[] b = new byte[size]; System.arraycopy(response, 0, b, 0, response.length); @@ -297,7 +298,7 @@ public class Request implements IAdaptable { protected void setRequest(byte[] request) { if (request == null || request.length == 0) return; - + this.request = request; monitor.requestChanged(this); } |