org.apache.tapestry5.urlrewriter
Enum RewriteRuleApplicability

java.lang.Object
  extended by java.lang.Enum<RewriteRuleApplicability>
      extended by org.apache.tapestry5.urlrewriter.RewriteRuleApplicability
All Implemented Interfaces:
Serializable, Comparable<RewriteRuleApplicability>

public enum RewriteRuleApplicability
extends Enum<RewriteRuleApplicability>

Defines the situations to which a URLRewriterRule will be applied (inbound, outbound, or both)


Enum Constant Summary
BOTH
          contributed rule applies to both inbound and outbound requests
INBOUND
          contributed rule applies to inbound requests only
OUTBOUND
          contributed rule applies to "outbound" requests (link rewriting).
 
Method Summary
static RewriteRuleApplicability valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RewriteRuleApplicability[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INBOUND

public static final RewriteRuleApplicability INBOUND
contributed rule applies to inbound requests only


OUTBOUND

public static final RewriteRuleApplicability OUTBOUND
contributed rule applies to "outbound" requests (link rewriting).


BOTH

public static final RewriteRuleApplicability BOTH
contributed rule applies to both inbound and outbound requests

Method Detail

values

public static final RewriteRuleApplicability[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(RewriteRuleApplicability c : RewriteRuleApplicability.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static RewriteRuleApplicability valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.