Class ResourceMethodInvoker
- java.lang.Object
-
- org.glassfish.jersey.server.model.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-responseinflectorfor invoking methods of annotation-based resource classes.- Author:
- Marek Potociar, Martin Matula
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResourceMethodInvoker.BuilderResource method invoker helper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerResponseapply(org.glassfish.jersey.server.internal.process.RequestProcessingContext processingContext)Iterable<jakarta.ws.rs.ext.ReaderInterceptor>getReaderInterceptors()Get all writer interceptors applicable to theresource methodwrapped by this invoker.Iterable<RankedProvider<jakarta.ws.rs.container.ContainerRequestFilter>>getRequestFilters()Get all bound request filters applicable to theresource methodwrapped by this invoker.Class<?>getResourceClass()MethodgetResourceMethod()Iterable<RankedProvider<jakarta.ws.rs.container.ContainerResponseFilter>>getResponseFilters()Get all bound response filters applicable to theresource methodwrapped by this invoker.Iterable<jakarta.ws.rs.ext.WriterInterceptor>getWriterInterceptors()Get all reader interceptors applicable to theresource methodwrapped by this invoker.StringtoString()
-
-
-
Method Detail
-
getResourceMethod
public Method getResourceMethod()
- Specified by:
getResourceMethodin interfacejakarta.ws.rs.container.ResourceInfo
-
getResourceClass
public Class<?> getResourceClass()
- Specified by:
getResourceClassin interfacejakarta.ws.rs.container.ResourceInfo
-
apply
public ContainerResponse apply(org.glassfish.jersey.server.internal.process.RequestProcessingContext processingContext)
- Specified by:
applyin interfaceInflector<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 theresource methodwrapped 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 theresource methodwrapped 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 theresource methodwrapped 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 theresource methodwrapped by this invoker.- Returns:
- All writer interceptors applicable to the
resource method.
-
-