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

Public Member Functions

void run ()
 

Package Functions

Reply build (Request rq) throws IOException
 
ByteBuffer receive () throws IOException
 
 RequestServicer (ChannelIO cio)
 

Private Member Functions

void service () throws IOException
 

Private Attributes

ChannelIO cio
 

Static Private Attributes

static int created = 0
 

Detailed Description

Primary driver class used by blocking Servers to receive, prepare, send, and shutdown requests.

Author
Mark Reinhold
Brad R. Wetmore

Definition at line 51 of file RequestServicer.java.

Constructor & Destructor Documentation

◆ RequestServicer()

RequestServicer.RequestServicer ( ChannelIO  cio)
package

Definition at line 57 of file RequestServicer.java.

References cio, and created.

Member Function Documentation

◆ build()

Reply RequestServicer.build ( Request  rq) throws IOException
package

Definition at line 136 of file RequestServicer.java.

References Request.Action.GET, Request.Action.HEAD, Reply.Code.METHOD_NOT_ALLOWED, Reply.Code.NOT_FOUND, Reply.Code.OK, Reply.prepare(), and Reply.release().

Referenced by service().

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

◆ receive()

ByteBuffer RequestServicer.receive ( ) throws IOException
package

Definition at line 122 of file RequestServicer.java.

References cio, ChannelIO.doHandshake(), ChannelIO.getReadBuf(), Request.isComplete(), read, and ChannelIO.read().

Referenced by service().

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

◆ run()

void RequestServicer.run ( )

Definition at line 114 of file RequestServicer.java.

References service().

Referenced by B1.runServer().

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

◆ service()

void RequestServicer.service ( ) throws IOException
private

Definition at line 72 of file RequestServicer.java.

References Reply.Code.BAD_REQUEST, build(), cio, ChannelIO.close(), Request.parse(), receive(), Reply.release(), Reply.send(), and ChannelIO.shutdown().

Referenced by run().

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

Member Data Documentation

◆ cio

ChannelIO RequestServicer.cio
private

Definition at line 53 of file RequestServicer.java.

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

◆ created

int RequestServicer.created = 0
staticprivate

Definition at line 55 of file RequestServicer.java.

Referenced by RequestServicer().


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