org.jboss.invocation.unified.marshall
Class HTTPInvocationMarshaller

java.lang.Object
  extended by org.jboss.remoting.marshal.serializable.SerializableMarshaller
      extended by org.jboss.remoting.marshal.http.HTTPMarshaller
          extended by org.jboss.invocation.unified.marshall.HTTPInvocationMarshaller
All Implemented Interfaces:
Serializable, org.jboss.remoting.marshal.Marshaller, org.jboss.remoting.marshal.SerialMarshaller

public class HTTPInvocationMarshaller
extends org.jboss.remoting.marshal.http.HTTPMarshaller

This marshaller is to be used in conjunction with the UnifiedInvoker and will look for an InvocationRequest to be passed to it, which is specific to EJB invocations.

Author:
Tom Elrod
See Also:
Serialized Form

Field Summary
static String DATATYPE
           
 
Constructor Summary
HTTPInvocationMarshaller()
           
 
Method Summary
 org.jboss.remoting.marshal.Marshaller cloneMarshaller()
           
 Object getTransactionPropagationContext()
           
 void write(Object dataObject, OutputStream output)
          Marshaller will need to take the dataObject and convert into primitive java data types and write to the given output.
 
Methods inherited from class org.jboss.remoting.marshal.serializable.SerializableMarshaller
getSerializationType, setSerializationType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATATYPE

public static final String DATATYPE
See Also:
Constant Field Values
Constructor Detail

HTTPInvocationMarshaller

public HTTPInvocationMarshaller()
Method Detail

write

public void write(Object dataObject,
                  OutputStream output)
           throws IOException
Marshaller will need to take the dataObject and convert into primitive java data types and write to the given output. Will check to see if dataObject being passed is an InvocationRequest, and if is, process it (including handling propagation of transaction). If is not an instance of InvocationRequest, will default back to SerializableMarshaller for processing.

Specified by:
write in interface org.jboss.remoting.marshal.Marshaller
Overrides:
write in class org.jboss.remoting.marshal.http.HTTPMarshaller
Parameters:
dataObject - Object to be writen to output
output - The data output to write the object data to.
Throws:
IOException

getTransactionPropagationContext

public Object getTransactionPropagationContext()
                                        throws SystemException
Throws:
SystemException

cloneMarshaller

public org.jboss.remoting.marshal.Marshaller cloneMarshaller()
                                                      throws CloneNotSupportedException
Specified by:
cloneMarshaller in interface org.jboss.remoting.marshal.Marshaller
Overrides:
cloneMarshaller in class org.jboss.remoting.marshal.http.HTTPMarshaller
Throws:
CloneNotSupportedException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.