Class DefaultCookieManager
- java.lang.Object
-
- de.hybris.platform.xyformsservices.proxy.orbeonservices.impl.DefaultCookieManager
-
- All Implemented Interfaces:
CookieManager
@Scope("session") public class DefaultCookieManager extends java.lang.Object implements CookieManagerOrbeon specific implementation forCookieManagerSince the class has session scope, only one instance of this class is attached to a client.
-
-
Constructor Summary
Constructors Constructor Description DefaultCookieManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.http.cookie.CookieOrigingetCookieOrigin(java.lang.String url)voidprocessRequest(java.net.HttpURLConnection conn, java.lang.String url)Copies the stored cookies to the given http connection.voidprocessResponse(java.net.HttpURLConnection conn, java.lang.String url)Returning cookies coming from the proxied connection are stored locally, for instance: Set-Cookie.
-
-
-
Method Detail
-
processRequest
public void processRequest(java.net.HttpURLConnection conn, java.lang.String url) throws java.net.URISyntaxExceptionDescription 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- Http Connection to copy the cookies tourl- URL to be accessed.- Throws:
java.net.URISyntaxException
-
processResponse
public void processResponse(java.net.HttpURLConnection conn, java.lang.String url) throws java.net.URISyntaxException, org.apache.http.cookie.MalformedCookieExceptionDescription 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:
java.net.URISyntaxExceptionorg.apache.http.cookie.MalformedCookieException
-
getCookieOrigin
public org.apache.http.cookie.CookieOrigin getCookieOrigin(java.lang.String url) throws java.net.URISyntaxException- Throws:
java.net.URISyntaxException
-
-