Class DefaultProxyService

java.lang.Object
de.hybris.platform.xyformsservices.proxy.impl.DefaultProxyService
All Implemented Interfaces:
ProxyService

@Deprecated(since="2211", forRemoval=true) public class DefaultProxyService extends Object implements ProxyService
Deprecated, for removal: This API element is subject to removal in a future version.
Default implementation for proxy service.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected Map<String,String>
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected ProxyEngine
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    extractNamespace(javax.servlet.http.HttpServletRequest request)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Extracts the namespace from the client request.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the extra headers configured for the application.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Generates a random namespace.
    void
    proxy(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String namespace, String url, boolean forceGetMethod, Map<String,String> headers)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Proxies content.
    rewriteURL(String url, boolean embeddable)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Rewrites a URL to be used for the proxy.
    rewriteURL(String applicationId, String formId, String formDataId)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Rewrites a URL to be used for the proxy.
    rewriteURL(String applicationId, String formId, String formDataId, boolean editable)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Rewrites a URL to be used for the proxy.
    rewriteURL(String applicationId, String formId, String formDataId, boolean editable, boolean withEmptyData)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Rewrites a URL to be used for the proxy.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setOrbeonAddress(String orbeonAddress)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NEW_COMMAND

      protected static final String NEW_COMMAND
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • EDIT_COMMAND

      protected static final String EDIT_COMMAND
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • VIEW_COMMAND

      protected static final String VIEW_COMMAND
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • SERVICE_PREFIX

      protected static final String SERVICE_PREFIX
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • ORBEON_PREFIX

      protected static final String ORBEON_PREFIX
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • ORBEON_WEB_PREFIX

      protected static final String ORBEON_WEB_PREFIX
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • orbeonAddress

      protected String orbeonAddress
      Deprecated, for removal: This API element is subject to removal in a future version.
    • extraHeaders

      protected Map<String,String> extraHeaders
      Deprecated, for removal: This API element is subject to removal in a future version.
    • proxyEngine

      protected ProxyEngine proxyEngine
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • DefaultProxyService

      public DefaultProxyService()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • rewriteURL

      public String rewriteURL(String url, boolean embeddable) throws MalformedURLException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ProxyService
      Rewrites a URL to be used for the proxy.
      Specified by:
      rewriteURL in interface ProxyService
      Parameters:
      url - the url path to be rewritten
      embeddable - the flag that specifies if the rewriter should produce a URL that produces embeddable content
      Returns:
      the URL of the proxy
      Throws:
      MalformedURLException - if result URL is invalid
    • rewriteURL

      public String rewriteURL(String applicationId, String formId, String formDataId, boolean editable, boolean withEmptyData) throws MalformedURLException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ProxyService
      Rewrites a URL to be used for the proxy.
      Specified by:
      rewriteURL in interface ProxyService
      Parameters:
      applicationId - the application Id
      formId - the form Id
      formDataId - the form data Id
      editable - the flag that specifies whether form should be editable or not
      withEmptyData - the flag that specifies whether create empty data for form via background api
      Returns:
      the URL of the proxy
      Throws:
      MalformedURLException - if result URL is invalid
    • rewriteURL

      public String rewriteURL(String applicationId, String formId, String formDataId, boolean editable) throws MalformedURLException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ProxyService
      Rewrites a URL to be used for the proxy.
      Specified by:
      rewriteURL in interface ProxyService
      Parameters:
      applicationId - the application Id
      formId - the form Id
      formDataId - the form data Id
      editable - the flag that specifies whether form should be editable or not
      Returns:
      the URL of the proxy
      Throws:
      MalformedURLException - if result URL is invalid
    • rewriteURL

      public String rewriteURL(String applicationId, String formId, String formDataId) throws MalformedURLException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ProxyService
      Rewrites a URL to be used for the proxy.
      Specified by:
      rewriteURL in interface ProxyService
      Parameters:
      applicationId - the application Id
      formId - the form Id
      formDataId - the form data Id
      Returns:
      the URL of the proxy
      Throws:
      MalformedURLException - if result URL is invalid
    • getNextRandomNamespace

      public String getNextRandomNamespace()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ProxyService
      Generates a random namespace.
      Specified by:
      getNextRandomNamespace in interface ProxyService
      Returns:
      the random namespace string
    • 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 ProxyException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ProxyService
      Proxies content.
      Specified by:
      proxy in interface ProxyService
      Parameters:
      request - the HttpServletRequest associated to the call
      response - the HttpServletResponse associated to the call
      namespace - the namespace for HTML element's id generation
      url - the url to be called
      forceGetMethod - the flag for specifying if only "GET" method should be used, useful when proxying content
      headers - extra headers to be passed to the proxy service
      Throws:
      ProxyException - if request cannot be proxied
    • extractNamespace

      public String extractNamespace(javax.servlet.http.HttpServletRequest request)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ProxyService
      Extracts the namespace from the client request.
      Specified by:
      extractNamespace in interface ProxyService
      Parameters:
      request - the request to get namespace from
      Returns:
      the extracted namespace
    • setOrbeonAddress

      public void setOrbeonAddress(String orbeonAddress) throws MalformedURLException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      MalformedURLException
    • getExtraHeaders

      public Map<String,String> getExtraHeaders()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ProxyService
      Returns the extra headers configured for the application.
      Specified by:
      getExtraHeaders in interface ProxyService
      Returns:
      a new instance of the extra headers as map
    • setExtraHeaders

      public void setExtraHeaders(Map<String,String> extraHeaders)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setProxyEngine

      public void setProxyEngine(ProxyEngine proxyEngine)
      Deprecated, for removal: This API element is subject to removal in a future version.