Class JaxRsRequest
java.lang.Object
com.tangosol.coherence.management.internal.JaxRsRequest
- All Implemented Interfaces:
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAPathParametersimplementation that wraps a JAX-RSUriInfo.static classAQueryParametersimplementation that wraps a JAX-RSUriInfo. -
Constructor Summary
ConstructorsConstructorDescriptionJaxRsRequest(jakarta.ws.rs.container.ContainerRequestContext request) Create aJaxRsRequest. -
Method Summary
Modifier and TypeMethodDescriptiongetBody()getHeaderString(String sName) getJsonBody(Function<InputStream, Map<String, Object>> fnParser) com.tangosol.internal.http.HttpMethodprotected URIgetParentUri(jakarta.ws.rs.core.UriInfo uriInfo) intgetParentUriSegmentsCount(jakarta.ws.rs.core.UriInfo uriInfo) Return the number of URI segments in the parent URL.com.tangosol.internal.http.PathParameterscom.tangosol.internal.http.QueryParameterscom.tangosol.util.ResourceRegistryvoidsetPathParameters(com.tangosol.internal.http.PathParameters parameters) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tangosol.internal.http.HttpRequest
getFirstPathParameter, getFirstQueryParameter
-
Constructor Details
-
JaxRsRequest
public JaxRsRequest(jakarta.ws.rs.container.ContainerRequestContext request) Create aJaxRsRequest.- Parameters:
request- theContainerRequestto wrap
-
-
Method Details
-
getMethod
public com.tangosol.internal.http.HttpMethod getMethod()- Specified by:
getMethodin interfacecom.tangosol.internal.http.HttpRequest
-
getHeaderString
- Specified by:
getHeaderStringin interfacecom.tangosol.internal.http.HttpRequest
-
getBaseURI
- Specified by:
getBaseURIin interfacecom.tangosol.internal.http.HttpRequest
-
getRequestURI
- Specified by:
getRequestURIin interfacecom.tangosol.internal.http.HttpRequest
-
getQueryParameters
public com.tangosol.internal.http.QueryParameters getQueryParameters()- Specified by:
getQueryParametersin interfacecom.tangosol.internal.http.HttpRequest
-
getPathParameters
public com.tangosol.internal.http.PathParameters getPathParameters()- Specified by:
getPathParametersin interfacecom.tangosol.internal.http.HttpRequest
-
setPathParameters
public void setPathParameters(com.tangosol.internal.http.PathParameters parameters) - Specified by:
setPathParametersin interfacecom.tangosol.internal.http.HttpRequest
-
getBody
- Specified by:
getBodyin interfacecom.tangosol.internal.http.HttpRequest
-
getJsonBody
- Specified by:
getJsonBodyin interfacecom.tangosol.internal.http.HttpRequest
-
getResourceRegistry
public com.tangosol.util.ResourceRegistry getResourceRegistry()- Specified by:
getResourceRegistryin interfacecom.tangosol.internal.http.HttpRequest
-
getParentUri
-
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
-