com.sun.jersey.server.impl.template
Class ViewableRule

java.lang.Object
  extended by com.sun.jersey.server.impl.template.ViewableRule
All Implemented Interfaces:
UriRule

public class ViewableRule
extends Object
implements UriRule

A viewable rule that defers the request to a template. If a template is not available then the rule is not accepted.

Author:
Paul.Sandoz@Sun.Com

Constructor Summary
ViewableRule(List<QualitySourceMediaType> priorityMediaTypes, List<ContainerRequestFilter> requestFilters, List<ContainerResponseFilter> responseFilters)
           
 
Method Summary
 boolean accept(CharSequence path, 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

ViewableRule

public ViewableRule(List<QualitySourceMediaType> priorityMediaTypes,
                    List<ContainerRequestFilter> requestFilters,
                    List<ContainerResponseFilter> responseFilters)
Method Detail

accept

public final boolean accept(CharSequence path,
                            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 © 2013 Oracle Corporation. All Rights Reserved.