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.
|
void |
setStatus(HttpResponseStatus status)
Sets the status of this response.
|
String |
toString() |
addHeader, clearHeaders, containsHeader, getContent, getHeader, getHeaderNames, getHeaders, getHeaders, getProtocolVersion, headers, isChunked, removeHeader, setChunked, setContent, setHeader, setHeader, setProtocolVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addHeader, clearHeaders, containsHeader, getContent, getHeader, getHeaderNames, getHeaders, getHeaders, getProtocolVersion, headers, isChunked, removeHeader, setChunked, setContent, setHeader, setHeader, setProtocolVersion
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
public void setStatus(HttpResponseStatus status)
HttpResponse
setStatus
in interface HttpResponse
public String toString()
toString
in class DefaultHttpMessage
Copyright © 2008-2015 The Netty Project. All Rights Reserved.