org.jboss.netty.handler.codec.http
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 default HttpRequest
implementation.
- Version:
- $Rev: 1685 $, $Date: 2009-08-28 16:15:49 +0900 (금, 28 8 2009) $
- Author:
- The Netty Project (netty-dev@lists.jboss.org), Andy Taylor (andy.taylor@jboss.org), Trustin Lee (tlee@redhat.com)
Methods inherited from class org.jboss.netty.handler.codec.http.DefaultHttpMessage |
addHeader, clearHeaders, containsHeader, getContent, getContentLength, getContentLength, getHeader, getHeaderNames, getHeaders, getProtocolVersion, isChunked, isKeepAlive, removeHeader, setContent, setHeader, setHeader |
Methods inherited from interface org.jboss.netty.handler.codec.http.HttpMessage |
addHeader, clearHeaders, containsHeader, getContent, getContentLength, getContentLength, getHeader, getHeaderNames, getHeaders, getProtocolVersion, isChunked, isKeepAlive, removeHeader, setContent, setHeader, setHeader |
DefaultHttpRequest
public DefaultHttpRequest(HttpVersion httpVersion,
HttpMethod method,
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
getMethod
public HttpMethod getMethod()
- Description copied from interface:
HttpRequest
- Returns the method of this request.
- Specified by:
getMethod
in interface HttpRequest
getUri
public String getUri()
- Description copied from interface:
HttpRequest
- Returns the URI (or path) of this request.
- Specified by:
getUri
in interface HttpRequest
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2008-2009 JBoss, by Red Hat. All Rights Reserved.