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

java.lang.Object
  extended by com.sun.jersey.server.impl.uri.rules.BaseRule
All Implemented Interfaces:
UriRule
Direct Known Subclasses:
ResourceClassRule, ResourceObjectRule, SubLocatorRule

public abstract class BaseRule
extends java.lang.Object
implements UriRule

Abstract class for a rule that manages capturing group names.

Author:
Paul.Sandoz@Sun.Com

Constructor Summary
BaseRule(UriTemplate template)
          Public constructor.
 
Method Summary
protected  UriTemplate getTemplate()
          Get URI template initialized in ctor.
protected  void pushMatch(UriRuleContext context)
          Push match to the provided context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.jersey.spi.uri.rules.UriRule
accept
 

Constructor Detail

BaseRule

public BaseRule(UriTemplate template)
Public constructor.

Parameters:
template - The template of the URI
Method Detail

pushMatch

protected final void pushMatch(UriRuleContext context)
Push match to the provided context.

Parameters:
context - The URI rule context

getTemplate

protected final UriTemplate getTemplate()
Get URI template initialized in ctor.

Returns:
The template stored in the object


Copyright © 2014 Oracle Corporation. All Rights Reserved.