Interface ProxyEngine
-
- All Known Implementing Classes:
DefaultApache31ProxyEngine,DefaultSimpleProxyEngine,MockProxyEngine
public interface ProxyEngineProxies HTTP content.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringextractNamespace(javax.servlet.http.HttpServletRequest request)Extracts the namespace coming from client.voidproxy(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String namespace, java.lang.String url, boolean forceGetMethod, java.util.Map<java.lang.String,java.lang.String> headers)Proxies content
-
-
-
Method Detail
-
proxy
void proxy(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String namespace, java.lang.String url, boolean forceGetMethod, java.util.Map<java.lang.String,java.lang.String> headers) throws ProxyExceptionProxies content- Parameters:
request- TheHttpServletRequestassociated to the callresponse- TheHttpServletResponseassociated to the callnamespace- Used for HTML element's id generationurl- The url to be calledforceGetMethod- Useful when proxying content, when false it uses the same method used in the original request.headers- Extra headers to be passed to the connection, useful for authentication headers.- Throws:
ProxyException
-
extractNamespace
java.lang.String extractNamespace(javax.servlet.http.HttpServletRequest request)
Extracts the namespace coming from client.- Parameters:
request-
-
-