Author: ron.sigal(a)jboss.com
Date: 2009-08-17 22:20:05 -0400 (Mon, 17 Aug 2009)
New Revision: 5355
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/http/HTTPClientInvoker.java
Log:
JBREM-1145: Adds "remotingContentType" request header.
Modified:
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/http/HTTPClientInvoker.java
===================================================================
---
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/http/HTTPClientInvoker.java 2009-08-18
02:19:25 UTC (rev 5354)
+++
remoting2/branches/2.x/src/main/org/jboss/remoting/transport/http/HTTPClientInvoker.java 2009-08-18
02:20:05 UTC (rev 5355)
@@ -331,6 +331,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 = getOutputStream(conn);
if (marshaller instanceof VersionedMarshaller)
((VersionedMarshaller) marshaller).write(invocation, stream,
getVersion());
Show replies by date