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