org.codehaus.wadi.web.impl
Class AbstractHttpProxy
java.lang.Object
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
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(org.codehaus.wadi.group.EndPoint location,
Invocation invocation)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_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
AbstractHttpProxy
public AbstractHttpProxy(java.lang.String sessionPathParamKey)
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(org.codehaus.wadi.group.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 © 2010. All Rights Reserved.