org.jboss.netty.handler.codec.http
Class DefaultHttpRequest

java.lang.Object
  extended by org.jboss.netty.handler.codec.http.DefaultHttpMessage
      extended by 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)

Constructor Summary
DefaultHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri)
          Creates a new instance.
 
Method Summary
 HttpMethod getMethod()
          Returns the method of this request.
 String getUri()
          Returns the URI (or path) of this request.
 String toString()
           
 
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 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
addHeader, clearHeaders, containsHeader, getContent, getContentLength, getContentLength, getHeader, getHeaderNames, getHeaders, getProtocolVersion, isChunked, isKeepAlive, removeHeader, setContent, setHeader, setHeader
 

Constructor Detail

DefaultHttpRequest

public DefaultHttpRequest(HttpVersion httpVersion,
                          HttpMethod method,
                          String uri)
Creates a new instance.

Parameters:
httpVersion - the HTTP version of the request
method - the HTTP method of the request
uri - 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 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.