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

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

public class TerminatingRule
extends java.lang.Object
implements UriRule

A terminating rule that checks to see if the response has been set by the runtime. If a response has been set then the rule is accepted otherwise it is not.

Author:
Paul.Sandoz@Sun.Com

Constructor Summary
TerminatingRule()
           
 
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

TerminatingRule

public TerminatingRule()
Method Detail

accept

public final 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.