org.jwall.web.http
Class HttpResponse

java.lang.Object
  extended by org.jwall.web.http.HttpMessage
      extended by org.jwall.web.http.HttpResponse
Direct Known Subclasses:
HttpChunk

public class HttpResponse
extends HttpMessage

This class represents an abstract http message.

Author:
Christian Bockermann

Field Summary
static String ACCEPT_RANGES
           
static String AGE
           
static String ETAG
           
static String LOCATION
           
static String PROXY_AUTHENTICATE
           
static String RETRY_AFTER
           
static String SERVER
           
static String VARY
           
static String WWW_AUTHENTICATE
           
 
Constructor Summary
HttpResponse(HttpHeader header, byte[] data)
           
HttpResponse(String resHeader, byte[] responseData)
           
HttpResponse(String resHeader, byte[] responseData, HttpResponseChannel ch)
           
 
Method Summary
 HttpResponseChannel getChannel()
           
 String getCharset()
           
 String getContentType()
           
 HttpResponseChannel getHttpStream()
           
 String getMessage()
           
 String getPayload()
           
 Integer getStatus()
           
 boolean isChunk()
           
 boolean isChunked()
           
 boolean isConnectionClosed()
           
 boolean isGZipped()
           
 void setBody(ByteBuffer body)
           
 void setChannel(HttpResponseChannel ch)
           
 
Methods inherited from class org.jwall.web.http.HttpMessage
getBody, getBodyAsString, getHeader, getHeader, getHeaderNames, getMessageHeader, getVersion, hasBody, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ACCEPT_RANGES

public static final String ACCEPT_RANGES
See Also:
Constant Field Values

AGE

public static final String AGE
See Also:
Constant Field Values

ETAG

public static final String ETAG
See Also:
Constant Field Values

LOCATION

public static final String LOCATION
See Also:
Constant Field Values

PROXY_AUTHENTICATE

public static final String PROXY_AUTHENTICATE
See Also:
Constant Field Values

RETRY_AFTER

public static final String RETRY_AFTER
See Also:
Constant Field Values

SERVER

public static final String SERVER
See Also:
Constant Field Values

VARY

public static final String VARY
See Also:
Constant Field Values

WWW_AUTHENTICATE

public static final String WWW_AUTHENTICATE
See Also:
Constant Field Values
Constructor Detail

HttpResponse

public HttpResponse(HttpHeader header,
                    byte[] data)
             throws ProtocolException
Throws:
ProtocolException

HttpResponse

public HttpResponse(String resHeader,
                    byte[] responseData)
             throws ProtocolException
Parameters:
reqData -
Throws:
Exception
ProtocolException

HttpResponse

public HttpResponse(String resHeader,
                    byte[] responseData,
                    HttpResponseChannel ch)
             throws ProtocolException
Throws:
ProtocolException
Method Detail

getHttpStream

public HttpResponseChannel getHttpStream()

getStatus

public Integer getStatus()

getMessage

public String getMessage()

isConnectionClosed

public boolean isConnectionClosed()

isChunked

public boolean isChunked()

isGZipped

public boolean isGZipped()

getCharset

public String getCharset()

getContentType

public String getContentType()

getPayload

public String getPayload()

setBody

public void setBody(ByteBuffer body)

setChannel

public void setChannel(HttpResponseChannel ch)

getChannel

public HttpResponseChannel getChannel()

isChunk

public boolean isChunk()


Copyright © 2012 jwall.org. All Rights Reserved.