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, setHeader
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addHeader, clearHeaders, containsHeader, getContent, getContentLength, getContentLength, getHeader, getHeaderNames, getHeaders, getProtocolVersion, isChunked, isKeepAlive, removeHeader, setContent, setHeader, setHeader
public DefaultHttpResponse(HttpVersion version, HttpResponseStatus status)
version
- the HTTP version of this responsestatus
- the status of this responsepublic HttpResponseStatus getStatus()
HttpResponse
getStatus
in interface HttpResponse
Copyright © 2008–2013 JBoss, by Red Hat. All rights reserved.