Class DefaultHttpRequest
- java.lang.Object
-
- org.jboss.netty.handler.codec.http.DefaultHttpMessage
-
- org.jboss.netty.handler.codec.http.DefaultHttpRequest
-
- All Implemented Interfaces:
HttpMessage
,HttpRequest
public class DefaultHttpRequest extends DefaultHttpMessage implements HttpRequest
The defaultHttpRequest
implementation.
-
-
Field Summary
Fields Modifier and Type Field Description private HttpMethod
method
private java.lang.String
uri
-
Constructor Summary
Constructors Constructor Description DefaultHttpRequest(HttpVersion httpVersion, HttpMethod method, java.lang.String uri)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpMethod
getMethod()
Returns the method of this request.java.lang.String
getUri()
Returns the URI (or path) of this request.void
setMethod(HttpMethod method)
Sets the method of this request.void
setUri(java.lang.String uri)
Sets the URI (or path) of this request.java.lang.String
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 Detail
-
method
private HttpMethod method
-
uri
private java.lang.String uri
-
-
Constructor Detail
-
DefaultHttpRequest
public DefaultHttpRequest(HttpVersion httpVersion, HttpMethod method, java.lang.String uri)
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 Detail
-
getMethod
public HttpMethod getMethod()
Description copied from interface:HttpRequest
Returns the method of this request.- Specified by:
getMethod
in interfaceHttpRequest
-
setMethod
public void setMethod(HttpMethod method)
Description copied from interface:HttpRequest
Sets the method of this request.- Specified by:
setMethod
in interfaceHttpRequest
-
getUri
public java.lang.String getUri()
Description copied from interface:HttpRequest
Returns the URI (or path) of this request.- Specified by:
getUri
in interfaceHttpRequest
-
setUri
public void setUri(java.lang.String uri)
Description copied from interface:HttpRequest
Sets the URI (or path) of this request.- Specified by:
setUri
in interfaceHttpRequest
-
toString
public java.lang.String toString()
- Overrides:
toString
in classDefaultHttpMessage
-
-