Class DefaultHttpResponse
java.lang.Object
org.jboss.netty.handler.codec.http.DefaultHttpMessage
org.jboss.netty.handler.codec.http.DefaultHttpResponse
- All Implemented Interfaces:
HttpMessage
,HttpResponse
The default
HttpResponse
implementation.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultHttpResponse
(HttpVersion version, HttpResponseStatus status) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the status of this response.void
setStatus
(HttpResponseStatus status) Sets the status of this response.toString()
Methods inherited from class org.jboss.netty.handler.codec.http.DefaultHttpMessage
appendHeaders, getContent, getProtocolVersion, headers, isChunked, setChunked, setContent, setProtocolVersion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jboss.netty.handler.codec.http.HttpMessage
getContent, getProtocolVersion, headers, isChunked, setChunked, setContent, setProtocolVersion
-
Field Details
-
status
-
-
Constructor Details
-
DefaultHttpResponse
Creates a new instance.- Parameters:
version
- the HTTP version of this responsestatus
- the status of this response
-
-
Method Details
-
getStatus
Description copied from interface:HttpResponse
Returns the status of this response.- Specified by:
getStatus
in interfaceHttpResponse
-
setStatus
Description copied from interface:HttpResponse
Sets the status of this response.- Specified by:
setStatus
in interfaceHttpResponse
-
toString
- Overrides:
toString
in classDefaultHttpMessage
-