Crossfire JXClient, Trunk
Public Member Functions | Static Package Attributes | Private Member Functions | Private Attributes | List of all members
Reply.Code Class Reference
Collaboration diagram for Reply.Code:
Collaboration graph

Public Member Functions

String toString ()
 

Static Package Attributes

static Code BAD_REQUEST = new Code(400, "Bad Request")
 
static Code METHOD_NOT_ALLOWED = new Code(405, "Method Not Allowed")
 
static Code NOT_FOUND = new Code(404, "Not Found")
 
static Code OK = new Code(200, "OK")
 

Private Member Functions

 Code (int i, String r)
 

Private Attributes

int number
 
String reason
 

Detailed Description

A helper class which define the HTTP response codes

Definition at line 56 of file Reply.java.

Constructor & Destructor Documentation

◆ Code()

Reply.Code.Code ( int  i,
String  r 
)
private

Definition at line 60 of file Reply.java.

References Reply.Code.number, and Reply.Code.reason.

Member Function Documentation

◆ toString()

String Reply.Code.toString ( )

Definition at line 61 of file Reply.java.

References Reply.Code.number, and Reply.Code.reason.

Referenced by Reply.headers().

Here is the caller graph for this function:

Member Data Documentation

◆ BAD_REQUEST

Code Reply.Code.BAD_REQUEST = new Code(400, "Bad Request")
staticpackage

Definition at line 64 of file Reply.java.

Referenced by RequestHandler.parse(), and RequestServicer.service().

◆ METHOD_NOT_ALLOWED

Code Reply.Code.METHOD_NOT_ALLOWED = new Code(405, "Method Not Allowed")
staticpackage

Definition at line 66 of file Reply.java.

Referenced by RequestHandler.build(), and RequestServicer.build().

◆ NOT_FOUND

Code Reply.Code.NOT_FOUND = new Code(404, "Not Found")
staticpackage

Definition at line 65 of file Reply.java.

Referenced by RequestServicer.build(), and RequestHandler.handle().

◆ number

int Reply.Code.number
private

Definition at line 58 of file Reply.java.

Referenced by Reply.Code.Code(), and Reply.Code.toString().

◆ OK

Code Reply.Code.OK = new Code(200, "OK")
staticpackage

Definition at line 63 of file Reply.java.

Referenced by RequestHandler.build(), and RequestServicer.build().

◆ reason

String Reply.Code.reason
private

Definition at line 59 of file Reply.java.

Referenced by Reply.Code.Code(), and Reply.Code.toString().


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