Class ResourceMethodInvoker
java.lang.Object
org.glassfish.jersey.server.model.ResourceMethodInvoker
- All Implemented Interfaces:
ResourceInfo
,Inflector<RequestProcessingContext,
,ContainerResponse> Endpoint
Server-side request-response
inflector
for invoking methods
of annotation-based resource classes.- Author:
- Marek Potociar, Martin Matula
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Resource method invoker helper. -
Method Summary
Modifier and TypeMethodDescriptionapply
(RequestProcessingContext processingContext) Transform data of a given type into a result of the different type.Get all writer interceptors applicable to theresource method
wrapped by this invoker.Get all bound request filters applicable to theresource method
wrapped by this invoker.Class<?>
Get all bound response filters applicable to theresource method
wrapped by this invoker.Get all reader interceptors applicable to theresource method
wrapped by this invoker.toString()
-
Method Details
-
getResourceMethod
- Specified by:
getResourceMethod
in interfaceResourceInfo
-
getResourceClass
- Specified by:
getResourceClass
in interfaceResourceInfo
-
apply
Description copied from interface:Inflector
Transform data of a given type into a result of the different type.- Specified by:
apply
in interfaceInflector<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 method
wrapped 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 method
wrapped 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 method
wrapped by this invoker.- Returns:
- All reader interceptors applicable to the
resource method
.
-
getReaderInterceptors
Get all writer interceptors applicable to theresource method
wrapped by this invoker.- Returns:
- All writer interceptors applicable to the
resource method
.
-
toString
-