net.sourceforge.jwap.wtp.pdu
Class CWTPAck

java.lang.Object
  |
  +--net.sourceforge.jwap.wtp.pdu.CWTPPDU
        |
        +--net.sourceforge.jwap.wtp.pdu.CWTPAck

public class CWTPAck
extends CWTPPDU

This Class represents an Acknowledgement PDU. According to the WTP specification in section 8 this PDU can be encoded into a byte array.

3 bytes are used. You can not input payload of upper layers. 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.


Fields inherited from class net.sourceforge.jwap.wtp.pdu.CWTPPDU
PDU_TYPE_ABORT, PDU_TYPE_ACK, PDU_TYPE_INVOKE, PDU_TYPE_NEG_ACK, PDU_TYPE_RESULT, PDU_TYPE_SEGM_INVOKE, PDU_TYPE_SEGM_RESULT, types
 
Constructor Summary
CWTPAck(int TID)
           
 
Method Summary
 boolean getTve_tok()
           
 void setTve_tok(boolean tve_tok)
           
 byte[] toByteArray()
          encodes the PDU according to the WTP spec
 java.lang.String toString()
          constructs a string representation of the object invluding all fields.
 
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
 

Constructor Detail

CWTPAck

public CWTPAck(int TID)
Parameters:
TID - the Transaction ID according to the spec
Method Detail

toByteArray

public byte[] toByteArray()
encodes the PDU according to the WTP spec
Overrides:
toByteArray in class CWTPPDU
Returns:
encoded bytes

getTve_tok

public boolean getTve_tok()

setTve_tok

public void setTve_tok(boolean tve_tok)

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