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 InfinispanResponseexecute()Optional<String>getCacheControl()Optional<String>getEtagIfMatch()ReturnsIf-Matchheader value.Optional<String>getEtagIfModifiedSince()ReturnsIf-Modified-Sinceheader value.Optional<String>getEtagIfNoneMatch()ReturnsIf-None-Matchheader value.Optional<String>getEtagIfUnmodifiedSince()ReturnsIf-Unmodified-Sinceheader value.Optional<String>getExtended()Returns whether client wishes to return 'Extended Headers'.Optional<Object>getKey()Optional<Long>getMaxIdleTimeSeconds()ReturnsmaxIdleTimeSecondsheader value.Optional<Long>getTimeToLiveSeconds()ReturnstimeToLiveSecondsheader 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:
executein classInfinispanRequest
-
getTimeToLiveSeconds
public Optional<Long> getTimeToLiveSeconds()
ReturnstimeToLiveSecondsheader value.- Returns:
timeToLiveSecondsheader value.
-
getMaxIdleTimeSeconds
public Optional<Long> getMaxIdleTimeSeconds()
ReturnsmaxIdleTimeSecondsheader value.- Returns:
maxIdleTimeSecondsheader value.
-
getEtagIfNoneMatch
public Optional<String> getEtagIfNoneMatch()
ReturnsIf-None-Matchheader value.- Returns:
If-None-Matchheader value.- See Also:
- HTTP_ETag
-
getEtagIfUnmodifiedSince
public Optional<String> getEtagIfUnmodifiedSince()
ReturnsIf-Unmodified-Sinceheader value.- Returns:
If-Unmodified-Sinceheader value.- See Also:
- HTTP_ETag
-
getEtagIfModifiedSince
public Optional<String> getEtagIfModifiedSince()
ReturnsIf-Modified-Sinceheader value.- Returns:
If-Modified-Sinceheader value.- See Also:
- HTTP_ETag
-
getEtagIfMatch
public Optional<String> getEtagIfMatch()
ReturnsIf-Matchheader value.- Returns:
If-Matchheader value.- See Also:
- HTTP_ETag
-
-