org.apache.mina.proxy.handlers.http
Class HttpProxyRequest

java.lang.Object
  extended by org.apache.mina.proxy.handlers.ProxyRequest
      extended by org.apache.mina.proxy.handlers.http.HttpProxyRequest

public class HttpProxyRequest
extends ProxyRequest

HttpProxyRequest.java - Wrapper class for HTTP requests.

Since:
MINA 2.0.0-M3
Version:
$Rev: 685703 $, $Date: 2008-08-14 00:14:47 +0200 (Do, 14 Aug 2008) $
Author:
The Apache MINA Project (dev@mina.apache.org)

Field Summary
 String httpURI
           
 String httpVerb
           
 
Constructor Summary
HttpProxyRequest(InetSocketAddress endpointAddress)
           
HttpProxyRequest(InetSocketAddress endpointAddress, String httpVersion)
           
HttpProxyRequest(InetSocketAddress endpointAddress, String httpVersion, Map<String,List<String>> headers)
           
HttpProxyRequest(String httpURI)
           
HttpProxyRequest(String httpURI, String httpVersion)
           
HttpProxyRequest(String httpVerb, String httpURI, String httpVersion)
           
HttpProxyRequest(String httpVerb, String httpURI, String httpVersion, Map<String,List<String>> headers)
           
 
Method Summary
 void checkRequiredProperty(String propertyName)
          Check if the property is set otherwise throw aProxyAuthException.
 Map<String,List<String>> getHeaders()
          HTTP headers.
 String getHost()
          Returns the host to which we are connecting.
 String getHttpURI()
          The request URI.
 String getHttpVerb()
          The request verb.
 String getHttpVersion()
          The HTTP version.
 Map<String,String> getProperties()
          Get the additional properties.
 void setHeaders(Map<String,List<String>> headers)
          Set the HTTP headers.
 void setHttpVersion(String httpVersion)
          Sets the HTTP version.
 void setProperties(Map<String,String> properties)
          Set the additional properties.
 String toHttpString()
          Returns the string representation of the HTTP request .
 
Methods inherited from class org.apache.mina.proxy.handlers.ProxyRequest
getEndpointAddress, setEndpointAddress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

httpVerb

public final String httpVerb

httpURI

public final String httpURI
Constructor Detail

HttpProxyRequest

public HttpProxyRequest(InetSocketAddress endpointAddress)

HttpProxyRequest

public HttpProxyRequest(InetSocketAddress endpointAddress,
                        String httpVersion)

HttpProxyRequest

public HttpProxyRequest(InetSocketAddress endpointAddress,
                        String httpVersion,
                        Map<String,List<String>> headers)

HttpProxyRequest

public HttpProxyRequest(String httpURI)

HttpProxyRequest

public HttpProxyRequest(String httpURI,
                        String httpVersion)

HttpProxyRequest

public HttpProxyRequest(String httpVerb,
                        String httpURI,
                        String httpVersion)

HttpProxyRequest

public HttpProxyRequest(String httpVerb,
                        String httpURI,
                        String httpVersion,
                        Map<String,List<String>> headers)
Method Detail

getHttpVerb

public final String getHttpVerb()
The request verb.


getHttpVersion

public String getHttpVersion()
The HTTP version.


setHttpVersion

public void setHttpVersion(String httpVersion)
Sets the HTTP version.


getHost

public final String getHost()
Returns the host to which we are connecting.


getHttpURI

public final String getHttpURI()
The request URI.


getHeaders

public final Map<String,List<String>> getHeaders()
HTTP headers.


setHeaders

public final void setHeaders(Map<String,List<String>> headers)
Set the HTTP headers.


getProperties

public Map<String,String> getProperties()
Get the additional properties.


setProperties

public void setProperties(Map<String,String> properties)
Set the additional properties.


checkRequiredProperty

public void checkRequiredProperty(String propertyName)
                           throws ProxyAuthException
Check if the property is set otherwise throw aProxyAuthException.

Throws:
ProxyAuthException

toHttpString

public String toHttpString()
Returns the string representation of the HTTP request .



Copyright © 2004-2009 Apache MINA Project. All Rights Reserved.