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 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)
           
 Iterable<javax.ws.rs.ext.ReaderInterceptor> getReaderInterceptors()
          Get all writer interceptors applicable to the resource method wrapped by this invoker.
 Iterable<RankedProvider<javax.ws.rs.container.ContainerRequestFilter>> getRequestFilters()
          Get all bound request filters applicable to the resource method wrapped by this invoker.
 Class<?> getResourceClass()
           
 Method getResourceMethod()
           
 Iterable<RankedProvider<javax.ws.rs.container.ContainerResponseFilter>> getResponseFilters()
          Get all bound response filters applicable to the resource method wrapped by this invoker.
 Iterable<javax.ws.rs.ext.WriterInterceptor> getWriterInterceptors()
          Get all reader interceptors applicable to the resource method wrapped by this invoker.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getResourceMethod

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

getResourceClass

public 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 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 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 Iterable<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 Iterable<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 String toString()
Overrides:
toString in class Object


Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.