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, wait
setCookiePolicy
public void storeCookies(org.apache.camel.Exchange exchange, URI uri, Map<String,List<String>> headerMap) throws IOException
CookieHandler
storeCookies
in interface CookieHandler
exchange
- 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
CookieHandler
loadCookies
in interface CookieHandler
exchange
- the exchangeuri
- the URI of the called HTTP serviceIOException
- if the cookies cannot be loadedpublic CookieStore getCookieStore(org.apache.camel.Exchange exchange)
CookieHandler
getCookieStore
in interface CookieHandler
exchange
- the exchangeprotected abstract CookieManager getCookieManager(org.apache.camel.Exchange exchange)
Apache Camel