Interface CookieManager
-
- All Known Implementing Classes:
DefaultCookieManager
public interface CookieManagerCookie Manager that helps proxying content from another web application
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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
void processRequest(java.net.HttpURLConnection conn, java.lang.String url) throws java.net.URISyntaxExceptionCopies 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.- Parameters:
conn- Http Connection to copy the cookies tourl- URL to be accessed.- Throws:
java.net.URISyntaxException
-
processResponse
void processResponse(java.net.HttpURLConnection conn, java.lang.String url) throws java.net.URISyntaxException, org.apache.http.cookie.MalformedCookieExceptionReturning cookies coming from the proxied connection are stored locally, for instance: Set-Cookie.- Parameters:
conn- Http Connection to copy the cookies fromurl- URL that has been accessed- Throws:
java.net.URISyntaxExceptionorg.apache.http.cookie.MalformedCookieException
-
-