Class DefaultProxyFacade
java.lang.Object
de.hybris.platform.xyformsfacades.proxy.impl.DefaultProxyFacade
- All Implemented Interfaces:
ProxyFacade
Orchestrates calls to
ProxyService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateEmptyDataForForm(String applicationId, String formId) Creates empty YFormData for a form definition via orbeon background API.getInlineFormHtml(String applicationId, String formId, YFormDataActionEnum action, String formDataId) Gets the embedded HTML representation of a form definition.protected ProxyServicevoidproxy(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Proxies contentvoidsetProxyService(ProxyService proxyService) protected String
-
Constructor Details
-
DefaultProxyFacade
public DefaultProxyFacade()
-
-
Method Details
-
getInlineFormHtml
public String getInlineFormHtml(String applicationId, String formId, YFormDataActionEnum action, String formDataId) throws YFormServiceException Description 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
-
createEmptyDataForForm
public String createEmptyDataForForm(String applicationId, String formId) throws YFormServiceException Description copied from interface:ProxyFacadeCreates empty YFormData for a form definition via orbeon background API.- Specified by:
createEmptyDataForFormin interfaceProxyFacade- Parameters:
applicationId- the application id of the form definitionformId- the form id of the form definition- Returns:
- new id for created YFormData
- 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 ProxyException Description 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
-
getProxyService
-
setProxyService
-