[102504] TCP/IP monitor blank initially
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 546e393..bf3bf97 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 @@
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 ba4f34f..fc78cb4 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 @@
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 @@
else
return getRequestContent();
}
-
+
/**
* @see Request#getResponse(int)
*/
@@ -60,35 +60,35 @@
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 e2650d1..cde0415 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 @@
}
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 @@
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 e53cb9a..d0e127f 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 @@
} catch (Exception e) {
Trace.trace(Trace.SEVERE, "Could not add property", e);
}
+ monitor.requestChanged(this);
}
/**
@@ -275,12 +276,12 @@
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 @@
protected void setRequest(byte[] request) {
if (request == null || request.length == 0)
return;
-
+
this.request = request;
monitor.requestChanged(this);
}