Yet Another WebIOPi+
 All Classes Namespaces Files Functions Variables Macros Pages
Public Member Functions | Static Public Attributes | List of all members
webiopi.protocols.coap.COAPResponse Class Reference
Inheritance diagram for webiopi.protocols.coap.COAPResponse:
webiopi.protocols.coap.COAPMessage

Public Member Functions

def __init__
 
- Public Member Functions inherited from webiopi.protocols.coap.COAPMessage
def __init__
 
def __getOptionHeader__
 
def __str__
 
def getOptionHeaderValue
 
def getOptionHeaderExtension
 
def appendOption
 
def getBytes
 
def parseByteArray
 

Static Public Attributes

dictionary CODES
 
int OK = 64
 
int CREATED = 65
 
int DELETED = 66
 
int VALID = 67
 
int CHANGED = 68
 
int CONTENT = 69
 
int BAD_REQUEST = 128
 
int UNAUTHORIZED = 129
 
int BAD_OPTION = 130
 
int FORBIDDEN = 131
 
int NOT_FOUND = 132
 
int NOT_ALLOWED = 133
 
int NOT_ACCEPTABLE = 134
 
int PRECONDITION_FAILED = 140
 
int ENTITY_TOO_LARGE = 141
 
int UNSUPPORTED_CONTENT = 143
 
int INTERNAL_ERROR = 160
 
int NOT_IMPLEMENTED = 161
 
int BAD_GATEWAY = 162
 
int SERVICE_UNAVAILABLE = 163
 
int GATEWAY_TIMEOUT = 164
 
int PROXYING_NOT_SUPPORTED = 165
 
- Static Public Attributes inherited from webiopi.protocols.coap.COAPMessage
list TYPES = ["CON", "NON", "ACK", "RST"]
 
int CON = 0
 
int NON = 1
 
int ACK = 2
 
int RST = 3
 

Additional Inherited Members

- Public Attributes inherited from webiopi.protocols.coap.COAPMessage
 version
 
 type
 
 code
 
 id
 
 token
 
 options
 
 host
 
 port
 
 uri_path
 
 content_format
 
 payload
 

Detailed Description

Definition at line 350 of file coap.py.

Constructor & Destructor Documentation

def webiopi.protocols.coap.COAPResponse.__init__ (   self)

Definition at line 404 of file coap.py.

Member Data Documentation

int webiopi.protocols.coap.COAPResponse.BAD_GATEWAY = 162
static

Definition at line 399 of file coap.py.

int webiopi.protocols.coap.COAPResponse.BAD_OPTION = 130
static

Definition at line 387 of file coap.py.

int webiopi.protocols.coap.COAPResponse.BAD_REQUEST = 128
static

Definition at line 385 of file coap.py.

int webiopi.protocols.coap.COAPResponse.CHANGED = 68
static

Definition at line 381 of file coap.py.

dictionary webiopi.protocols.coap.COAPResponse.CODES
static
Initial value:
1 = {0: None,
2  64: "2.00 OK",
3  65: "2.01 Created",
4  66: "2.02 Deleted",
5  67: "2.03 Valid",
6  68: "2.04 Changed",
7  69: "2.05 Content",
8  128: "4.00 Bad Request",
9  129: "4.01 Unauthorized",
10  130: "4.02 Bad Option",
11  131: "4.03 Forbidden",
12  132: "4.04 Not Found",
13  133: "4.05 Method Not Allowed",
14  134: "4.06 Not Acceptable",
15  140: "4.12 Precondition Failed",
16  141: "4.13 Request Entity Too Large",
17  143: "4.15 Unsupported Content-Format",
18  160: "5.00 Internal Server Error",
19  161: "5.01 Not Implemented",
20  162: "5.02 Bad Gateway",
21  163: "5.03 Service Unavailable",
22  164: "5.04 Gateway Timeout",
23  165: "5.05 Proxying Not Supported"
24  }

Definition at line 351 of file coap.py.

Referenced by webiopi.protocols.coap.COAPMessage.__str__().

int webiopi.protocols.coap.COAPResponse.CONTENT = 69
static

Definition at line 382 of file coap.py.

int webiopi.protocols.coap.COAPResponse.CREATED = 65
static

Definition at line 378 of file coap.py.

int webiopi.protocols.coap.COAPResponse.DELETED = 66
static

Definition at line 379 of file coap.py.

int webiopi.protocols.coap.COAPResponse.ENTITY_TOO_LARGE = 141
static

Definition at line 393 of file coap.py.

int webiopi.protocols.coap.COAPResponse.FORBIDDEN = 131
static

Definition at line 388 of file coap.py.

int webiopi.protocols.coap.COAPResponse.GATEWAY_TIMEOUT = 164
static

Definition at line 401 of file coap.py.

int webiopi.protocols.coap.COAPResponse.INTERNAL_ERROR = 160
static

Definition at line 397 of file coap.py.

int webiopi.protocols.coap.COAPResponse.NOT_ACCEPTABLE = 134
static

Definition at line 391 of file coap.py.

int webiopi.protocols.coap.COAPResponse.NOT_ALLOWED = 133
static

Definition at line 390 of file coap.py.

int webiopi.protocols.coap.COAPResponse.NOT_FOUND = 132
static

Definition at line 389 of file coap.py.

int webiopi.protocols.coap.COAPResponse.NOT_IMPLEMENTED = 161
static

Definition at line 398 of file coap.py.

int webiopi.protocols.coap.COAPResponse.OK = 64
static

Definition at line 377 of file coap.py.

int webiopi.protocols.coap.COAPResponse.PRECONDITION_FAILED = 140
static

Definition at line 392 of file coap.py.

int webiopi.protocols.coap.COAPResponse.PROXYING_NOT_SUPPORTED = 165
static

Definition at line 402 of file coap.py.

int webiopi.protocols.coap.COAPResponse.SERVICE_UNAVAILABLE = 163
static

Definition at line 400 of file coap.py.

int webiopi.protocols.coap.COAPResponse.UNAUTHORIZED = 129
static

Definition at line 386 of file coap.py.

int webiopi.protocols.coap.COAPResponse.UNSUPPORTED_CONTENT = 143
static

Definition at line 394 of file coap.py.

int webiopi.protocols.coap.COAPResponse.VALID = 67
static

Definition at line 380 of file coap.py.


The documentation for this class was generated from the following file: