net.sourceforge.jwap.wtp.pdu
Class CWTPInvoke
java.lang.Object
|
+--net.sourceforge.jwap.wtp.pdu.CWTPPDU
|
+--net.sourceforge.jwap.wtp.pdu.CWTPInvoke
- public class CWTPInvoke
- extends CWTPPDU
This Class represents an Invoke PDU.
According to the WTP specification in section 8 this PDU
can be encoded into a byte array.
The first 4 bytes of the PDU are used for the WTP Layer.
After this the payload follows - e.g. the bytes of a upper Layer.
To encode the PDU call toByteArray().
There are to ways of creation: Either you construct a Object
manually by calling the constructor or you use CWTPFactory
to decode a byte Array.
Constructor Summary |
CWTPInvoke(byte[] payload,
int TID,
byte transactionclass)
|
Methods inherited from class net.sourceforge.jwap.wtp.pdu.CWTPPDU |
decode, getCON, getGTR, getPayload, getPDUType, getRES1, getRES2, getRID, getSegments, getTID, getTTR, setCON, setGTR, setPayload, setPDUType, setRES1, setRES2, setRID, setSegments, setTTR |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CWTPInvoke
public CWTPInvoke(byte[] payload,
int TID,
byte transactionclass)
- Parameters:
payload
- The Bytes belonging to the layer aboveTID
- the Transaction ID according to the spec
toByteArray
public byte[] toByteArray()
- encodes the PDU according to the WTP spec
- Overrides:
toByteArray
in class CWTPPDU
- Returns:
- encoded bytes
getTCL
public byte getTCL()
setTCL
public void setTCL(byte TCL)
getTIDnew
public boolean getTIDnew()
setTIDnew
public void setTIDnew(boolean TIDnew)
getVersion
public byte getVersion()
setVersion
public void setVersion(byte version)
getU_P
public boolean getU_P()
setU_P
public void setU_P(boolean U_P)
toString
public java.lang.String toString()
- constructs a string representation of the object
invluding all fields.
- Overrides:
toString
in class java.lang.Object
- Returns:
- The constructed String with debug information