Logo Search packages:      
Sourcecode: jaminid version File versions  Download package

com::prolixtech::jaminid::Request Class Reference

List of all members.


Detailed Description

The request class encapsulates an HTTP request. It is responsible for splitting up the query, processing POST forms, splitting to URI and URL, and once it is created, it is essentially a data struct for all this information.

Author:
Constantinos Michael
TODO

Definition at line 20 of file Request.java.


Public Member Functions

void addRequestLines (String requestMessage)
void appendToBody (String body)
boolean checkParam (String param, String possvalue)
String getBody ()
Daemon getDaemon ()
Map getHeader ()
String getIPAddressString ()
String getLocation ()
String getMessage ()
String getParam (String key)
Map< String, String > getParamMap ()
String getParamOrNull (String key)
String getParamString ()
String getURI ()
boolean isRequestBad ()
 Request (Daemon activeDaemon, Connection connx)
void setMethodLine (String methodLine)

Protected Member Functions

int switchToBody ()
void switchToCompleted ()

Private Member Functions

int getStatus ()
void processParamString (String paramStringL)
String unEscape (String s)

Static Private Member Functions

static int hex2int (char a)
static int hex2int (String x)

Private Attributes

Map< String, String > activeHeader = new HashMap<String, String>()
Connection conn
int currentStatus = 0
String HTTPMethod
boolean isbad = false
Daemon masterDaemon
Map< String, String > paramMap = new HashMap<String, String>()
String paramString
Protocol protocol
StringBuffer requestBody = new StringBuffer()
String requestLocation
StringBuffer requestMessageBuffer = new StringBuffer()
String requestURI

Static Private Attributes

static int STATUS_COMPLETE = 3
static int STATUS_MALFORMED = -1
static int STATUS_WAITING_FOR_BODY = 2
static int STATUS_WAITING_FOR_METHOD = 0
static int STATUS_WAITING_FOR_PARAMS = 1

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

Generated by  Doxygen 1.6.0   Back to index