org.apache.servicemix.exec.marshaler
Class DefaultExecMarshaler

java.lang.Object
  extended by org.apache.servicemix.exec.marshaler.DefaultExecMarshaler
All Implemented Interfaces:
ExecMarshalerSupport

public class DefaultExecMarshaler
extends java.lang.Object
implements ExecMarshalerSupport

Default exec marshaler that use JAXB to marshal and unmarshal exec objects.

Author:
jbonofre

Constructor Summary
DefaultExecMarshaler()
           
 
Method Summary
 void marshal(ExecResponse execResponse, javax.jbi.messaging.NormalizedMessage out)
           Marshal an ExecResponse into the out NormalizedMessage.
 ExecRequest unmarshal(javax.jbi.messaging.NormalizedMessage in)
           Unmarshal the content of the in NormalizedMessage to an ExecRequest.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultExecMarshaler

public DefaultExecMarshaler()
Method Detail

unmarshal

public ExecRequest unmarshal(javax.jbi.messaging.NormalizedMessage in)
                      throws java.lang.Exception
Description copied from interface: ExecMarshalerSupport

Unmarshal the content of the in NormalizedMessage to an ExecRequest.

Specified by:
unmarshal in interface ExecMarshalerSupport
Parameters:
in - the in message.
Returns:
the exec request.
Throws:
java.lang.Exception - in case of unmarshalling error.

marshal

public void marshal(ExecResponse execResponse,
                    javax.jbi.messaging.NormalizedMessage out)
             throws java.lang.Exception
Description copied from interface: ExecMarshalerSupport

Marshal an ExecResponse into the out NormalizedMessage.

Specified by:
marshal in interface ExecMarshalerSupport
Parameters:
execResponse - the exec response.
out - the out message.
Throws:
java.lang.Exception - in case of marshalling error.


Copyright © 2005-2011 FuseSource. All Rights Reserved.