Class InfinispanRequest

  • Direct Known Subclasses:
    InfinispanCacheAPIRequest, InfinispanSearchRequest

    public abstract class InfinispanRequest
    extends java.lang.Object
    Representation of a HTTP request tailed for Infinispan-specific requests.
    Author:
    Sebastian Ɓaskawiec
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Map<java.lang.String,​java.util.List<java.lang.String>> parameters  
      protected io.netty.handler.codec.http.FullHttpRequest request  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected InfinispanRequest​(io.netty.handler.codec.http.FullHttpRequest request, io.netty.channel.ChannelHandlerContext ctx, java.lang.String cacheName, java.lang.String context, java.util.Map<java.lang.String,​java.util.List<java.lang.String>> parameters)  
    • Field Detail

      • request

        protected final io.netty.handler.codec.http.FullHttpRequest request
      • parameters

        protected java.util.Map<java.lang.String,​java.util.List<java.lang.String>> parameters
    • Constructor Detail

      • InfinispanRequest

        protected InfinispanRequest​(io.netty.handler.codec.http.FullHttpRequest request,
                                    io.netty.channel.ChannelHandlerContext ctx,
                                    java.lang.String cacheName,
                                    java.lang.String context,
                                    java.util.Map<java.lang.String,​java.util.List<java.lang.String>> parameters)
    • Method Detail

      • getCacheName

        public java.util.Optional<java.lang.String> getCacheName()
        Returns:
        cache name.
      • getRawRequest

        public io.netty.handler.codec.http.FullHttpRequest getRawRequest()
        Returns:
        Netty request.
      • getRawContext

        public io.netty.channel.ChannelHandlerContext getRawContext()
        Returns:
        Netty context.
      • getUseAsync

        public java.util.Optional<java.lang.Boolean> getUseAsync()
        Returns:
        true if client wishes to perform request asynchronously.
      • getAcceptContentType

        public java.util.Optional<java.lang.String> getAcceptContentType()
        Returns:
        Accepts header value.
      • getKeyContentType

        public MediaType getKeyContentType()
      • getContentType

        public java.util.Optional<java.lang.String> getContentType()
        Returns:
        Content-Type header value.
      • getAuthorization

        public java.util.Optional<java.lang.String> getAuthorization()
        Returns:
        Authorization header value.
      • getContext

        public java.lang.String getContext()
        Returns:
        Netty context.
      • data

        public java.util.Optional<byte[]> data()
        Returns:
        request's payload.
      • getParameterValue

        protected java.lang.String getParameterValue​(java.lang.String name)
      • setPrincipal

        public void setPrincipal​(java.security.Principal principal)
      • getPrincipal

        public java.security.Principal getPrincipal()