Class MessageBase
java.lang.Object
com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase
- All Implemented Interfaces:
Message
- Direct Known Subclasses:
Message_1_0,Message_1_1
This class acts as the base class for the various GIOP message types. This
also serves as a factory to create various message types. We currently
support GIOP 1.0, 1.1 and 1.2 message types.
- Author:
- Ram Jeyaraman 05/14/2000
-
Field Summary
FieldsFields inherited from interface com.sun.corba.se.impl.protocol.giopmsgheaders.Message
CDR_ENC_VERSION, defaultBufferSize, FLAG_NO_FRAG_BIG_ENDIAN, GIOPBigEndian, GIOPBigMagic, GIOPCancelRequest, GIOPCloseConnection, GIOPFragment, GIOPLittleEndian, GIOPLittleMagic, GIOPLocateReply, GIOPLocateRequest, GIOPMessageError, GIOPMessageHeaderLength, GIOPReply, GIOPRequest, JAVA_ENC_VERSION, LITTLE_ENDIAN_BIT, MORE_FRAGMENTS_BIT, THREAD_POOL_TO_USE_MASK, TRAILING_TWO_BIT_BYTE_MASK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcallback(MessageHandler handler) static voidclearFlag(byte[] buf, int flag) Clears a flag in the given bufferstatic CancelRequestMessagecreateCancelRequest(GIOPVersion gv, int request_id) static Messagestatic FragmentMessagestatic LocateReplyMessagecreateLocateReply(ORB orb, GIOPVersion gv, byte encodingVersion, int request_id, int locate_status, IOR ior) static LocateRequestMessagecreateLocateRequest(ORB orb, GIOPVersion gv, byte encodingVersion, int request_id, byte[] object_key) static Messagestatic ReplyMessagecreateReply(ORB orb, GIOPVersion gv, byte encodingVersion, int request_id, int reply_status, ServiceContexts service_contexts, IOR ior) static RequestMessagecreateRequest(ORB orb, GIOPVersion gv, byte encodingVersion, int request_id, boolean response_expected, IOR ior, short addrDisp, String operation, ServiceContexts service_contexts, Principal requesting_principal) bytestatic intgetRequestId(Message msg) intstatic MessagereadGIOPBody(ORB orb, CorbaConnection connection, Message msg) static MessageBasereadGIOPHeader(ORB orb, CorbaConnection connection) static MessageBasereadGIOPMessage(ORB orb, CorbaConnection connection) voidsetByteBuffer(ByteBuffer byteBuffer) voidsetEncodingVersion(byte version) static voidsetFlag(ByteBuffer byteBuffer, int flag) Set a flag in the given buffer (fragment bit, byte order bit, etc)static StringtypeToString(byte type) static StringtypeToString(int type) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sun.corba.se.impl.protocol.giopmsgheaders.Message
createFragmentMessage, getGIOPVersion, getSize, getType, isLittleEndian, moreFragmentsToFollow, read, setSize, write
-
Field Details
-
giopHeader
public byte[] giopHeader
-
-
Constructor Details
-
MessageBase
public MessageBase()
-
-
Method Details
-
typeToString
-
typeToString
-
readGIOPMessage
-
readGIOPHeader
-
readGIOPBody
-
createRequest
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) -
createReply
public static ReplyMessage createReply(ORB orb, GIOPVersion gv, byte encodingVersion, int request_id, int reply_status, ServiceContexts service_contexts, IOR ior) -
createLocateRequest
public static LocateRequestMessage createLocateRequest(ORB orb, GIOPVersion gv, byte encodingVersion, int request_id, byte[] object_key) -
createLocateReply
public static LocateReplyMessage createLocateReply(ORB orb, GIOPVersion gv, byte encodingVersion, int request_id, int locate_status, IOR ior) -
createCancelRequest
-
createCloseConnection
-
createMessageError
-
createFragmentMessage
-
getRequestId
-
setFlag
Set a flag in the given buffer (fragment bit, byte order bit, etc) -
clearFlag
public static void clearFlag(byte[] buf, int flag) Clears a flag in the given buffer -
callback
- Specified by:
callbackin interfaceMessage- Throws:
IOException
-
getByteBuffer
- Specified by:
getByteBufferin interfaceMessage
-
setByteBuffer
- Specified by:
setByteBufferin interfaceMessage
-
getThreadPoolToUse
public int getThreadPoolToUse()- Specified by:
getThreadPoolToUsein interfaceMessage
-
getEncodingVersion
public byte getEncodingVersion()- Specified by:
getEncodingVersionin interfaceMessage
-
setEncodingVersion
public void setEncodingVersion(byte version) - Specified by:
setEncodingVersionin interfaceMessage
-