Package org.apache.ofbiz.ws.rs.process
Class RestRequestHandler
java.lang.Object
org.apache.ofbiz.ws.rs.process.RestRequestHandler
- All Implemented Interfaces:
org.glassfish.jersey.process.Inflector<javax.ws.rs.container.ContainerRequestContext,
javax.ws.rs.core.Response>
- Direct Known Subclasses:
ServiceRequestHandler
public abstract class RestRequestHandler
extends Object
implements org.glassfish.jersey.process.Inflector<javax.ws.rs.container.ContainerRequestContext,javax.ws.rs.core.Response>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
apply
(javax.ws.rs.container.ContainerRequestContext ctx) protected abstract javax.ws.rs.core.Response
extractPathParameters
(javax.ws.rs.container.ContainerRequestContext requestContext) extractQueryParameters
(javax.ws.rs.container.ContainerRequestContext requestContext) extractRequestBody
(javax.ws.rs.container.ContainerRequestContext requestContext) protected org.glassfish.jersey.server.ExtendedUriInfo
protected javax.ws.rs.core.HttpHeaders
protected HttpServletRequest
javax.inject.Provider<org.glassfish.jersey.spi.ExceptionMappers>
protected javax.ws.rs.container.ResourceInfo
protected ServletContext
protected javax.ws.rs.core.UriInfo
-
Constructor Details
-
RestRequestHandler
public RestRequestHandler()
-
-
Method Details
-
getHttpHeaders
protected javax.ws.rs.core.HttpHeaders getHttpHeaders()- Returns:
- the httpHeaders
-
getUriInfo
protected javax.ws.rs.core.UriInfo getUriInfo()- Returns:
- the uriInfo
-
getExtendedUriInfo
protected org.glassfish.jersey.server.ExtendedUriInfo getExtendedUriInfo()- Returns:
- the extendedUriInfo
-
getResourceInfo
protected javax.ws.rs.container.ResourceInfo getResourceInfo()- Returns:
- the resourceInfo
-
getServletContext
- Returns:
- the servletContext
-
getHttpRequest
- Returns:
- the httpRequest
-
apply
public javax.ws.rs.core.Response apply(javax.ws.rs.container.ContainerRequestContext ctx) - Specified by:
apply
in interfaceorg.glassfish.jersey.process.Inflector<javax.ws.rs.container.ContainerRequestContext,
javax.ws.rs.core.Response> - Parameters:
ctx
-- Returns:
-
execute
protected abstract javax.ws.rs.core.Response execute(javax.ws.rs.container.ContainerRequestContext data, Map<String, Object> arguments) - Parameters:
data
-arguments
-- Returns:
-
extractRequestBody
protected Map<String,Object> extractRequestBody(javax.ws.rs.container.ContainerRequestContext requestContext) - Parameters:
requestContext
-- Returns:
-
extractPathParameters
protected Map<String,Object> extractPathParameters(javax.ws.rs.container.ContainerRequestContext requestContext) - Parameters:
requestContext
-- Returns:
-
extractQueryParameters
protected Map<String,Object> extractQueryParameters(javax.ws.rs.container.ContainerRequestContext requestContext) - Parameters:
requestContext
-- Returns:
-
extract
- Parameters:
multivaluedMap
-- Returns:
-
getMappers
public javax.inject.Provider<org.glassfish.jersey.spi.ExceptionMappers> getMappers()- Returns:
- the mappers
-