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.void
setMethod
(HttpMethod method) Sets the method of this request.void
Sets 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, 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
-
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:HttpRequest
Returns the method of this request.- Specified by:
getMethod
in interfaceHttpRequest
-
setMethod
Description copied from interface:HttpRequest
Sets the method of this request.- Specified by:
setMethod
in interfaceHttpRequest
-
getUri
Description copied from interface:HttpRequest
Returns the URI (or path) of this request.- Specified by:
getUri
in interfaceHttpRequest
-
setUri
Description copied from interface:HttpRequest
Sets the URI (or path) of this request.- Specified by:
setUri
in interfaceHttpRequest
-
toString
- Overrides:
toString
in classDefaultHttpMessage
-