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

Classes

class  Action
 

Public Member Functions

String toString ()
 

Package Functions

Action action ()
 
URI uri ()
 
String version ()
 

Static Package Functions

static boolean isComplete (ByteBuffer bb)
 
static Request parse (ByteBuffer bb) throws MalformedRequestException
 

Private Member Functions

 Request (Action a, String v, URI u)
 

Private Attributes

Action action
 
URI uri
 
String version
 

Static Private Attributes

static Charset ascii = Charset.forName("US-ASCII")
 
static Pattern requestPattern
 

Detailed Description

An encapsulation of the request received.

The static method parse() is responsible for creating this object.

Author
Mark Reinhold
Brad R. Wetmore

Definition at line 55 of file Request.java.

Constructor & Destructor Documentation

◆ Request()

Request.Request ( Action  a,
String  v,
URI  u 
)
private

Definition at line 92 of file Request.java.

References a, action, uri, and version.

Referenced by parse().

Here is the caller graph for this function:

Member Function Documentation

◆ action()

Action Request.action ( )
package

Definition at line 88 of file Request.java.

References action().

Referenced by action().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isComplete()

static boolean Request.isComplete ( ByteBuffer  bb)
staticpackage

Definition at line 102 of file Request.java.

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

Here is the caller graph for this function:

◆ parse()

static Request Request.parse ( ByteBuffer  bb) throws MalformedRequestException
staticpackage

Definition at line 140 of file Request.java.

References a, ascii, Request.Action.parse(), Request(), and requestPattern.

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toString()

String Request.toString ( )

Definition at line 98 of file Request.java.

References action, uri, and version.

Referenced by RequestHandler.build().

Here is the caller graph for this function:

◆ uri()

URI Request.uri ( )
package

Definition at line 90 of file Request.java.

References uri().

Referenced by uri().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ version()

String Request.version ( )
package

Definition at line 89 of file Request.java.

References version().

Referenced by version().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ action

Action Request.action
private

Definition at line 84 of file Request.java.

Referenced by RequestHandler.build(), Request(), and toString().

◆ ascii

Charset Request.ascii = Charset.forName("US-ASCII")
staticprivate

Definition at line 112 of file Request.java.

Referenced by parse().

◆ requestPattern

Pattern Request.requestPattern
staticprivate
Initial value:
= Pattern.compile("\\A([A-Z]+) +([^ ]+) +HTTP/([0-9\\.]+)$"
+ ".*^Host: ([^ ]+)$.*\r\n\r\n\\z",
Pattern.MULTILINE | Pattern.DOTALL)

Definition at line 136 of file Request.java.

Referenced by parse().

◆ uri

URI Request.uri
private

Definition at line 86 of file Request.java.

Referenced by RequestHandler.build(), Request(), and toString().

◆ version

String Request.version
private

Definition at line 85 of file Request.java.

Referenced by Request(), and toString().


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