org.apache.servicemix.http.endpoints
Class SerializedMarshaler
java.lang.Object
org.apache.servicemix.http.endpoints.AbstractHttpConsumerMarshaler
org.apache.servicemix.http.endpoints.DefaultHttpConsumerMarshaler
org.apache.servicemix.http.endpoints.SerializedMarshaler
- All Implemented Interfaces:
- HttpConsumerMarshaler
public class SerializedMarshaler
- extends DefaultHttpConsumerMarshaler
A marshaler that handles Java serialized content from the InputStream of the HttpServletRequest object and to the
OutputStream of the HttpServletResponse object. This class is intended to handle requests initiated by the Spring httpinvoker
package so the marshaled/unmarshaled XML invocation will be Spring RemoteInvocation/
RemoteInvocationResult objects respectively.
This class makes no assumptions about how XML should be marshaled/unmarshaled. I.e., there is currently no way to
customize the marshaled XML invocation. So this marshaler will need to pass the XML to a component that can transform
it into some custom XML. The servicemix-saxon component can handle this very easily via XLST.
- Author:
- bsnyder, aco
|
Method Summary |
javax.jbi.messaging.MessageExchange |
createExchange(javax.servlet.http.HttpServletRequest request,
javax.jbi.component.ComponentContext context)
|
void |
sendOut(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage outMsg,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SerializedMarshaler
public SerializedMarshaler()
createExchange
public javax.jbi.messaging.MessageExchange createExchange(javax.servlet.http.HttpServletRequest request,
javax.jbi.component.ComponentContext context)
throws java.lang.Exception
- Specified by:
createExchange in interface HttpConsumerMarshaler- Overrides:
createExchange in class DefaultHttpConsumerMarshaler
- Throws:
java.lang.Exception
sendOut
public void sendOut(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage outMsg,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
- Specified by:
sendOut in interface HttpConsumerMarshaler- Overrides:
sendOut in class DefaultHttpConsumerMarshaler
- Throws:
java.lang.Exception
Copyright © 2005-2012 FuseSource. All Rights Reserved.