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() |
getContent, getProtocolVersion, headers, isChunked, setChunked, setContent, setProtocolVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getContent, getProtocolVersion, headers, isChunked, setChunked, setContent, 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-2016 The Netty Project. All Rights Reserved.