public abstract class AbstractMessageHandler extends Object implements MessageHandler
Modifier and Type | Field and Description |
---|---|
protected static byte |
HEADER_NO_SUCH_EJB_FAILURE |
protected static byte |
HEADER_NO_SUCH_EJB_METHOD_FAILURE |
protected static byte |
HEADER_SESSION_NOT_ACTIVE_FAILURE |
Constructor and Description |
---|
AbstractMessageHandler() |
Modifier and Type | Method and Description |
---|---|
protected org.jboss.marshalling.Marshaller |
prepareForMarshalling(org.jboss.marshalling.MarshallerFactory marshallerFactory,
DataOutput dataOutput)
Creates and returns a
Marshaller which is ready to be used for marshalling. |
protected org.jboss.marshalling.Unmarshaller |
prepareForUnMarshalling(org.jboss.marshalling.MarshallerFactory marshallerFactory,
org.jboss.marshalling.ClassResolver classResolver,
DataInputStream dataInput)
Creates and returns a
Unmarshaller which is ready to be used for unmarshalling. |
protected Map<String,Object> |
readAttachments(ObjectInput input) |
protected void |
writeAttachments(ObjectOutput output,
Map<String,Object> attachments) |
protected void |
writeException(ChannelAssociation channelAssociation,
org.jboss.marshalling.MarshallerFactory marshallerFactory,
short invocationId,
Throwable t,
Map<String,Object> attachments) |
protected void |
writeInvocationFailure(ChannelAssociation channelAssociation,
byte messageHeader,
short invocationId,
String failureMessage) |
protected void |
writeNoSuchEJBFailureMessage(ChannelAssociation channelAssociation,
short invocationId,
String appName,
String moduleName,
String distinctname,
String beanName,
String viewClassName) |
protected void |
writeNoSuchEJBMethodFailureMessage(ChannelAssociation channelAssociation,
short invocationId,
String appName,
String moduleName,
String distinctname,
String beanName,
String viewClassName,
String methodName,
String[] methodParamTypes) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
processMessage
protected static final byte HEADER_NO_SUCH_EJB_FAILURE
protected static final byte HEADER_NO_SUCH_EJB_METHOD_FAILURE
protected static final byte HEADER_SESSION_NOT_ACTIVE_FAILURE
protected Map<String,Object> readAttachments(ObjectInput input) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
protected void writeAttachments(ObjectOutput output, Map<String,Object> attachments) throws IOException
IOException
protected void writeException(ChannelAssociation channelAssociation, org.jboss.marshalling.MarshallerFactory marshallerFactory, short invocationId, Throwable t, Map<String,Object> attachments) throws IOException
IOException
protected void writeInvocationFailure(ChannelAssociation channelAssociation, byte messageHeader, short invocationId, String failureMessage) throws IOException
IOException
protected void writeNoSuchEJBFailureMessage(ChannelAssociation channelAssociation, short invocationId, String appName, String moduleName, String distinctname, String beanName, String viewClassName) throws IOException
IOException
protected void writeNoSuchEJBMethodFailureMessage(ChannelAssociation channelAssociation, short invocationId, String appName, String moduleName, String distinctname, String beanName, String viewClassName, String methodName, String[] methodParamTypes) throws IOException
IOException
protected org.jboss.marshalling.Marshaller prepareForMarshalling(org.jboss.marshalling.MarshallerFactory marshallerFactory, DataOutput dataOutput) throws IOException
Marshaller
which is ready to be used for marshalling. The Marshaller.start(org.jboss.marshalling.ByteOutput)
will be invoked by this method, to use the passed dataOutput
, before returning the marshaller.marshallerFactory
- The marshaller factorydataOutput
- The DataOutput
to which the data will be marshalledIOException
protected org.jboss.marshalling.Unmarshaller prepareForUnMarshalling(org.jboss.marshalling.MarshallerFactory marshallerFactory, org.jboss.marshalling.ClassResolver classResolver, DataInputStream dataInput) throws IOException
Unmarshaller
which is ready to be used for unmarshalling. The Unmarshaller.start(org.jboss.marshalling.ByteInput)
will be invoked by this method, to use the passed dataInput
, before returning the unmarshaller.marshallerFactory
- The marshaller factoryclassResolver
- The ClassResolver
which will be used during unmarshallingdataInput
- The data input from which to unmarshallIOException
Copyright © 2017 JBoss by Red Hat. All rights reserved.