Class ResourceMethodInvoker

java.lang.Object
org.glassfish.jersey.server.model.ResourceMethodInvoker
All Implemented Interfaces:
javax.ws.rs.container.ResourceInfo, Inflector<org.glassfish.jersey.server.internal.process.RequestProcessingContext, ContainerResponse>, org.glassfish.jersey.server.internal.process.Endpoint

public class ResourceMethodInvoker extends Object implements org.glassfish.jersey.server.internal.process.Endpoint, javax.ws.rs.container.ResourceInfo
Server-side request-response inflector for invoking methods of annotation-based resource classes.
Author:
Marek Potociar (marek.potociar at oracle.com), Martin Matula
  • Method Details

    • getResourceMethod

      public Method getResourceMethod()
      Specified by:
      getResourceMethod in interface javax.ws.rs.container.ResourceInfo
    • getResourceClass

      public Class<?> getResourceClass()
      Specified by:
      getResourceClass in interface javax.ws.rs.container.ResourceInfo
    • apply

      public ContainerResponse apply(org.glassfish.jersey.server.internal.process.RequestProcessingContext processingContext)
      Description copied from interface: Inflector
      Transform data of a given type into a result of the different type.
      Specified by:
      apply in interface Inflector<org.glassfish.jersey.server.internal.process.RequestProcessingContext, ContainerResponse>
      Parameters:
      processingContext - data to be transformed into a result.
      Returns:
      data transformation result. Return value must not be null.
    • getRequestFilters

      public Iterable<RankedProvider<javax.ws.rs.container.ContainerRequestFilter>> getRequestFilters()
      Get all bound request filters applicable to the resource method wrapped by this invoker.
      Returns:
      All bound (dynamically or by name) request filters applicable to the resource method.
    • getResponseFilters

      public Iterable<RankedProvider<javax.ws.rs.container.ContainerResponseFilter>> getResponseFilters()
      Get all bound response filters applicable to the resource method wrapped by this invoker.
      Returns:
      All bound (dynamically or by name) response filters applicable to the resource method.
    • getWriterInterceptors

      public Iterable<javax.ws.rs.ext.WriterInterceptor> getWriterInterceptors()
      Get all reader interceptors applicable to the resource method wrapped by this invoker.
      Returns:
      All reader interceptors applicable to the resource method.
    • getReaderInterceptors

      public Iterable<javax.ws.rs.ext.ReaderInterceptor> getReaderInterceptors()
      Get all writer interceptors applicable to the resource method wrapped by this invoker.
      Returns:
      All writer interceptors applicable to the resource method.
    • toString

      public String toString()
      Overrides:
      toString in class Object