Class DefaultProxyFacade
- java.lang.Object
-
- de.hybris.platform.xyformsfacades.proxy.impl.DefaultProxyFacade
-
- All Implemented Interfaces:
ProxyFacade
public class DefaultProxyFacade extends java.lang.Object implements ProxyFacade
Orchestrates calls toProxyService
-
-
Constructor Summary
Constructors Constructor Description DefaultProxyFacade()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetInlineFormHtml(java.lang.String applicationId, java.lang.String formId, YFormDataActionEnum action, java.lang.String formDataId)Gets the embedded HTML representation of a form definition.protected ProxyServicegetProxyService()voidproxy(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Proxies contentvoidsetProxyService(ProxyService proxyService)protected java.lang.StringurlEncode(java.lang.String url)
-
-
-
Method Detail
-
getInlineFormHtml
public java.lang.String getInlineFormHtml(java.lang.String applicationId, java.lang.String formId, YFormDataActionEnum action, java.lang.String formDataId) throws YFormServiceExceptionDescription copied from interface:ProxyFacadeGets the embedded HTML representation of a form definition.- Specified by:
getInlineFormHtmlin interfaceProxyFacade- Parameters:
applicationId- the application id of the form definitionformId- the form id of the form definitionaction- the form actionformDataId- the form data id of the form definition- Returns:
- the inline representation of the form definition as string
- Throws:
YFormServiceException- if request with specified parameter cannot be proxied or response is corrupted
-
proxy
public void proxy(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ProxyExceptionDescription copied from interface:ProxyFacadeProxies content- Specified by:
proxyin interfaceProxyFacade- Parameters:
request- theHttpServletRequestassociated with the callresponse- theHttpServletResponseassociated with the call- Throws:
ProxyException- when request cannot be proxied
-
urlEncode
protected java.lang.String urlEncode(java.lang.String url)
-
getProxyService
protected ProxyService getProxyService()
-
setProxyService
public void setProxyService(ProxyService proxyService)
-
-