|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openorb.orb.csiv2.CSIContextError
public final class CSIContextError
This is a convenience wrapper class around the ContextError
class. It provides helper methods to retrieve all data from the
ContextError
class in an easy way.
Method Summary | |
---|---|
static CSIContextError |
create(org.omg.IOP.Codec codec,
ContextError ctx)
This method just wraps this class around the specified instance of type ContextError . |
static CSIContextError |
create(org.omg.CORBA.ORB orb,
org.omg.IOP.Codec codec,
int major,
int minor,
int errorcode)
This method creates a ContextError message. |
long |
getClientContextId()
Returns the value of the member ContextError.client_context_id . |
byte[] |
getEncodedSASContextBody(org.omg.CORBA.ORB orb)
Return the ContextError instance embedded into an
instance of type SASContextBody and GIOP encoded as
byte array. |
int |
getErrorCode()
Returns the actual error code from ContextError.error_token . |
java.lang.String |
getErrorCodeString()
Returns the error code from ContextError.error_token as string. |
ErrorToken |
getErrorToken()
Returns the decoded value of the member ContextError.error_token
as type of ErrorToken . |
ContextError |
getInternal()
Return the internal member which this class wraps. |
int |
getMajor()
Returns the value of the member ContextError.major_status . |
int |
getMinor()
Returns the value of the member ContextError.minor_status . |
java.lang.String |
toString()
Creates a stringified representation of the class ContextError . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static CSIContextError create(org.omg.IOP.Codec codec, ContextError ctx)
ContextError
.
codec
- The codec to be used for GIOP encoding and decoding.ctx
- The instance of type ContextError
this class
is a wrapper for.
ContextError
.public static CSIContextError create(org.omg.CORBA.ORB orb, org.omg.IOP.Codec codec, int major, int minor, int errorcode)
orb
- The orb to get Any
instances from.codec
- The codec used for GIOP encoding and decoding.major
- The major number of the error.minor
- The minor number of the error.errorcode
- The error code to be put into ErrorToken.error_code
ContextError
.public ContextError getInternal()
ContextError
.public byte[] getEncodedSASContextBody(org.omg.CORBA.ORB orb)
ContextError
instance embedded into an
instance of type SASContextBody
and GIOP encoded as
byte array.
SASContextBody
or null in case the wrapped member
has not been set.public long getClientContextId()
ContextError.client_context_id
.
This must be null for stateless contexts (for Level0 compliance).
ContextError.client_context_id
or -1
in case the wrapped member has not been set.public int getMajor()
ContextError.major_status
.
ContextError.major_status
or -1
in case the wrapped member has not been set.public int getMinor()
ContextError.minor_status
.
ContextError.minor_status
or -1
in case the wrapped member has not been set.public ErrorToken getErrorToken()
ContextError.error_token
as type of ErrorToken
.
ContextError.error_token
as type
of ErrorToken
or null in case the wrapped member has not been set.public int getErrorCode()
ContextError.error_token
.
ContextError.error_token
or -1
in case the wrapped member has not been set.public java.lang.String getErrorCodeString()
ContextError.error_token
as string.
ContextError.error_token
as string or null
in case the wrapped member has not been set.public java.lang.String toString()
ContextError
.
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |