Package net.anotheria.anosite.shared
Enum InternalResponseCode
- java.lang.Object
-
- java.lang.Enum<InternalResponseCode>
-
- net.anotheria.anosite.shared.InternalResponseCode
-
- All Implemented Interfaces:
Serializable,Comparable<InternalResponseCode>
public enum InternalResponseCode extends Enum<InternalResponseCode>
A code which signalizes how to perform further rendering.- Author:
- lrosenberg
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORTAbort the exception, an exception should be thrown.CANCEL_AND_REDIRECTCancel further execution and redirect immediately.CONTINUEContinue execution.CONTINUE_AND_REDIRECTSend the redirect to the client instead of page rendering.ERROR_AND_CONTINUEA part of the exception encountered an error, but the application can still resume processing, only a part is broken.STOPStop all further processing, since the request has been handled.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InternalResponseCodevalueOf(String name)Returns the enum constant of this type with the specified name.static InternalResponseCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONTINUE
public static final InternalResponseCode CONTINUE
Continue execution.
-
ABORT
public static final InternalResponseCode ABORT
Abort the exception, an exception should be thrown.
-
CONTINUE_AND_REDIRECT
public static final InternalResponseCode CONTINUE_AND_REDIRECT
Send the redirect to the client instead of page rendering. The Redirect will be executed at the END of the processing of all Handler.
-
CANCEL_AND_REDIRECT
public static final InternalResponseCode CANCEL_AND_REDIRECT
Cancel further execution and redirect immediately.
-
ERROR_AND_CONTINUE
public static final InternalResponseCode ERROR_AND_CONTINUE
A part of the exception encountered an error, but the application can still resume processing, only a part is broken.
-
STOP
public static final InternalResponseCode STOP
Stop all further processing, since the request has been handled.
-
-
Method Detail
-
values
public static InternalResponseCode[] 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 (InternalResponseCode c : InternalResponseCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InternalResponseCode 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 nameNullPointerException- if the argument is null
-
-