Package org.infinispan.rest
Class InfinispanCacheAPIRequest
- java.lang.Object
-
- org.infinispan.rest.InfinispanRequest
-
- org.infinispan.rest.InfinispanCacheAPIRequest
-
public class InfinispanCacheAPIRequest extends InfinispanRequest
Representation of a HTTP request related to Cache API operations.- Since:
- 9.2
-
-
Field Summary
-
Fields inherited from class org.infinispan.rest.InfinispanRequest
parameters, request
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InfinispanResponse
execute()
Optional<String>
getCacheControl()
Optional<String>
getEtagIfMatch()
ReturnsIf-Match
header value.Optional<String>
getEtagIfModifiedSince()
ReturnsIf-Modified-Since
header value.Optional<String>
getEtagIfNoneMatch()
ReturnsIf-None-Match
header value.Optional<String>
getEtagIfUnmodifiedSince()
ReturnsIf-Unmodified-Since
header value.Optional<String>
getExtended()
Returns whether client wishes to return 'Extended Headers'.Optional<Object>
getKey()
Optional<Long>
getMaxIdleTimeSeconds()
ReturnsmaxIdleTimeSeconds
header value.Optional<Long>
getTimeToLiveSeconds()
ReturnstimeToLiveSeconds
header value.-
Methods inherited from class org.infinispan.rest.InfinispanRequest
data, getAcceptContentType, getAuthorization, getCacheName, getContentType, getContext, getKeyContentType, getParameterNames, getParameters, getParameterValue, getParameterValues, getRawContext, getRawRequest, getSubject, getUseAsync, header, headers, method, setSubject, uri
-
-
-
-
Method Detail
-
execute
protected InfinispanResponse execute()
- Specified by:
execute
in classInfinispanRequest
-
getTimeToLiveSeconds
public Optional<Long> getTimeToLiveSeconds()
ReturnstimeToLiveSeconds
header value.- Returns:
timeToLiveSeconds
header value.
-
getMaxIdleTimeSeconds
public Optional<Long> getMaxIdleTimeSeconds()
ReturnsmaxIdleTimeSeconds
header value.- Returns:
maxIdleTimeSeconds
header value.
-
getEtagIfNoneMatch
public Optional<String> getEtagIfNoneMatch()
ReturnsIf-None-Match
header value.- Returns:
If-None-Match
header value.- See Also:
- HTTP_ETag
-
getEtagIfUnmodifiedSince
public Optional<String> getEtagIfUnmodifiedSince()
ReturnsIf-Unmodified-Since
header value.- Returns:
If-Unmodified-Since
header value.- See Also:
- HTTP_ETag
-
getEtagIfModifiedSince
public Optional<String> getEtagIfModifiedSince()
ReturnsIf-Modified-Since
header value.- Returns:
If-Modified-Since
header value.- See Also:
- HTTP_ETag
-
getEtagIfMatch
public Optional<String> getEtagIfMatch()
ReturnsIf-Match
header value.- Returns:
If-Match
header value.- See Also:
- HTTP_ETag
-
-