org.codehaus.wadi.impl
Class AbstractHttpProxy

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

public abstract class AbstractHttpProxy
extends Object
implements InvocationProxy

Useful support for implementations of the HttpProxy interface

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

Field Summary
protected static HashSet _DontProxyHeaders
           
protected  String _sessionPathParamKey
           
static String _WADI_IsSecure
           
 
Constructor Summary
AbstractHttpProxy(String sessionPathParamKey)
           
 
Method Summary
 int copy(InputStream is, OutputStream os, int length)
           
protected abstract  void doProxy(InetSocketAddress address, WebInvocationContext context)
           
 String getRequestURI(HttpServletRequest hreq)
           
 void proxy(ProxiedLocation location, InvocationContext invocationContext)
           
 
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 String _WADI_IsSecure
See Also:
Constant Field Values

_DontProxyHeaders

protected static final HashSet _DontProxyHeaders

_sessionPathParamKey

protected final String _sessionPathParamKey
Constructor Detail

AbstractHttpProxy

public AbstractHttpProxy(String sessionPathParamKey)
Method Detail

copy

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

getRequestURI

public String getRequestURI(HttpServletRequest hreq)

proxy

public final void proxy(ProxiedLocation location,
                        InvocationContext invocationContext)
                 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(InetSocketAddress address,
                                WebInvocationContext context)
                         throws ProxyingException
Throws:
ProxyingException


Copyright © 2004-2008 Core Developers Network Ltd.. All Rights Reserved.