Class MockProxyEngine
java.lang.Object
de.hybris.platform.xyformsservices.proxy.impl.MockProxyEngine
- All Implemented Interfaces:
ProxyEngine
Mock implementation for ProxyEngine
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractNamespace(javax.servlet.http.HttpServletRequest request) Extracts the namespace coming from client.voidproxy(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String namespace, String url, boolean forceGetMethod, Map<String, String> headers) Proxies content
-
Constructor Details
-
MockProxyEngine
public MockProxyEngine()
-
-
Method Details
-
proxy
public void proxy(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String namespace, String url, boolean forceGetMethod, Map<String, String> headers) throws ProxyExceptionDescription copied from interface:ProxyEngineProxies content- Specified by:
proxyin interfaceProxyEngine- 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
Description copied from interface:ProxyEngineExtracts the namespace coming from client.- Specified by:
extractNamespacein interfaceProxyEngine
-