Author: ron.sigal(a)jboss.com
Date: 2009-08-17 22:20:39 -0400 (Mon, 17 Aug 2009)
New Revision: 5356
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/http/HTTPClientInvoker.java
Log:
JBREM-1145: Adds "remotingContentType" request header.
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/http/HTTPClientInvoker.java
===================================================================
---
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/http/HTTPClientInvoker.java 2009-08-18
02:20:05 UTC (rev 5355)
+++
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/http/HTTPClientInvoker.java 2009-08-18
02:20:39 UTC (rev 5356)
@@ -285,6 +285,15 @@
conn.setDoInput(true);
conn.setRequestMethod(type);
+ if (invocation instanceof String)
+ {
+ conn.setRequestProperty(HTTPMetadataConstants.REMOTING_CONTENT_TYPE,
HTTPMetadataConstants.REMOTING_CONTENT_TYPE_STRING);
+ }
+ else
+ {
+ conn.setRequestProperty(HTTPMetadataConstants.REMOTING_CONTENT_TYPE,
HTTPMetadataConstants.REMOTING_CONTENT_TYPE_NON_STRING);
+ }
+
OutputStream stream = conn.getOutputStream();
if (marshaller instanceof VersionedMarshaller)
((VersionedMarshaller) marshaller).write(invocation, stream,
Version.getDefaultVersion());
Show replies by date