Project Wonder 5.0

er.extensions.appserver
Enum ERXResponseRewriter.TagMissingBehavior

java.lang.Object
  extended by java.lang.Enum<ERXResponseRewriter.TagMissingBehavior>
      extended by er.extensions.appserver.ERXResponseRewriter.TagMissingBehavior
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ERXResponseRewriter.TagMissingBehavior>
Enclosing class:
ERXResponseRewriter

public static enum ERXResponseRewriter.TagMissingBehavior
extends java.lang.Enum<ERXResponseRewriter.TagMissingBehavior>

TagMissingBehavior specifies several ways the response rewriter should handle the case of having a missing tag that you attempted to insert in front of (for instance, if you ask to insert in the head tag and the head tag does not exist).

Author:
mschrag

Enum Constant Summary
Inline
          Inline just renders the content at the current location in the response.
Skip
          Skip does not render the content at all and silently ignores the missing tag.
SkipAndWarn
          Like skip, no content will be rendered into the response, but a warning will be printed onto the console.
Top
          Top tries to behave like head-insertion by maintaining the same ordering as head would (first added, first printed).
 
Method Summary
static ERXResponseRewriter.TagMissingBehavior valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ERXResponseRewriter.TagMissingBehavior[] 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

Top

public static final ERXResponseRewriter.TagMissingBehavior Top
Top tries to behave like head-insertion by maintaining the same ordering as head would (first added, first printed). If an Ajax response, top would push to the front of the response.


Inline

public static final ERXResponseRewriter.TagMissingBehavior Inline
Inline just renders the content at the current location in the response.


Skip

public static final ERXResponseRewriter.TagMissingBehavior Skip
Skip does not render the content at all and silently ignores the missing tag.


SkipAndWarn

public static final ERXResponseRewriter.TagMissingBehavior SkipAndWarn
Like skip, no content will be rendered into the response, but a warning will be printed onto the console.

Method Detail

values

public static ERXResponseRewriter.TagMissingBehavior[] 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 (ERXResponseRewriter.TagMissingBehavior c : ERXResponseRewriter.TagMissingBehavior.values())
    System.out.println(c);

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

valueOf

public static ERXResponseRewriter.TagMissingBehavior valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.