org.openorb.orb.csiv2
Class CSICompleteEstablishContext

java.lang.Object
  extended by org.openorb.orb.csiv2.CSICompleteEstablishContext

public final class CSICompleteEstablishContext
extends java.lang.Object

This is a convenience wrapper class around the CompleteEstablishContext class. It provides helper methods to retrieve all data from the CompleteEstablishContext class in an easy way.

Author:
Michael Rumpf

Method Summary
static CSICompleteEstablishContext create(org.omg.IOP.Codec codec)
          This method creates a CompleteEstablishContext message.
static CSICompleteEstablishContext create(org.omg.IOP.Codec codec, CompleteEstablishContext cec)
          This method just wraps this class around the specified instance of type CompleteEstablishContext.
 long getClientContextId()
          Returns the value of the member CompleteEstablishContext.client_context_id.
 byte[] getEncodedSASContextBody(org.omg.CORBA.ORB orb)
          Return the CompleteEstablishContext instance embedded into an instance of type SASContextBody and GIOP encoded as byte array.
 byte[] getFinalContextToken()
          Return the value from the CompleteEstablishContext.final_context_token.
 CompleteEstablishContext getInternal()
          Return the internal member which this class wraps.
 boolean isContextStateful()
          Return true when the context is stateful, and false when stateless.
 java.lang.String toString()
          Creates a stringified representation of the class CompleteEstablishContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static CSICompleteEstablishContext create(org.omg.IOP.Codec codec,
                                                 CompleteEstablishContext cec)
This method just wraps this class around the specified instance of type CompleteEstablishContext.

Parameters:
codec - The codec to be used for GIOP encoding and decoding.
cec - The instance of type CompleteEstablishContext this class is a wrapper for.
Returns:
An instance of this convenience wrapper with a member of type CompleteEstablishContext.

create

public static CSICompleteEstablishContext create(org.omg.IOP.Codec codec)
This method creates a CompleteEstablishContext message.

Parameters:
codec - The codec used for GIOP encoding and decoding.
Returns:
An instance of this convenience wrapper with a member of type CompleteEstablishContext.

getInternal

public CompleteEstablishContext getInternal()
Return the internal member which this class wraps.

Returns:
The internal member of type CompleteEstablishContext.

getEncodedSASContextBody

public byte[] getEncodedSASContextBody(org.omg.CORBA.ORB orb)
Return the CompleteEstablishContext instance embedded into an instance of type SASContextBody and GIOP encoded as byte array.

Returns:
A byte array containing an encoded instance of type SASContextBody or null in case the wrapped member has not been set.

getClientContextId

public long getClientContextId()
Returns the value of the member CompleteEstablishContext.client_context_id. This must be null for stateless contexts (for Level0 compliance).

Returns:
The value from CompleteEstablishContext.client_context_id or -1 in case the wrapped member has not been set.

isContextStateful

public boolean isContextStateful()
Return true when the context is stateful, and false when stateless.

Returns:
True when the returned context is stateful, and false otherwise.

getFinalContextToken

public byte[] getFinalContextToken()
Return the value from the CompleteEstablishContext.final_context_token.

Returns:
The value from CompleteEstablishContext.final_context_token or null when the CompleteEstablishContext member has not been set.

toString

public java.lang.String toString()
Creates a stringified representation of the class CompleteEstablishContext.

Overrides:
toString in class java.lang.Object
Returns:
A stringified representation of this instance or null in case the wrapped member has not been set.