|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openorb.orb.csiv2.CSITlsSecTrans
public final class CSITlsSecTrans
This is a convenience wrapper around the TLS_SEC_TRANS
class.
It provides helper methods to retrieve all data from the
TLS_SEC_TRANS
class in an easy way.
Method Summary | |
---|---|
static CSITlsSecTrans |
create(org.omg.IOP.Codec codec,
byte[] data)
This method just wraps this class around an instance of type TLS_SEC_TRANS that is decoded from the specified byte array. |
static CSITlsSecTrans |
create(org.omg.IOP.Codec codec,
short target_supports,
short target_requires,
TransportAddress[] addresses)
This method creates a TLS_SEC_TRANS struct. |
static CSITlsSecTrans |
create(org.omg.IOP.Codec codec,
TLS_SEC_TRANS tst)
This method just wraps this class around the specified instance of type TLS_SEC_TRANS . |
byte[] |
getEncoded(org.omg.CORBA.ORB orb)
Return the TLS_SEC_TRANS instance embedded into an
Any and GIOP encoded as byte array. |
TLS_SEC_TRANS |
getInternal()
Return the internal member which this class wraps. |
short |
getTargetRequires()
Return the bit field of the TLS_SEC_TRANS.target_requires
member or -1 if the TLS_SEC_TRANS member of this class is not set. |
java.lang.String |
getTargetRequiresString()
Returns a textual representation of the TLS_SEC_TRANS.target_requires
bit field. |
short |
getTargetSupports()
Return the bit field of the TLS_SEC_TRANS.target_supports
member or -1 if the TLS_SEC_TRANS member of this class is not set. |
java.lang.String |
getTargetSupportsString()
Returns a textual representation of the TLS_SEC_TRANS.target_supports
bit field. |
TransportAddress |
getTransportAddress(int index)
Return an item of the TLS_SEC_TRANS.addresses sequence. |
int |
getTransportAddressCount()
Return the number of addresses provided by the TLS_SEC_TRANS.addresses field. |
java.lang.String |
getTransportAddressHostName(int index)
Return the host name of an item of the TLS_SEC_TRANS.addresses
sequence. |
int |
getTransportAddressPort(int index)
Return the port of an item of the TLS_SEC_TRANS.addresses sequence. |
java.lang.String |
toString()
This method creates a stringified representation of the class TLS_SEC_TRANS . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static CSITlsSecTrans create(org.omg.IOP.Codec codec, TLS_SEC_TRANS tst)
TLS_SEC_TRANS
.
codec
- The codec to be used for GIOP encoding and decoding.tst
- The instance of type TLS_SEC_TRANS
this class
is a wrapper for.
TLS_SEC_TRANS
.public static CSITlsSecTrans create(org.omg.IOP.Codec codec, byte[] data)
TLS_SEC_TRANS
that is decoded from the specified byte array.
codec
- The codec to be used for GIOP encoding and decoding.data
- The byte array containing a encoded instance of type
TLS_SEC_TRANS
.
TLS_SEC_TRANS
or null in case the decoding of the
data failed.public static CSITlsSecTrans create(org.omg.IOP.Codec codec, short target_supports, short target_requires, TransportAddress[] addresses)
codec
- The codec used for GIOP encoding and decoding.target_supports
- The association options the target supports.target_requires
- The association options the target requires.addresses
- The list of hostnames and ports.
TLS_SEC_TRANS
.public TLS_SEC_TRANS getInternal()
TLS_SEC_TRANS
.public byte[] getEncoded(org.omg.CORBA.ORB orb)
TLS_SEC_TRANS
instance embedded into an
Any
and GIOP encoded as byte array.
Any
or null in case the wrapped member has not been set.public short getTargetSupports()
TLS_SEC_TRANS.target_supports
member or -1 if the TLS_SEC_TRANS
member of this class is not set.
TLS_SEC_TRANS.target_supports
bit field or -1 when
the TLS_SEC_TRANS
member of this class has not been set.public java.lang.String getTargetSupportsString()
TLS_SEC_TRANS.target_supports
bit field. This method simply concatenates the names of the bits by a comma.
TLS_SEC_TRANS
member of this class has not been set.public short getTargetRequires()
TLS_SEC_TRANS.target_requires
member or -1 if the TLS_SEC_TRANS
member of this class is not set.
TLS_SEC_TRANS.target_requires
bit field or -1 when
the TLS_SEC_TRANS
member of this class has not been set.public java.lang.String getTargetRequiresString()
TLS_SEC_TRANS.target_requires
bit field. This method simply concatenates the names of the bits by a comma.
TLS_SEC_TRANS
member of this class has not been set.public int getTransportAddressCount()
TLS_SEC_TRANS.addresses
field.
TLS_SEC_TRANS
member
of this class has not been set.public TransportAddress getTransportAddress(int index)
TLS_SEC_TRANS.addresses
sequence.
index
- The index of the item to return.
TransportAddress
or null
when the array index is out of bounds or the TLS_SEC_TRANS
member
of this class has not been set.public java.lang.String getTransportAddressHostName(int index)
TLS_SEC_TRANS.addresses
sequence.
index
- The index of the item from which to return the name.
TransportAddress.host_name
member of the
item specified by the index or null when the array index is out of bounds or the
TLS_SEC_TRANS
member of this class has not been set.public int getTransportAddressPort(int index)
TLS_SEC_TRANS.addresses
sequence.
index
- The index of the item from which to return the port.
TransportAddress.port
member of the
item specified by the index or -1 when the array index is out of bounds or the
TLS_SEC_TRANS
member of this class has not been set.public java.lang.String toString()
TLS_SEC_TRANS
.
toString
in class java.lang.Object
TLS_SEC_TRANS
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |