public abstract class ExchangeHintBuilder extends Object
ExchangeHint
instance.Constructor and Description |
---|
ExchangeHintBuilder() |
Modifier and Type | Method and Description |
---|---|
abstract ExchangeHint |
build()
Build a
ExchangeHint . |
static ExchangeHintBuilder |
create()
Create a default
ExchangeHintBuilder instance. |
abstract String |
methodName()
Return method hint name
|
abstract ExchangeHintBuilder |
methodName(String methodName)
Set method hint name.
|
abstract boolean |
noCache()
Return true if the underlying
ResourceResolver should disallow caching. |
abstract ExchangeHintBuilder |
noCache(boolean noCache)
Set the flag whether or not the underlying
ResourceResolver should disallow caching. |
abstract Object |
request()
Deprecated.
Use
requestHeaders() and requestBody() instead. |
abstract ExchangeHintBuilder |
request(Object request)
Deprecated.
Use
requestHeaders(Map) and requestBody(Object) instead. |
abstract Object |
requestBody()
Return request body object representation or request callback instance than can be understood by the backend.
|
abstract ExchangeHintBuilder |
requestBody(Object requestBody)
Set request body object representation or request callback instance than can be understood by the backend
|
abstract ExchangeHintBuilder |
requestHeader(String headerName,
String... headerValue)
Add request headers.
|
abstract Map<String,List<String>> |
requestHeaders()
Return request headers.
|
abstract ExchangeHintBuilder |
requestHeaders(Map<String,List<String>> requestHeaders)
Reset request headers by the given new
requestHeaders . |
public static ExchangeHintBuilder create()
ExchangeHintBuilder
instance.ExchangeHintBuilder
instancepublic abstract ExchangeHint build()
ExchangeHint
.public abstract ExchangeHintBuilder methodName(String methodName)
methodName
- method hint name.public abstract String methodName()
@Deprecated public abstract ExchangeHintBuilder request(Object request)
requestHeaders(Map)
and requestBody(Object)
instead.
Note: It is strongly recommended to use requestHeader(String, String...)
and requestBody(Object)
instead of using this deprecated method.
When requestHeader(String, String...)
or requestBody(Object)
is used, any invocation of
this deprecated method will be just ignored.
request
- request object representation or request callback instance that can be understood by the backend@Deprecated public abstract Object request()
requestHeaders()
and requestBody()
instead.
Note: It is strongly recommended to use requestHeaders()
and requestBody()
instead of using this deprecated method.
public abstract ExchangeHintBuilder requestHeader(String headerName, String... headerValue)
request
- request headerspublic abstract ExchangeHintBuilder requestHeaders(Map<String,List<String>> requestHeaders)
requestHeaders
.request
- request headerspublic abstract Map<String,List<String>> requestHeaders()
public abstract ExchangeHintBuilder requestBody(Object requestBody)
request
- request body object representation or request callback instance that can be understood by
the backendpublic abstract Object requestBody()
public abstract ExchangeHintBuilder noCache(boolean noCache)
ResourceResolver
should disallow caching.noCache
- flag whether or not the underlying ResourceResolver
should disallow cachingpublic abstract boolean noCache()
ResourceResolver
should disallow caching.ResourceResolver
should disallow cachingCopyright © 2017–2020 Hippo B.V. (http://www.onehippo.com). All rights reserved.