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

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

public final class RootResourceClassesRule
extends java.lang.Object
implements UriRule

The rule for accepting the root resource classes.

Author:
Paul.Sandoz@Sun.Com

Constructor Summary
RootResourceClassesRule(java.util.Map<PathPattern,UriRule> rulesMap)
           
 
Method Summary
 boolean accept(java.lang.CharSequence path, java.lang.Object resource, UriRuleContext context)
          Accept the rule.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootResourceClassesRule

public RootResourceClassesRule(java.util.Map<PathPattern,UriRule> rulesMap)
Method Detail

accept

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

Specified by:
accept in interface UriRule
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 © 2011 Sun Microsystems, Inc. All Rights Reserved.