net.sf.easyweb4j.controller
Enum ActionResult.NavigationType

java.lang.Object
  extended by java.lang.Enum<ActionResult.NavigationType>
      extended by net.sf.easyweb4j.controller.ActionResult.NavigationType
All Implemented Interfaces:
Serializable, Comparable<ActionResult.NavigationType>
Enclosing class:
ActionResult

public static enum ActionResult.NavigationType
extends Enum<ActionResult.NavigationType>

Enum of possible navigations after the execution of action method of the controller.

Author:
Chandra Sekar S

Enum Constant Summary
RAW_RESPONSE
          Sends a raw response through a ResponseHandler.
REDIRECT
          Redirects to a different controller and/or action.
RENDER
          Renders a different view for the same controller instead of the default view of the action.
 
Method Summary
static ActionResult.NavigationType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ActionResult.NavigationType[] 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

REDIRECT

public static final ActionResult.NavigationType REDIRECT
Redirects to a different controller and/or action.


RENDER

public static final ActionResult.NavigationType RENDER
Renders a different view for the same controller instead of the default view of the action.


RAW_RESPONSE

public static final ActionResult.NavigationType RAW_RESPONSE
Sends a raw response through a ResponseHandler.

Method Detail

values

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

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

valueOf

public static ActionResult.NavigationType 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 © 2009-2010 Chandra Sekar S. All Rights Reserved.