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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classResource method invoker helper. -
Method Summary
Modifier and TypeMethodDescriptionapply(org.glassfish.jersey.server.internal.process.RequestProcessingContext processingContext) Transform data of a given type into a result of the different type.Iterable<javax.ws.rs.ext.ReaderInterceptor> Get all writer interceptors applicable to theresource methodwrapped by this invoker.Iterable<RankedProvider<javax.ws.rs.container.ContainerRequestFilter>> Get all bound request filters applicable to theresource methodwrapped by this invoker.Class<?> Iterable<RankedProvider<javax.ws.rs.container.ContainerResponseFilter>> Get all bound response filters applicable to theresource methodwrapped by this invoker.Iterable<javax.ws.rs.ext.WriterInterceptor> Get all reader interceptors applicable to theresource methodwrapped by this invoker.toString()
-
Method Details
-
getResourceMethod
- Specified by:
getResourceMethodin interfacejavax.ws.rs.container.ResourceInfo
-
getResourceClass
- Specified by:
getResourceClassin interfacejavax.ws.rs.container.ResourceInfo
-
apply
public ContainerResponse apply(org.glassfish.jersey.server.internal.process.RequestProcessingContext processingContext) Description copied from interface:InflectorTransform data of a given type into a result of the different type.- Specified by:
applyin interfaceInflector<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
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
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
Get all reader interceptors applicable to theresource methodwrapped by this invoker.- Returns:
- All reader interceptors applicable to the
resource method.
-
getReaderInterceptors
Get all writer interceptors applicable to theresource methodwrapped by this invoker.- Returns:
- All writer interceptors applicable to the
resource method.
-
toString
-