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 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

      protected ServletContext getServletContext()
      Returns:
      the servletContext
    • getHttpRequest

      protected HttpServletRequest getHttpRequest()
      Returns:
      the httpRequest
    • apply

      public javax.ws.rs.core.Response apply(javax.ws.rs.container.ContainerRequestContext ctx)
      Specified by:
      apply in interface org.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

      protected Map<String,Object> extract(javax.ws.rs.core.MultivaluedMap<String,String> multivaluedMap)
      Parameters:
      multivaluedMap -
      Returns:
    • getMappers

      public javax.inject.Provider<org.glassfish.jersey.spi.ExceptionMappers> getMappers()
      Returns:
      the mappers