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
Nested ClassesModifier and TypeClassDescriptionstatic classResource 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 methodwrapped by this invoker.Get all bound request filters applicable to theresource methodwrapped by this invoker.Class<?>Get all bound response filters applicable to theresource methodwrapped by this invoker.Get all reader interceptors applicable to theresource methodwrapped by this invoker.toString()
-
Method Details
-
getResourceMethod
- Specified by:
getResourceMethodin interfaceResourceInfo
-
getResourceClass
- Specified by:
getResourceClassin interfaceResourceInfo
-
apply
Description copied from interface:InflectorTransform data of a given type into a result of the different type.- Specified by:
applyin 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 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
-