net.noderunner.http
Class ServerResponse

java.lang.Object
  extended by net.noderunner.http.Response
      extended by net.noderunner.http.ServerResponse

public class ServerResponse
extends Response

Contains the contents of an HTTP response message. In RFC 2616 terms, this object represents data found in the Response body.


Constructor Summary
ServerResponse(StatusLine line, MessageHeader[] headers)
          Constructs a ServerResponseImpl by parts.
ServerResponse(StatusLine line, MessageHeaders headers)
          Constructs a ServerResponseImpl by parts, with no data poster.
ServerResponse(StatusLine line, MessageHeaders headers, DataPoster dataPoster)
          Constructs a ServerResponseImpl by parts.
 
Method Summary
 DataPoster getDataPoster()
           
 String toString()
          Returns a debug string showing the response information contained within.
 
Methods inherited from class net.noderunner.http.Response
getHeaders, getStatusLine, isContinue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerResponse

public ServerResponse(StatusLine line,
                      MessageHeaders headers)
Constructs a ServerResponseImpl by parts, with no data poster.


ServerResponse

public ServerResponse(StatusLine line,
                      MessageHeaders headers,
                      DataPoster dataPoster)
Constructs a ServerResponseImpl by parts.

Parameters:
dataPoster - may be null

ServerResponse

public ServerResponse(StatusLine line,
                      MessageHeader[] headers)
Constructs a ServerResponseImpl by parts.

Method Detail

getDataPoster

public DataPoster getDataPoster()

toString

public String toString()
Returns a debug string showing the response information contained within.

Overrides:
toString in class Response


Copyright © 2011. All Rights Reserved.