public class WebClientSessionAware extends WebClientBase implements WebClientSession
| Constructor and Description |
|---|
WebClientSessionAware(WebClient webClient,
CookieStore cookieStore) |
| Modifier and Type | Method and Description |
|---|---|
WebClientSession |
addHeader(CharSequence name,
CharSequence value)
Configure the client to add an HTTP header to every request.
|
WebClientSession |
addHeader(CharSequence name,
Iterable<CharSequence> values)
Configure the client to add an HTTP header to every request.
|
WebClientSession |
addHeader(String name,
Iterable<String> values)
Configure the client to add an HTTP header to every request.
|
WebClientSession |
addHeader(String name,
String value)
Configure the client to add an HTTP header to every request.
|
CookieStore |
cookieStore()
Returns this client's
CookieStore |
protected CaseInsensitiveHeaders |
headers() |
WebClientSession |
removeHeader(CharSequence name)
Removes a previously added header.
|
WebClientSession |
removeHeader(String name)
Removes a previously added header.
|
addInterceptor, close, createContext, delete, delete, delete, deleteAbs, get, get, get, getAbs, head, head, head, headAbs, patch, patch, patch, patchAbs, post, post, post, postAbs, put, put, put, putAbs, raw, raw, raw, rawAbs, request, request, request, request, request, request, request, request, requestAbs, requestAbsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, createclose, create, create, delete, delete, delete, deleteAbs, get, get, get, getAbs, head, head, head, headAbs, patch, patch, patch, patchAbs, post, post, post, postAbs, put, put, put, putAbs, raw, raw, raw, rawAbs, request, request, request, request, request, request, request, request, requestAbs, requestAbs, wrap, wrappublic WebClientSessionAware(WebClient webClient, CookieStore cookieStore)
public CookieStore cookieStore()
WebClientSessionCookieStore
All cookies added to this store will be send with every request. The CookieStore honors the domain, path, secure and max-age properties of received cookies and is automatically updated with cookies present in responses received by this client.
cookieStore in interface WebClientSessionprotected CaseInsensitiveHeaders headers()
public WebClientSession addHeader(CharSequence name, CharSequence value)
WebClientSessionaddHeader in interface WebClientSessionname - the header namevalue - the header valuepublic WebClientSession addHeader(String name, String value)
WebClientSessionaddHeader in interface WebClientSessionname - the header namevalue - the header valuepublic WebClientSession addHeader(CharSequence name, Iterable<CharSequence> values)
WebClientSessionaddHeader in interface WebClientSessionname - the header namevalues - the header valuepublic WebClientSession addHeader(String name, Iterable<String> values)
WebClientSessionaddHeader in interface WebClientSessionname - the header namevalues - the header valuepublic WebClientSession removeHeader(CharSequence name)
WebClientSessionremoveHeader in interface WebClientSessionname - the header namepublic WebClientSession removeHeader(String name)
WebClientSessionremoveHeader in interface WebClientSessionname - the header nameCopyright © 2020. All rights reserved.