Author: ron.sigal(a)jboss.com
Date: 2009-05-10 02:47:36 -0400 (Sun, 10 May 2009)
New Revision: 5188
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/coyote/CoyoteInvoker.java
Log:
JBREM-1079: Implements line preservation feature.
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/coyote/CoyoteInvoker.java
===================================================================
---
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/coyote/CoyoteInvoker.java 2009-05-10
06:47:12 UTC (rev 5187)
+++
remoting2/branches/2.2/src/main/org/jboss/remoting/transport/coyote/CoyoteInvoker.java 2009-05-10
06:47:36 UTC (rev 5188)
@@ -34,6 +34,7 @@
import org.jboss.remoting.marshal.UnMarshaller;
import org.jboss.remoting.marshal.VersionedMarshaller;
import org.jboss.remoting.marshal.VersionedUnMarshaller;
+import org.jboss.remoting.marshal.http.HTTPUnMarshaller;
import org.jboss.remoting.security.SSLSocketBuilder;
import org.jboss.remoting.transport.coyote.ssl.RemotingSSLImplementation;
import org.jboss.remoting.transport.coyote.ssl.RemotingServerSocketFactory;
@@ -452,6 +453,13 @@
case Version.VERSION_2:
case Version.VERSION_2_2:
{
+ // UnMarshaller may not be an HTTPUnMarshaller, in which case it
+ // can ignore this parameter.
+ Object o = configuration.get(HTTPUnMarshaller.PRESERVE_LINES);
+ if (o != null)
+ {
+ request.put(HTTPUnMarshaller.PRESERVE_LINES, o);
+ }
receivedInvocationRequest.set(FALSE);
InvocationRequest invocationRequest = null;
Show replies by date