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 are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
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 RewriteRuleApplicability[] values()
Returns an array containing the constants of this enum type, in the order they are 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 are 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
NullPointerException - if the argument is null


Copyright © 2012. All Rights Reserved.