Class ResourceMethodInvoker

  • All Implemented Interfaces:
    jakarta.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, jakarta.ws.rs.container.ResourceInfo
    Server-side request-response inflector for invoking methods of annotation-based resource classes.
    Author:
    Marek Potociar, Martin Matula
    • Method Detail

      • getResourceMethod

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

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

        public ContainerResponse apply​(org.glassfish.jersey.server.internal.process.RequestProcessingContext processingContext)
        Specified by:
        apply in interface Inflector<org.glassfish.jersey.server.internal.process.RequestProcessingContext,​ContainerResponse>
      • getRequestFilters

        public Iterable<RankedProvider<jakarta.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<jakarta.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<jakarta.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<jakarta.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.