Class DefaultHttpRequest
java.lang.Object
org.jboss.netty.handler.codec.http.DefaultHttpMessage
org.jboss.netty.handler.codec.http.DefaultHttpRequest
- All Implemented Interfaces:
HttpMessage,HttpRequest
The default
HttpRequest implementation.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the method of this request.getUri()Returns the URI (or path) of this request.voidsetMethod(HttpMethod method) Sets the method of this request.voidSets the URI (or path) of this request.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
-
method
-
uri
-
-
Constructor Details
-
DefaultHttpRequest
Creates a new instance.- Parameters:
httpVersion- the HTTP version of the requestmethod- the HTTP method of the requesturi- the URI or path of the request
-
-
Method Details
-
getMethod
Description copied from interface:HttpRequestReturns the method of this request.- Specified by:
getMethodin interfaceHttpRequest
-
setMethod
Description copied from interface:HttpRequestSets the method of this request.- Specified by:
setMethodin interfaceHttpRequest
-
getUri
Description copied from interface:HttpRequestReturns the URI (or path) of this request.- Specified by:
getUriin interfaceHttpRequest
-
setUri
Description copied from interface:HttpRequestSets the URI (or path) of this request.- Specified by:
setUriin interfaceHttpRequest
-
toString
- Overrides:
toStringin classDefaultHttpMessage
-