org.codehaus.wadi.web.impl
Class AbstractHttpProxy

java.lang.Object
  extended by org.codehaus.wadi.web.impl.AbstractHttpProxy
All Implemented Interfaces:
java.io.Serializable, InvocationProxy
Direct Known Subclasses:
CommonsHttpProxy, StandardHttpProxy

public abstract class AbstractHttpProxy
extends java.lang.Object
implements InvocationProxy

Useful support for implementations of the HttpProxy interface

Version:
$Revision: 1858 $
Author:
Jules Gosnell, Greg Wilkins
See Also:
Serialized Form

Field Summary
protected static java.util.HashSet _DontProxyHeaders
           
protected  java.lang.String _sessionPathParamKey
           
static java.lang.String _WADI_IsSecure
           
 
Constructor Summary
AbstractHttpProxy(java.lang.String sessionPathParamKey)
           
 
Method Summary
 int copy(java.io.InputStream is, java.io.OutputStream os, int length)
           
protected abstract  void doProxy(java.net.URI uri, WebInvocation context)
           
 java.lang.String getRequestURI(javax.servlet.http.HttpServletRequest hreq)
           
 void proxy(EndPoint location, Invocation invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_WADI_IsSecure

public static final java.lang.String _WADI_IsSecure
See Also:
Constant Field Values

_DontProxyHeaders

protected static final java.util.HashSet _DontProxyHeaders

_sessionPathParamKey

protected final java.lang.String _sessionPathParamKey
Constructor Detail

AbstractHttpProxy

public AbstractHttpProxy(java.lang.String sessionPathParamKey)
Method Detail

copy

public int copy(java.io.InputStream is,
                java.io.OutputStream os,
                int length)
         throws java.io.IOException
Throws:
java.io.IOException

getRequestURI

public java.lang.String getRequestURI(javax.servlet.http.HttpServletRequest hreq)

proxy

public final void proxy(EndPoint location,
                        Invocation invocation)
                 throws ProxyingException
Specified by:
proxy in interface InvocationProxy
Parameters:
location - - host and port to which to proxy req/res
Throws:
ProxyingException - TODO

doProxy

protected abstract void doProxy(java.net.URI uri,
                                WebInvocation context)
                         throws ProxyingException
Throws:
ProxyingException


Copyright © 2011. All Rights Reserved.