java.lang.Object
de.hybris.platform.xyformsservices.proxy.orbeonservices.impl.DefaultCookieManager
All Implemented Interfaces:
CookieManager

public class DefaultCookieManager extends Object implements CookieManager
Orbeon specific implementation for CookieManager

Since the class has session scope, only one instance of this class is attached to a client.

  • Constructor Details

    • DefaultCookieManager

      public DefaultCookieManager()
  • Method Details

    • processRequest

      public void processRequest(javax.servlet.http.HttpServletRequest request, HttpURLConnection conn, String url) throws URISyntaxException
      Description copied from interface: CookieManager
      Copies the stored cookies to the given http connection. If no previous manager exists one will be created and stored as part of the current session.
      Specified by:
      processRequest in interface CookieManager
      Parameters:
      request - Http request
      conn - Http Connection to copy the cookies to
      url - URL to be accessed.
      Throws:
      URISyntaxException
    • processRequest

      public void processRequest(HttpURLConnection conn, String url) throws URISyntaxException
      Description copied from interface: CookieManager
      Copies the stored cookies to the given http connection. If no previous manager exists one will be created and stored as part of the current session.
      Specified by:
      processRequest in interface CookieManager
      Parameters:
      conn - The HttpServletRequest associated to the call
      url - URL to be accessed.
      Throws:
      URISyntaxException
    • processResponse

      public void processResponse(HttpURLConnection conn, String url) throws URISyntaxException, org.apache.http.cookie.MalformedCookieException
      Description copied from interface: CookieManager
      Returning cookies coming from the proxied connection are stored locally, for instance: Set-Cookie.
      Specified by:
      processResponse in interface CookieManager
      Parameters:
      conn - Http Connection to copy the cookies from
      url - URL that has been accessed
      Throws:
      URISyntaxException
      org.apache.http.cookie.MalformedCookieException
    • getCookieOrigin

      public org.apache.http.cookie.CookieOrigin getCookieOrigin(String url) throws URISyntaxException
      Throws:
      URISyntaxException
    • getSessionService

      protected SessionService getSessionService()
    • setSessionService

      public void setSessionService(SessionService sessionService)
    • getUserService

      public UserService getUserService()
    • setUserService

      public void setUserService(UserService userService)