public class MockProxyEngine extends java.lang.Object implements ProxyEngine
| Constructor and Description |
|---|
MockProxyEngine() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
extractNamespace(HttpServletRequest request)
Extracts the namespace coming from client.
|
void |
proxy(HttpServletRequest request,
HttpServletResponse response,
java.lang.String namespace,
java.lang.String url,
boolean forceGetMethod,
java.util.Map<java.lang.String,java.lang.String> headers)
Proxies content
|
public void proxy(HttpServletRequest request,
HttpServletResponse response,
java.lang.String namespace,
java.lang.String url,
boolean forceGetMethod,
java.util.Map<java.lang.String,java.lang.String> headers)
throws ProxyException
ProxyEngineproxy in interface ProxyEnginerequest - The HttpServletRequest associated to the callresponse - The HttpServletResponse associated 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.ProxyExceptionpublic java.lang.String extractNamespace(HttpServletRequest request)
ProxyEngineextractNamespace in interface ProxyEngineCopyright © 2018 SAP SE. All Rights Reserved.