public class DefaultHttpResponse extends DefaultHttpMessage implements HttpResponse
HttpResponse
implementation.构造器和说明 |
---|
DefaultHttpResponse(HttpVersion version,
HttpResponseStatus status)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
HttpResponseStatus |
getStatus()
Returns the status of this response.
|
void |
setStatus(HttpResponseStatus status)
Sets the status of this response.
|
java.lang.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
在接口中 HttpResponse
public void setStatus(HttpResponseStatus status)
HttpResponse
setStatus
在接口中 HttpResponse
public java.lang.String toString()
toString
在类中 DefaultHttpMessage