Gridarta Editor
Classes | Public Member Functions | Package Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Reply Class Reference
Inheritance diagram for Reply:
Inheritance graph
Collaboration diagram for Reply:
Collaboration graph

Classes

class  Code
 

Public Member Functions

void prepare () throws IOException
 
void release () throws IOException
 
boolean send (ChannelIO cio) throws IOException
 

Package Functions

 Reply (Code rc, Content c)
 
 Reply (Code rc, Content c, Request.Action head)
 

Private Member Functions

ByteBuffer headers ()
 

Private Attributes

Code code
 
Content content
 
ByteBuffer hbb = null
 
boolean headersOnly
 

Static Private Attributes

static Charset ascii = Charset.forName("US-ASCII")
 
static String CRLF = "\r\n"
 

Detailed Description

An object used for sending Content to the requestor.

Author
Mark Reinhold
Brad R. Wetmore

Definition at line 51 of file Reply.java.

Constructor & Destructor Documentation

◆ Reply() [1/2]

Reply.Reply ( Code  rc,
Content  c 
)
package

Definition at line 74 of file Reply.java.

◆ Reply() [2/2]

Reply.Reply ( Code  rc,
Content  c,
Request.Action  head 
)
package

Definition at line 78 of file Reply.java.

References code, content, Request.Action.HEAD, and headersOnly.

Member Function Documentation

◆ headers()

ByteBuffer Reply.headers ( )
private

Definition at line 89 of file Reply.java.

References ascii, code, content, CRLF, Content.length(), Reply.Code.toString(), and Content.type().

Referenced by prepare().

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

◆ prepare()

void Reply.prepare ( ) throws IOException

Implements Sendable.

Definition at line 110 of file Reply.java.

References content, hbb, headers(), and Sendable.prepare().

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

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

◆ release()

void Reply.release ( ) throws IOException

Implements Sendable.

Definition at line 136 of file Reply.java.

References content, and Sendable.release().

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

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

◆ send()

boolean Reply.send ( ChannelIO  cio) throws IOException

Implements Sendable.

Definition at line 115 of file Reply.java.

References content, hbb, headersOnly, and Sendable.send().

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

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

Member Data Documentation

◆ ascii

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

Definition at line 85 of file Reply.java.

Referenced by headers().

◆ code

Code Reply.code
private

Definition at line 70 of file Reply.java.

Referenced by headers(), and Reply().

◆ content

Content Reply.content
private

Definition at line 71 of file Reply.java.

Referenced by headers(), prepare(), release(), Reply(), and send().

◆ CRLF

String Reply.CRLF = "\r\n"
staticprivate

Definition at line 84 of file Reply.java.

Referenced by headers().

◆ hbb

ByteBuffer Reply.hbb = null
private

Definition at line 87 of file Reply.java.

Referenced by prepare(), and send().

◆ headersOnly

boolean Reply.headersOnly
private

Definition at line 72 of file Reply.java.

Referenced by Reply(), and send().


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