public abstract class ServerCommon extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
ServerCommon.MessageReciever |
| Modifier and Type | Method and Description |
|---|---|
protected org.jboss.marshalling.Marshaller |
prepareForMarshalling(DataOutput dataOutput)
Creates and returns a
Marshaller which is ready to be used for marshalling. |
protected org.jboss.marshalling.Unmarshaller |
prepareForUnMarshalling(DataInput dataInput)
Creates and returns a
Unmarshaller which is ready to be used for unmarshalling. |
protected org.jboss.marshalling.Unmarshaller |
prepareForUnMarshalling(DataInput dataInput,
org.jboss.marshalling.ClassResolver classResolver)
Creates and returns a
Unmarshaller which is ready to be used for unmarshalling. |
protected void |
sendWelcomeMessage() |
protected void |
write(org.jboss.remotingjmx.protocol.v2.Common.MessageWriter writer) |
protected void |
writeResponse(byte inResponseTo,
int correlationId) |
protected void |
writeResponse(Exception e,
byte inResponseTo,
int correlationId) |
protected void |
writeResponse(String response,
byte inResponseTo,
int correlationId) |
protected void sendWelcomeMessage()
throws IOException
IOExceptionprotected void writeResponse(Exception e, byte inResponseTo, int correlationId) throws IOException
IOExceptionprotected void writeResponse(byte inResponseTo,
int correlationId)
throws IOException
IOExceptionprotected void writeResponse(String response, byte inResponseTo, int correlationId) throws IOException
IOExceptionprotected org.jboss.marshalling.Marshaller prepareForMarshalling(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.dataOutput - The DataOutput to which the data will be marshalledIOExceptionprotected org.jboss.marshalling.Unmarshaller prepareForUnMarshalling(DataInput 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.
This unmarshaller will use the context class loader to resolve any classes.dataInput - The data input from which to unmarshallIOExceptionprotected org.jboss.marshalling.Unmarshaller prepareForUnMarshalling(DataInput dataInput, org.jboss.marshalling.ClassResolver classResolver) 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.dataInput - The data input from which to unmarshallclassResolver - The class resolver to use for unmarshallingIOExceptionprotected void write(org.jboss.remotingjmx.protocol.v2.Common.MessageWriter writer)
throws IOException
IOExceptionCopyright © 2016 JBoss, a division of Red Hat, Inc.. All rights reserved.