public class InfinispanRequest extends Object
Modifier and Type | Method and Description |
---|---|
Optional<byte[]> |
data()
Returns request's payload.
|
Optional<String> |
getAcceptContentType()
Returns
Accepts header value. |
Optional<String> |
getAuthorization()
Returns
Authorization header value. |
Optional<String> |
getCacheControl() |
Optional<String> |
getCacheName()
Returns cache name.
|
Optional<String> |
getContentType()
Returns
Content-Type header value. |
String |
getContext()
Returns Netty context.
|
Optional<String> |
getEtagIfMatch()
Returns
If-Match header value. |
Optional<String> |
getEtagIfModifiedSince()
Returns
If-Modified-Since header value. |
Optional<String> |
getEtagIfNoneMatch()
Returns
If-None-Match header value. |
Optional<String> |
getEtagIfUnmodifiedSince()
Returns
If-Unmodified-Since header value. |
Optional<String> |
getExtended()
Returns whether client wishes to return 'Extended Headers'.
|
Optional<String> |
getKey()
Returns key.
|
Optional<Long> |
getMaxIdleTimeSeconds()
Returns
maxIdleTimeSeconds header value. |
io.netty.channel.ChannelHandlerContext |
getRawContext()
Returns Netty context.
|
io.netty.handler.codec.http.FullHttpRequest |
getRawRequest()
Returns Netty request.
|
Optional<String> |
getStreamId()
Returns HTTP/2.0 Stream Id.
|
Optional<Long> |
getTimeToLiveSeconds()
Returns
timeToLiveSeconds header value. |
Optional<Boolean> |
getUseAsync()
Returns whether request should be done asynchronously.
|
static InfinispanRequest |
newRequest(io.netty.handler.codec.http.FullHttpRequest request,
io.netty.channel.ChannelHandlerContext ctx)
Creates new
InfinispanRequest based on Netty types. |
public static InfinispanRequest newRequest(io.netty.handler.codec.http.FullHttpRequest request, io.netty.channel.ChannelHandlerContext ctx)
InfinispanRequest
based on Netty types.request
- Netty request.ctx
- Netty Context.InfinispanRequest
.public Optional<String> getStreamId()
public io.netty.handler.codec.http.FullHttpRequest getRawRequest()
public io.netty.channel.ChannelHandlerContext getRawContext()
public Optional<Boolean> getUseAsync()
true
if client wishes to perform request asynchronously.public Optional<String> getAcceptContentType()
Accepts
header value.Accepts
header value.public Optional<String> getContentType()
Content-Type
header value.Content-Type
header value.public Optional<String> getAuthorization()
Authorization
header value.Authorization
header value.public Optional<byte[]> data()
public Optional<Long> getTimeToLiveSeconds()
timeToLiveSeconds
header value.timeToLiveSeconds
header value.public Optional<Long> getMaxIdleTimeSeconds()
maxIdleTimeSeconds
header value.maxIdleTimeSeconds
header value.public Optional<String> getEtagIfNoneMatch()
If-None-Match
header value.If-None-Match
header value.https://en.wikipedia.org/wiki/HTTP_ETag
public Optional<String> getEtagIfUnmodifiedSince()
If-Unmodified-Since
header value.If-Unmodified-Since
header value.https://en.wikipedia.org/wiki/HTTP_ETag
public Optional<String> getEtagIfModifiedSince()
If-Modified-Since
header value.If-Modified-Since
header value.https://en.wikipedia.org/wiki/HTTP_ETag
public Optional<String> getEtagIfMatch()
If-Match
header value.If-Match
header value.https://en.wikipedia.org/wiki/HTTP_ETag
public Optional<String> getExtended()
true
if client wishes to return 'Extended Headers'.public String getContext()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.