Package org.infinispan.rest
Class InfinispanRequest
- java.lang.Object
-
- org.infinispan.rest.InfinispanRequest
-
- Direct Known Subclasses:
InfinispanCacheAPIRequest
,InfinispanSearchRequest
public abstract class InfinispanRequest extends Object
Representation of a HTTP request tailed for Infinispan-specific requests.- Author:
- Sebastian Ćaskawiec
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Optional<byte[]>
data()
protected abstract InfinispanResponse
execute()
Optional<String>
getAcceptContentType()
Optional<String>
getAuthorization()
Optional<String>
getCacheName()
Optional<String>
getContentType()
String
getContext()
MediaType
getKeyContentType()
Set<String>
getParameterNames()
Map<String,List<String>>
getParameters()
String
getParameterValue(String name)
List<String>
getParameterValues(String name)
io.netty.channel.ChannelHandlerContext
getRawContext()
io.netty.handler.codec.http.FullHttpRequest
getRawRequest()
Subject
getSubject()
Optional<Boolean>
getUseAsync()
String
header(String s)
List<String>
headers(String s)
String
method()
void
setSubject(Subject subject)
String
uri()
-
-
-
Method Detail
-
execute
protected abstract InfinispanResponse execute()
-
getRawRequest
public io.netty.handler.codec.http.FullHttpRequest getRawRequest()
- Returns:
- Netty request.
-
getRawContext
public io.netty.channel.ChannelHandlerContext getRawContext()
- Returns:
- Netty context.
-
getUseAsync
public Optional<Boolean> getUseAsync()
- Returns:
true
if client wishes to perform request asynchronously.
-
getKeyContentType
public MediaType getKeyContentType()
-
getContext
public String getContext()
- Returns:
- Netty context.
-
data
public Optional<byte[]> data()
- Returns:
- request's payload.
-
setSubject
public void setSubject(Subject subject)
-
getSubject
public Subject getSubject()
-
uri
public String uri()
-
method
public String method()
-
-