public abstract class BaseCookieHandler extends Object implements CookieHandler
| Constructor and Description |
|---|
BaseCookieHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract CookieManager |
getCookieManager(org.apache.camel.Exchange exchange) |
CookieStore |
getCookieStore(org.apache.camel.Exchange exchange)
Get the CookieStore.
|
Map<String,List<String>> |
loadCookies(org.apache.camel.Exchange exchange,
URI uri)
Create cookie headers from the stored cookies appropriate for a given
URI.
|
void |
storeCookies(org.apache.camel.Exchange exchange,
URI uri,
Map<String,List<String>> headerMap)
Store cookies for a HTTP response in the cookie handler
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetCookiePolicypublic void storeCookies(org.apache.camel.Exchange exchange,
URI uri,
Map<String,List<String>> headerMap)
throws IOException
CookieHandlerstoreCookies in interface CookieHandlerexchange - the exchangeuri - the URI of the called HTTP serviceheaderMap - a map containing the HTTP headers returned by the serverIOException - if the cookies cannot be storedpublic Map<String,List<String>> loadCookies(org.apache.camel.Exchange exchange, URI uri) throws IOException
CookieHandlerloadCookies in interface CookieHandlerexchange - the exchangeuri - the URI of the called HTTP serviceIOException - if the cookies cannot be loadedpublic CookieStore getCookieStore(org.apache.camel.Exchange exchange)
CookieHandlergetCookieStore in interface CookieHandlerexchange - the exchangeprotected abstract CookieManager getCookieManager(org.apache.camel.Exchange exchange)
Apache Camel