Interface Message
-
- All Known Subinterfaces:
CancelRequestMessage,FragmentMessage,LocateReplyMessage,LocateReplyOrReplyMessage,LocateRequestMessage,ReplyMessage,RequestMessage
- All Known Implementing Classes:
CancelRequestMessage_1_0,CancelRequestMessage_1_1,CancelRequestMessage_1_2,FragmentMessage_1_1,FragmentMessage_1_2,LocateReplyMessage_1_0,LocateReplyMessage_1_1,LocateReplyMessage_1_2,LocateRequestMessage_1_0,LocateRequestMessage_1_1,LocateRequestMessage_1_2,Message_1_0,Message_1_1,Message_1_2,MessageBase,ReplyMessage_1_0,ReplyMessage_1_1,ReplyMessage_1_2,RequestMessage_1_0,RequestMessage_1_1,RequestMessage_1_2
public interface MessageThis is the base interface for different message type interfaces.- Version:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description static intdefaultBufferSizestatic byteFLAG_NO_FRAG_BIG_ENDIANstatic intGIOPBigMagicstatic byteGIOPCancelRequeststatic byteGIOPCloseConnectionstatic byteGIOPFragmentstatic byteGIOPLocateReplystatic byteGIOPLocateRequeststatic byteGIOPMessageErrorstatic intGIOPMessageHeaderLengthstatic byteGIOPReplystatic byteGIOPRequeststatic byteLITTLE_ENDIAN_BITstatic byteMORE_FRAGMENTS_BITstatic byteTHREAD_POOL_TO_USE_MASKstatic byteTRAILING_TWO_BIT_BYTE_MASK
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcallback(MessageHandler handler)FragmentMessagecreateFragmentMessage()RequestIdgetCorbaRequestId()Return a Message's CorbaRequestId.bytegetEncodingVersion()GIOPVersiongetGIOPVersion()intgetSize()intgetThreadPoolToUse()intgetType()booleanisLittleEndian()booleanmoreFragmentsToFollow()voidread(InputStream istream)voidsetEncodingVersion(byte version)voidsetSize(java.nio.ByteBuffer byteBuffer, int size)booleansupportsFragments()Returns whether the Message supports message fragmenting.voidwrite(OutputStream ostream)
-
-
-
Field Detail
-
defaultBufferSize
static final int defaultBufferSize
- See Also:
- Constant Field Values
-
GIOPBigMagic
static final int GIOPBigMagic
- See Also:
- Constant Field Values
-
GIOPMessageHeaderLength
static final int GIOPMessageHeaderLength
- See Also:
- Constant Field Values
-
LITTLE_ENDIAN_BIT
static final byte LITTLE_ENDIAN_BIT
- See Also:
- Constant Field Values
-
MORE_FRAGMENTS_BIT
static final byte MORE_FRAGMENTS_BIT
- See Also:
- Constant Field Values
-
FLAG_NO_FRAG_BIG_ENDIAN
static final byte FLAG_NO_FRAG_BIG_ENDIAN
- See Also:
- Constant Field Values
-
TRAILING_TWO_BIT_BYTE_MASK
static final byte TRAILING_TWO_BIT_BYTE_MASK
- See Also:
- Constant Field Values
-
THREAD_POOL_TO_USE_MASK
static final byte THREAD_POOL_TO_USE_MASK
- See Also:
- Constant Field Values
-
GIOPRequest
static final byte GIOPRequest
- See Also:
- Constant Field Values
-
GIOPReply
static final byte GIOPReply
- See Also:
- Constant Field Values
-
GIOPCancelRequest
static final byte GIOPCancelRequest
- See Also:
- Constant Field Values
-
GIOPLocateRequest
static final byte GIOPLocateRequest
- See Also:
- Constant Field Values
-
GIOPLocateReply
static final byte GIOPLocateReply
- See Also:
- Constant Field Values
-
GIOPCloseConnection
static final byte GIOPCloseConnection
- See Also:
- Constant Field Values
-
GIOPMessageError
static final byte GIOPMessageError
- See Also:
- Constant Field Values
-
GIOPFragment
static final byte GIOPFragment
- See Also:
- Constant Field Values
-
-
Method Detail
-
supportsFragments
boolean supportsFragments()
Returns whether the Message supports message fragmenting.- Returns:
trueif Message supports fragmenting or is a message fragment. Otherwisefalseit does not support message fragments.
-
getGIOPVersion
GIOPVersion getGIOPVersion()
-
getEncodingVersion
byte getEncodingVersion()
-
isLittleEndian
boolean isLittleEndian()
-
moreFragmentsToFollow
boolean moreFragmentsToFollow()
-
getType
int getType()
-
getSize
int getSize()
-
getThreadPoolToUse
int getThreadPoolToUse()
-
read
void read(InputStream istream)
-
write
void write(OutputStream ostream)
-
setSize
void setSize(java.nio.ByteBuffer byteBuffer, int size)
-
createFragmentMessage
FragmentMessage createFragmentMessage()
-
callback
void callback(MessageHandler handler) throws java.io.IOException
- Throws:
java.io.IOException
-
setEncodingVersion
void setEncodingVersion(byte version)
-
getCorbaRequestId
RequestId getCorbaRequestId()
Return a Message's CorbaRequestId. Messages which do not support a request id in the 4 bytes following the 12 byte GIOP message header shall return an undefined CorbaRequestId.- Returns:
- a Message's CorbaRequestId.
-
-