Class ResourceMethodInvoker
- java.lang.Object
-
- org.glassfish.jersey.server.model.ResourceMethodInvoker
-
- All Implemented Interfaces:
ResourceInfo,Inflector<RequestProcessingContext,ContainerResponse>,Endpoint
public class ResourceMethodInvoker extends Object implements Endpoint, 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(RequestProcessingContext processingContext)Iterable<ReaderInterceptor>getReaderInterceptors()Get all writer interceptors applicable to theresource methodwrapped by this invoker.Iterable<RankedProvider<ContainerRequestFilter>>getRequestFilters()Get all bound request filters applicable to theresource methodwrapped by this invoker.Class<?>getResourceClass()MethodgetResourceMethod()Iterable<RankedProvider<ContainerResponseFilter>>getResponseFilters()Get all bound response filters applicable to theresource methodwrapped by this invoker.Iterable<WriterInterceptor>getWriterInterceptors()Get all reader interceptors applicable to theresource methodwrapped by this invoker.StringtoString()
-
-
-
Method Detail
-
getResourceMethod
public Method getResourceMethod()
- Specified by:
getResourceMethodin interfaceResourceInfo
-
getResourceClass
public Class<?> getResourceClass()
- Specified by:
getResourceClassin interfaceResourceInfo
-
apply
public ContainerResponse apply(RequestProcessingContext processingContext)
- Specified by:
applyin interfaceInflector<RequestProcessingContext,ContainerResponse>
-
getRequestFilters
public Iterable<RankedProvider<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<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<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<ReaderInterceptor> getReaderInterceptors()
Get all writer interceptors applicable to theresource methodwrapped by this invoker.- Returns:
- All writer interceptors applicable to the
resource method.
-
-