org.apache.servicemix.exec.marshaler
Interface ExecMarshalerSupport

All Known Implementing Classes:
DefaultExecMarshaler

public interface ExecMarshalerSupport

This interface describes the behavior of an exec marshaler.

Author:
jbonofre

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.
 

Method Detail

unmarshal

ExecRequest unmarshal(javax.jbi.messaging.NormalizedMessage in)
                      throws java.lang.Exception

Unmarshal the content of the in NormalizedMessage to an ExecRequest.

Parameters:
in - the in message.
Returns:
the exec request.
Throws:
java.lang.Exception - in case of unmarshalling error.

marshal

void marshal(ExecResponse execResponse,
             javax.jbi.messaging.NormalizedMessage out)
             throws java.lang.Exception

Marshal an ExecResponse into the out NormalizedMessage.

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.