public class DefaultHttpResponse extends DefaultHttpMessage implements HttpResponse
HttpResponse
implementation.构造器和说明 |
---|
DefaultHttpResponse(HttpVersion version,
HttpResponseStatus status)
Creates a new instance.
|
DefaultHttpResponse(HttpVersion version,
HttpResponseStatus status,
boolean validateHeaders)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
HttpResponseStatus |
getStatus()
Returns the status of this
HttpResponse . |
HttpResponse |
setProtocolVersion(HttpVersion version)
Set the protocol version of this
HttpMessage |
HttpResponse |
setStatus(HttpResponseStatus status)
Set the status of this
HttpResponse . |
java.lang.String |
toString() |
getProtocolVersion, headers
getDecoderResult, setDecoderResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getProtocolVersion, headers
getDecoderResult, setDecoderResult
public DefaultHttpResponse(HttpVersion version, HttpResponseStatus status)
version
- the HTTP version of this responsestatus
- the getStatus of this responsepublic DefaultHttpResponse(HttpVersion version, HttpResponseStatus status, boolean validateHeaders)
version
- the HTTP version of this responsestatus
- the getStatus of this responsevalidateHeaders
- validate the headers when adding thempublic HttpResponseStatus getStatus()
HttpResponse
HttpResponse
.getStatus
在接口中 HttpResponse
HttpResponseStatus
of this HttpResponse
public HttpResponse setStatus(HttpResponseStatus status)
HttpResponse
HttpResponse
.setStatus
在接口中 HttpResponse
public HttpResponse setProtocolVersion(HttpVersion version)
HttpMessage
HttpMessage
setProtocolVersion
在接口中 HttpMessage
setProtocolVersion
在接口中 HttpResponse
setProtocolVersion
在类中 DefaultHttpMessage
public java.lang.String toString()
toString
在类中 java.lang.Object