Author: ron.sigal(a)jboss.com
Date: 2009-08-29 20:47:21 -0400 (Sat, 29 Aug 2009)
New Revision: 5406
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/web/WebInvokerTestClient.java
Log:
JBREM-1145: Uses remotingContentType instead of content-type.
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/web/WebInvokerTestClient.java
===================================================================
---
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/web/WebInvokerTestClient.java 2009-08-30
00:45:44 UTC (rev 5405)
+++
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/transport/web/WebInvokerTestClient.java 2009-08-30
00:47:21 UTC (rev 5406)
@@ -91,11 +91,12 @@
if (raw)
{
- headerProps.put("Content-Type", "application/soap+xml");
+ headerProps.put(HTTPMetadataConstants.REMOTING_CONTENT_TYPE,
HTTPMetadataConstants.REMOTING_CONTENT_TYPE_STRING);
}
else
{
headerProps.put("Content-Type", WebUtil.BINARY);
+ headerProps.put(HTTPMetadataConstants.REMOTING_CONTENT_TYPE,
HTTPMetadataConstants.REMOTING_CONTENT_TYPE_NON_STRING);
}
addHeaders(headerProps);
@@ -258,6 +259,7 @@
HttpsURLConnection conn = (HttpsURLConnection) url.openConnection();
conn.setDoOutput(true);
conn.setDoInput(true);
+ conn.addRequestProperty(HTTPMetadataConstants.REMOTING_CONTENT_TYPE,
HTTPMetadataConstants.REMOTING_CONTENT_TYPE_STRING);
os = conn.getOutputStream();
byte[] requestBytes = WebInvocationHandler.SET_CONTENT_TYPE.getBytes();
os.write(requestBytes);
@@ -268,6 +270,7 @@
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setDoOutput(true);
conn.setDoInput(true);
+ conn.addRequestProperty(HTTPMetadataConstants.REMOTING_CONTENT_TYPE,
HTTPMetadataConstants.REMOTING_CONTENT_TYPE_STRING);
os = conn.getOutputStream();
byte[] requestBytes = WebInvocationHandler.SET_CONTENT_TYPE.getBytes();
os.write(requestBytes);
Show replies by date