
public class DefaultHttpResponse extends DefaultHttpMessage implements HttpResponse
HttpResponse implementation.| Constructor and Description |
|---|
DefaultHttpResponse(HttpVersion version,
HttpResponseStatus status)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
HttpResponseStatus |
getStatus()
Returns the status of this response.
|
String |
toString() |
addHeader, clearHeaders, containsHeader, getContent, getContentLength, getContentLength, getHeader, getHeaderNames, getHeaders, getProtocolVersion, isChunked, isKeepAlive, removeHeader, setContent, setHeader, setHeaderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddHeader, clearHeaders, containsHeader, getContent, getContentLength, getContentLength, getHeader, getHeaderNames, getHeaders, getProtocolVersion, isChunked, isKeepAlive, removeHeader, setContent, setHeader, setHeaderpublic DefaultHttpResponse(HttpVersion version, HttpResponseStatus status)
version - the HTTP version of this responsestatus - the status of this responsepublic HttpResponseStatus getStatus()
HttpResponsegetStatus in interface HttpResponseCopyright © 2008-2013 JBoss, by Red Hat. All Rights Reserved.