Interface CookieManager
- All Known Implementing Classes:
DefaultCookieManager
public interface CookieManager
Cookie Manager that helps proxying content from another web application
-
Method Summary
Modifier and TypeMethodDescriptionvoidprocessRequest(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.
-
Method Details
-
processRequest
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.- Parameters:
conn- TheHttpServletRequestassociated to the callurl- URL to be accessed.- Throws:
URISyntaxException
-
processRequest
void processRequest(javax.servlet.http.HttpServletRequest request, HttpURLConnection conn, String url) throws URISyntaxException 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.- Parameters:
request- Http requestconn- Http Connection to copy the cookies tourl- URL to be accessed.- Throws:
URISyntaxException
-
processResponse
void processResponse(HttpURLConnection conn, String url) throws URISyntaxException, org.apache.http.cookie.MalformedCookieException Returning 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:
URISyntaxExceptionorg.apache.http.cookie.MalformedCookieException
-