net.sourceforge.jwap.wsp.pdu
Class CWSPReply

java.lang.Object
  |
  +--net.sourceforge.jwap.wsp.pdu.CWSPPDU
        |
        +--net.sourceforge.jwap.wsp.pdu.CWSPReply

public class CWSPReply
extends CWSPPDU


Field Summary
static short _100_Continue
          Table 36
static short _101_Switching_Protocols
           
static short _200_OK_Success
           
static short _201_Created
           
static short _202_Accepted
           
static short _203_Non_Authoritative_Information
           
static short _204_No_Content
           
static short _205_Reset_Content
           
static short _206_Partial_Content
           
static short _300_Multiple_Choices
           
static short _301_Moved_Permanently
           
static short _302_Moved_temporarily
           
static short _303_See_Other
           
static short _304_Not_modified
           
static short _305_Use_Proxy
           
static short _307_Temporary_Redirect
           
static short _400_Bad_Request
           
static short _401_Unauthorized
           
static short _402_Payment_required
           
static short _403_Forbidden
           
static short _404_Not_Found
           
static short _405_Method_not_allowed
           
static short _406_Not_Acceptable
           
static short _407_Proxy_Authentication_required
           
static short _408_Request_Timeout
           
static short _409_Conflict
           
static short _410_Gone
           
static short _411_Length_Required
           
static short _412_Precondition_failed
           
static short _413_Request_entity_too_large
           
static short _414_Request_URI_too_large
           
static short _415_Unsupported_media_type
           
static short _416_Requested_Range_Not_Satisfiable
           
static short _417_Expectation_Failed
           
static short _500_Internal_Server_Error
           
static short _501_Not_Implemented
           
static short _502_Bad_Gateway
           
static short _503_Service_Unavailable
           
static short _504_Gateway_Timeout
           
static short _505_HTTP_version_not_supported
           
 
Fields inherited from class net.sourceforge.jwap.wsp.pdu.CWSPPDU
PDU_TYPE_CONFIRMEDPUSH, PDU_TYPE_CONNECT, PDU_TYPE_CONNECTREPLY, PDU_TYPE_DATA_FRAGMENT, PDU_TYPE_DISCONNECT, PDU_TYPE_GET, PDU_TYPE_GET_DELETE, PDU_TYPE_GET_HEAD, PDU_TYPE_GET_OPTIONS, PDU_TYPE_GET_TRACE, PDU_TYPE_POST, PDU_TYPE_POST_PUT, PDU_TYPE_PUSH, PDU_TYPE_REDIRECT, PDU_TYPE_REPLY, PDU_TYPE_RESUME, PDU_TYPE_SUSPEND
 
Constructor Summary
CWSPReply(long status, byte[] payload, java.lang.String contentType)
           
 
Method Summary
 java.lang.String getContentType()
           
 byte getStatus()
           
 void setContentType(java.lang.String type)
           
 void setStatus(short status)
          use constants in this class!
 byte[] toByteArray()
          Encodes the PDU according to WAP-230-WSP-20010705-A.
 java.lang.String toString()
           
 
Methods inherited from class net.sourceforge.jwap.wsp.pdu.CWSPPDU
equals, getCapabilities, getContentType, getHeaders, getPayload, getPDU, getType, setCapabilities, setHeaders, setPayload
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_100_Continue

public static final short _100_Continue
Table 36

_101_Switching_Protocols

public static final short _101_Switching_Protocols

_200_OK_Success

public static final short _200_OK_Success

_201_Created

public static final short _201_Created

_202_Accepted

public static final short _202_Accepted

_203_Non_Authoritative_Information

public static final short _203_Non_Authoritative_Information

_204_No_Content

public static final short _204_No_Content

_205_Reset_Content

public static final short _205_Reset_Content

_206_Partial_Content

public static final short _206_Partial_Content

_300_Multiple_Choices

public static final short _300_Multiple_Choices

_301_Moved_Permanently

public static final short _301_Moved_Permanently

_302_Moved_temporarily

public static final short _302_Moved_temporarily

_303_See_Other

public static final short _303_See_Other

_304_Not_modified

public static final short _304_Not_modified

_305_Use_Proxy

public static final short _305_Use_Proxy

_307_Temporary_Redirect

public static final short _307_Temporary_Redirect

_400_Bad_Request

public static final short _400_Bad_Request

_401_Unauthorized

public static final short _401_Unauthorized

_402_Payment_required

public static final short _402_Payment_required

_403_Forbidden

public static final short _403_Forbidden

_404_Not_Found

public static final short _404_Not_Found

_405_Method_not_allowed

public static final short _405_Method_not_allowed

_406_Not_Acceptable

public static final short _406_Not_Acceptable

_407_Proxy_Authentication_required

public static final short _407_Proxy_Authentication_required

_408_Request_Timeout

public static final short _408_Request_Timeout

_409_Conflict

public static final short _409_Conflict

_410_Gone

public static final short _410_Gone

_411_Length_Required

public static final short _411_Length_Required

_412_Precondition_failed

public static final short _412_Precondition_failed

_413_Request_entity_too_large

public static final short _413_Request_entity_too_large

_414_Request_URI_too_large

public static final short _414_Request_URI_too_large

_415_Unsupported_media_type

public static final short _415_Unsupported_media_type

_416_Requested_Range_Not_Satisfiable

public static final short _416_Requested_Range_Not_Satisfiable

_417_Expectation_Failed

public static final short _417_Expectation_Failed

_500_Internal_Server_Error

public static final short _500_Internal_Server_Error

_501_Not_Implemented

public static final short _501_Not_Implemented

_502_Bad_Gateway

public static final short _502_Bad_Gateway

_503_Service_Unavailable

public static final short _503_Service_Unavailable

_504_Gateway_Timeout

public static final short _504_Gateway_Timeout

_505_HTTP_version_not_supported

public static final short _505_HTTP_version_not_supported
Constructor Detail

CWSPReply

public CWSPReply(long status,
                 byte[] payload,
                 java.lang.String contentType)
Method Detail

toByteArray

public byte[] toByteArray()
Description copied from class: CWSPPDU
Encodes the PDU according to WAP-230-WSP-20010705-A. See www.wapforum.org for more information.
Overrides:
toByteArray in class CWSPPDU

getStatus

public byte getStatus()

setStatus

public void setStatus(short status)
use constants in this class!

setContentType

public void setContentType(java.lang.String type)

getContentType

public java.lang.String getContentType()

toString

public java.lang.String toString()
Overrides:
toString in class CWSPPDU