Interface PerInstanceCookieStore
- All Known Implementing Classes:
JdkPerInstanceCookieStore
public interface PerInstanceCookieStore
A cookie store that stores cookies per
Instance.-
Method Summary
Modifier and TypeMethodDescriptionvoidcleanupInstance(InstanceId instanceId) Informs the store that the cookies of the giveninstanceIdcould be removed.get(InstanceId instanceId, URI requestUri, org.springframework.util.MultiValueMap<String, String> requestHeaders) Gets all the applicable cookies (cookie name => string representation of cookie) for the giveninstanceIdand the specified uri in the request header.voidput(InstanceId instanceId, URI requestUri, org.springframework.util.MultiValueMap<String, String> responseHeaders) Stores all the applicable cookies (examples are response header fields that are namedSet-Cookie) present in the response headers.
-
Method Details
-
get
org.springframework.util.MultiValueMap<String,String> get(InstanceId instanceId, URI requestUri, org.springframework.util.MultiValueMap<String, String> requestHeaders) Gets all the applicable cookies (cookie name => string representation of cookie) for the giveninstanceIdand the specified uri in the request header. The URI passed as an argument specifies the intended use for the cookies.- Parameters:
instanceId- identifies the web client instancerequestUri- a URI representing the intended use for the cookiesrequestHeaders- a Map from request header field names to lists of field values representing the current request- Returns:
- an immutable map from cookie names to text representations of cookies to be included into a request header
-
put
void put(InstanceId instanceId, URI requestUri, org.springframework.util.MultiValueMap<String, String> responseHeaders) Stores all the applicable cookies (examples are response header fields that are namedSet-Cookie) present in the response headers.- Parameters:
instanceId- identifies the web client instancerequestUri- an URI where the cookies come fromresponseHeaders- a map from field names to lists of field values representing the response header fields
-
cleanupInstance
Informs the store that the cookies of the giveninstanceIdcould be removed.- Parameters:
instanceId- identifies theInstance
-