com.sun.jersey.server.impl.uri.rules
Class ResourceClassRule

java.lang.Object
  extended by com.sun.jersey.server.impl.uri.rules.BaseRule
      extended by com.sun.jersey.server.impl.uri.rules.ResourceClassRule
All Implemented Interfaces:
UriRule

public final class ResourceClassRule
extends BaseRule

The rule for accepting a resource class.

Author:
Paul.Sandoz@Sun.Com

Constructor Summary
ResourceClassRule(UriTemplate template, Class resourceClass)
           
 
Method Summary
 boolean accept(CharSequence path, Object resource, UriRuleContext context)
          Accept the rule.
 
Methods inherited from class com.sun.jersey.server.impl.uri.rules.BaseRule
getTemplate, pushMatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceClassRule

public ResourceClassRule(UriTemplate template,
                         Class resourceClass)
Method Detail

accept

public boolean accept(CharSequence path,
                      Object resource,
                      UriRuleContext context)
Description copied from interface: UriRule
Accept the rule.

Parameters:
path - the URI path
resource - the current resource instance
context - the rule context
Returns:
if true then the rule was accepted, if false then the rule was not accepted.


Copyright © 2013 Oracle Corporation. All Rights Reserved.