public abstract class MessageBase extends Object implements Message
defaultBufferSize, FLAG_NO_FRAG_BIG_ENDIAN, GIOPBigMagic, GIOPCancelRequest, GIOPCloseConnection, GIOPFragment, GIOPLocateReply, GIOPLocateRequest, GIOPMessageError, GIOPMessageHeaderLength, GIOPReply, GIOPRequest, LITTLE_ENDIAN_BIT, MORE_FRAGMENTS_BIT, THREAD_POOL_TO_USE_MASK, TRAILING_TWO_BIT_BYTE_MASK| Constructor and Description |
|---|
MessageBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
callback(MessageHandler handler) |
static CancelRequestMessage |
createCancelRequest(GIOPVersion gv,
int request_id) |
static Message |
createCloseConnection(GIOPVersion gv) |
static LocateReplyMessage |
createLocateReply(ORB orb,
GIOPVersion gv,
byte encodingVersion,
int request_id,
int locate_status,
IOR ior) |
static LocateRequestMessage |
createLocateRequest(ORB orb,
GIOPVersion gv,
byte encodingVersion,
int request_id,
byte[] object_key) |
static Message |
createMessageError(GIOPVersion gv) |
static ReplyMessage |
createReply(ORB orb,
GIOPVersion gv,
byte encodingVersion,
int request_id,
int reply_status,
ServiceContexts service_contexts,
IOR ior) |
static RequestMessage |
createRequest(ORB orb,
GIOPVersion gv,
byte encodingVersion,
int request_id,
boolean response_expected,
IOR ior,
short addrDisp,
String operation,
ServiceContexts service_contexts,
Principal requesting_principal) |
RequestId |
getCorbaRequestId()
Return a Message's CorbaRequestId.
|
byte |
getEncodingVersion() |
static RequestId |
getRequestIdFromMessageBytes(Message message,
ByteBuffer byteBuffer)
Get the request id from the 4 bytes following the 12 byte GIOP
request header if the request header exists.
|
int |
getThreadPoolToUse() |
static MessageBase |
parseGiopHeader(ORB orb,
Connection connection,
ByteBuffer buf,
int startPosition) |
void |
setEncodingVersion(byte version) |
static void |
setFlag(ByteBuffer byteBuffer,
int flag)
Set a flag in the given buffer (fragment bit, byte order bit, etc)
|
boolean |
supportsFragments()
Returns true if this message could be followed by a fragment.
|
static String |
typeToString(byte type) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateFragmentMessage, getGIOPVersion, getSize, getType, isLittleEndian, moreFragmentsToFollow, read, setSize, writepublic static String typeToString(byte type)
public static MessageBase parseGiopHeader(ORB orb, Connection connection, ByteBuffer buf, int startPosition)
public static RequestMessage createRequest(ORB orb, GIOPVersion gv, byte encodingVersion, int request_id, boolean response_expected, IOR ior, short addrDisp, String operation, ServiceContexts service_contexts, Principal requesting_principal)
public static ReplyMessage createReply(ORB orb, GIOPVersion gv, byte encodingVersion, int request_id, int reply_status, ServiceContexts service_contexts, IOR ior)
public static LocateRequestMessage createLocateRequest(ORB orb, GIOPVersion gv, byte encodingVersion, int request_id, byte[] object_key)
public static LocateReplyMessage createLocateReply(ORB orb, GIOPVersion gv, byte encodingVersion, int request_id, int locate_status, IOR ior)
public static CancelRequestMessage createCancelRequest(GIOPVersion gv, int request_id)
public static Message createCloseConnection(GIOPVersion gv)
public static Message createMessageError(GIOPVersion gv)
public static void setFlag(ByteBuffer byteBuffer, int flag)
public void callback(MessageHandler handler) throws IOException
callback in interface MessageIOExceptionpublic int getThreadPoolToUse()
getThreadPoolToUse in interface Messagepublic byte getEncodingVersion()
getEncodingVersion in interface Messagepublic void setEncodingVersion(byte version)
setEncodingVersion in interface Messagepublic RequestId getCorbaRequestId()
getCorbaRequestId in interface Messagepublic boolean supportsFragments()
supportsFragments in interface Messagetrue if Message supports fragmenting or is
a message fragment. Otherwise false it does
not support message fragments.public static RequestId getRequestIdFromMessageBytes(Message message, ByteBuffer byteBuffer)
CorbaRequestIdif Message supports a 12
+ 4 byte GIOP header. Otherwise returns a CorbaRequestId with an
undefined request id.Copyright © 2017–2019 Eclipse Foundation. All rights reserved.