Class JaxRsRequest

java.lang.Object
com.tangosol.coherence.management.internal.JaxRsRequest
All Implemented Interfaces:
com.tangosol.internal.http.HttpRequest

public class JaxRsRequest extends Object implements com.tangosol.internal.http.HttpRequest
An implementation of a HttpRequest that wraps a Jersey JAX-RS ContainerRequest.
Since:
22.06
Author:
Jonathan Knight 2022.01.25
  • Constructor Details

    • JaxRsRequest

      public JaxRsRequest(jakarta.ws.rs.container.ContainerRequestContext request)
      Create a JaxRsRequest.
      Parameters:
      request - the ContainerRequest to wrap
  • Method Details

    • getMethod

      public com.tangosol.internal.http.HttpMethod getMethod()
      Specified by:
      getMethod in interface com.tangosol.internal.http.HttpRequest
    • getHeaderString

      public String getHeaderString(String sName)
      Specified by:
      getHeaderString in interface com.tangosol.internal.http.HttpRequest
    • getBaseURI

      public URI getBaseURI()
      Specified by:
      getBaseURI in interface com.tangosol.internal.http.HttpRequest
    • getRequestURI

      public URI getRequestURI()
      Specified by:
      getRequestURI in interface com.tangosol.internal.http.HttpRequest
    • getQueryParameters

      public com.tangosol.internal.http.QueryParameters getQueryParameters()
      Specified by:
      getQueryParameters in interface com.tangosol.internal.http.HttpRequest
    • getPathParameters

      public com.tangosol.internal.http.PathParameters getPathParameters()
      Specified by:
      getPathParameters in interface com.tangosol.internal.http.HttpRequest
    • setPathParameters

      public void setPathParameters(com.tangosol.internal.http.PathParameters parameters)
      Specified by:
      setPathParameters in interface com.tangosol.internal.http.HttpRequest
    • getBody

      public InputStream getBody()
      Specified by:
      getBody in interface com.tangosol.internal.http.HttpRequest
    • getJsonBody

      public Map<String,Object> getJsonBody(Function<InputStream,Map<String,Object>> fnParser)
      Specified by:
      getJsonBody in interface com.tangosol.internal.http.HttpRequest
    • getResourceRegistry

      public com.tangosol.util.ResourceRegistry getResourceRegistry()
      Specified by:
      getResourceRegistry in interface com.tangosol.internal.http.HttpRequest
    • getParentUri

      protected URI getParentUri(jakarta.ws.rs.core.UriInfo uriInfo)
    • getParentUriSegmentsCount

      public int getParentUriSegmentsCount(jakarta.ws.rs.core.UriInfo uriInfo)
      Return the number of URI segments in the parent URL.
      Parameters:
      uriInfo - the URI Info
      Returns:
      the number of segments in the parent URL