com.sun.jersey.api.container.filter
Class ResourceDebuggingFilterFactory

java.lang.Object  extended by com.sun.jersey.api.container.filter.ResourceDebuggingFilterFactory
All Implemented Interfaces:
ResourceFilterFactory

public class ResourceDebuggingFilterFactory
extends java.lang.Object
implements ResourceFilterFactory

A ResourceFilterFactory provides tracking of resource matching. Every successful match is logged and developers can easily discover which resource / method was matched and see how the request path is being consumed. When an application is deployed as a Servlet or Filter this Jersey resource filter can be registered using the following initialization parameter:

     <init-param>         <param-name>com.sun.jersey.spi.container.ResourceFilters</param-name>         <param-value>com.sun.jersey.api.container.filter.ResourceDebuggingFilterFactory</param-value>     </init-param&gt 

Author:
pavel.bucek@sun.com
See Also:
com.sun.jersey.api.container.filter


Constructor Summary
ResourceDebuggingFilterFactory(HttpContext hc)
           
 
Method Summary
 java.util.List<ResourceFilter>create(AbstractMethod am)
          Create a list of ResourceFilter instance given a method of the abstract resource model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceDebuggingFilterFactory

public ResourceDebuggingFilterFactory(@Context                                      HttpContext hc)
Method Detail

create

public java.util.List<ResourceFilter> create(AbstractMethod am)
Description copied from interface: ResourceFilterFactory
Create a list of ResourceFilter instance given a method of the abstract resource model.

When applying the list of resource filters to a request each resource filter is applied, in order, from the first to last entry in the list. When applying the list of resource filters to a response each resource filter is applied, in reverse order, from the last to first entry in the list.

Specified by:
create in interface ResourceFilterFactory
Parameters:
am - the abstract method. This may be an instance of the following: AbstractResourceMethod, AbstractSubResourceMethod or AbstractSubResourceLocator.
Returns:
the list of resource filter, otherwise an empty list or null if no resource filters are associated with the method.


Copyright © 2011
Oracle Corporation. All Rights Reserved.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14