Class DefaultProxyFacade

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String createEmptyDataForForm​(java.lang.String applicationId, java.lang.String formId)
      Creates empty YFormData for a form definition via orbeon background API.
      java.lang.String getInlineFormHtml​(java.lang.String applicationId, java.lang.String formId, YFormDataActionEnum action, java.lang.String formDataId)
      Gets the embedded HTML representation of a form definition.
      protected ProxyService getProxyService()  
      void proxy​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Proxies content
      void setProxyService​(ProxyService proxyService)  
      protected java.lang.String urlEncode​(java.lang.String url)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultProxyFacade

        public DefaultProxyFacade()
    • Method Detail

      • getInlineFormHtml

        public java.lang.String getInlineFormHtml​(java.lang.String applicationId,
                                                  java.lang.String formId,
                                                  YFormDataActionEnum action,
                                                  java.lang.String formDataId)
                                           throws YFormServiceException
        Description copied from interface: ProxyFacade
        Gets the embedded HTML representation of a form definition.
        Specified by:
        getInlineFormHtml in interface ProxyFacade
        Parameters:
        applicationId - the application id of the form definition
        formId - the form id of the form definition
        action - the form action
        formDataId - 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 java.lang.String createEmptyDataForForm​(java.lang.String applicationId,
                                                       java.lang.String formId)
                                                throws YFormServiceException
        Description copied from interface: ProxyFacade
        Creates empty YFormData for a form definition via orbeon background API.
        Specified by:
        createEmptyDataForForm in interface ProxyFacade
        Parameters:
        applicationId - the application id of the form definition
        formId - 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: ProxyFacade
        Proxies content
        Specified by:
        proxy in interface ProxyFacade
        Parameters:
        request - the HttpServletRequest associated with the call
        response - the HttpServletResponse associated 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)