org.glassfish.jersey.server.model
Class ResourceMethodInvoker

java.lang.Object
  extended by org.glassfish.jersey.server.model.ResourceMethodInvoker
All Implemented Interfaces:
javax.ws.rs.container.ResourceInfo, Inflector<ContainerRequest,ContainerResponse>, Endpoint

public class ResourceMethodInvoker
extends java.lang.Object
implements 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 (martin.matula at oracle.com)

Nested Class Summary
static class ResourceMethodInvoker.Builder
          Resource method invoker "assisted" injection helper.
 
Method Summary
 ContainerResponse apply(ContainerRequest requestContext)
           
 java.lang.Iterable<RankedProvider<javax.ws.rs.ext.ReaderInterceptor>> getReaderInterceptors()
          Get all writer interceptors applicable to the resource method wrapped by this invoker.
 java.lang.Iterable<RankedProvider<javax.ws.rs.container.ContainerRequestFilter>> getRequestFilters()
          Get all bound request filters applicable to the resource method wrapped by this invoker.
 java.lang.Class<?> getResourceClass()
           
 java.lang.reflect.Method getResourceMethod()
           
 java.lang.Iterable<RankedProvider<javax.ws.rs.container.ContainerResponseFilter>> getResponseFilters()
          Get all bound response filters applicable to the resource method wrapped by this invoker.
 java.lang.Iterable<RankedProvider<javax.ws.rs.ext.WriterInterceptor>> getWriterInterceptors()
          Get all reader interceptors applicable to the resource method wrapped by this invoker.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getResourceMethod

public java.lang.reflect.Method getResourceMethod()
Specified by:
getResourceMethod in interface javax.ws.rs.container.ResourceInfo

getResourceClass

public java.lang.Class<?> getResourceClass()
Specified by:
getResourceClass in interface javax.ws.rs.container.ResourceInfo

apply

public ContainerResponse apply(ContainerRequest requestContext)
Specified by:
apply in interface Inflector<ContainerRequest,ContainerResponse>

getRequestFilters

public java.lang.Iterable<RankedProvider<javax.ws.rs.container.ContainerRequestFilter>> getRequestFilters()
Get all bound request filters applicable to the resource method wrapped by this invoker.

Returns:
All bound (dynamically or by name) request filters applicable to the resource method.

getResponseFilters

public java.lang.Iterable<RankedProvider<javax.ws.rs.container.ContainerResponseFilter>> getResponseFilters()
Get all bound response filters applicable to the resource method wrapped by this invoker.

Returns:
All bound (dynamically or by name) response filters applicable to the resource method.

getWriterInterceptors

public java.lang.Iterable<RankedProvider<javax.ws.rs.ext.WriterInterceptor>> getWriterInterceptors()
Get all reader interceptors applicable to the resource method wrapped by this invoker.

Returns:
All reader interceptors applicable to the resource method.

getReaderInterceptors

public java.lang.Iterable<RankedProvider<javax.ws.rs.ext.ReaderInterceptor>> getReaderInterceptors()
Get all writer interceptors applicable to the resource method wrapped by this invoker.

Returns:
All writer interceptors applicable to the resource method.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007-2013 Oracle Corporation. All Rights Reserved. Use is subject to license terms.