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 defaultHttpRequestimplementation.
-
-
Field Summary
Fields Modifier and Type Field Description private HttpMethodmethodprivate java.lang.Stringuri
-
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 HttpMethodgetMethod()Returns the method of this request.java.lang.StringgetUri()Returns the URI (or path) of this request.voidsetMethod(HttpMethod method)Sets the method of this request.voidsetUri(java.lang.String uri)Sets the URI (or path) of this request.java.lang.StringtoString()-
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:HttpRequestReturns the method of this request.- Specified by:
getMethodin interfaceHttpRequest
-
setMethod
public void setMethod(HttpMethod method)
Description copied from interface:HttpRequestSets the method of this request.- Specified by:
setMethodin interfaceHttpRequest
-
getUri
public java.lang.String getUri()
Description copied from interface:HttpRequestReturns the URI (or path) of this request.- Specified by:
getUriin interfaceHttpRequest
-
setUri
public void setUri(java.lang.String uri)
Description copied from interface:HttpRequestSets the URI (or path) of this request.- Specified by:
setUriin interfaceHttpRequest
-
toString
public java.lang.String toString()
- Overrides:
toStringin classDefaultHttpMessage
-
-