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.voidsetStatus(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, setProtocolVersionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:HttpResponseReturns the status of this response.- Specified by:
getStatusin interfaceHttpResponse
-
setStatus
Description copied from interface:HttpResponseSets the status of this response.- Specified by:
setStatusin interfaceHttpResponse
-
toString
- Overrides:
toStringin classDefaultHttpMessage
-