Class DefaultCookieManager
java.lang.Object
de.hybris.platform.xyformsservices.proxy.orbeonservices.impl.DefaultCookieManager
- All Implemented Interfaces:
CookieManager
Orbeon specific implementation for
CookieManager
Since the class has session scope, only one instance of this class is attached to a client.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.cookie.CookieOrigingetCookieOrigin(String url) protected SessionServicevoidprocessRequest(HttpURLConnection conn, String url) Copies the stored cookies to the given http connection.voidprocessRequest(javax.servlet.http.HttpServletRequest request, HttpURLConnection conn, String url) Copies the stored cookies to the given http connection.voidprocessResponse(HttpURLConnection conn, String url) Returning cookies coming from the proxied connection are stored locally, for instance: Set-Cookie.voidsetSessionService(SessionService sessionService) voidsetUserService(UserService userService)
-
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:CookieManagerCopies 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:
processRequestin interfaceCookieManager- Parameters:
request- Http requestconn- Http Connection to copy the cookies tourl- URL to be accessed.- Throws:
URISyntaxException
-
processRequest
Description copied from interface:CookieManagerCopies 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:
processRequestin interfaceCookieManager- Parameters:
conn- TheHttpServletRequestassociated to the callurl- 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:CookieManagerReturning cookies coming from the proxied connection are stored locally, for instance: Set-Cookie.- Specified by:
processResponsein interfaceCookieManager- Parameters:
conn- Http Connection to copy the cookies fromurl- URL that has been accessed- Throws:
URISyntaxExceptionorg.apache.http.cookie.MalformedCookieException
-
getCookieOrigin
- Throws:
URISyntaxException
-
getSessionService
-
setSessionService
-
getUserService
-
setUserService
-