Package de.xima.fc.user_portal.route
Enum EUserPortalGeneralView
- java.lang.Object
-
- java.lang.Enum<EUserPortalGeneralView>
-
- de.xima.fc.user_portal.route.EUserPortalGeneralView
-
- All Implemented Interfaces:
IAnyUserPortalRoute
,IUserPortalRoute<IRoutingContext>
,Serializable
,Comparable<EUserPortalGeneralView>
public enum EUserPortalGeneralView extends Enum<EUserPortalGeneralView> implements IUserPortalRoute<IRoutingContext>
Generic views for the user portal that do not require any specific context.- Since:
- 8.2.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERROR_GENERAL
ERROR_NOT_FOUND
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
defaultStatusCode()
The default HTTP status code to return.String
id()
Gets the ID of this route.org.ocpsoft.rewrite.servlet.config.HttpConfigurationProvider
rewriteConfigurator()
Gets the configurator for the configuring rewrite rules for this route.IUserPortalRouterUrlHandler<IRoutingContext>
urlHandler()
Gets the URL handler for this route.static EUserPortalGeneralView
valueOf(String name)
Returns the enum constant of this type with the specified name.static EUserPortalGeneralView[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ERROR_GENERAL
public static final EUserPortalGeneralView ERROR_GENERAL
-
ERROR_NOT_FOUND
public static final EUserPortalGeneralView ERROR_NOT_FOUND
-
-
Method Detail
-
values
public static EUserPortalGeneralView[] 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 (EUserPortalGeneralView c : EUserPortalGeneralView.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EUserPortalGeneralView 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
-
defaultStatusCode
public int defaultStatusCode()
Description copied from interface:IAnyUserPortalRoute
The default HTTP status code to return. Defaults to 200.- Specified by:
defaultStatusCode
in interfaceIAnyUserPortalRoute
- Returns:
- The default HTTP status code.
-
id
public String id()
Description copied from interface:IAnyUserPortalRoute
Gets the ID of this route.- Specified by:
id
in interfaceIAnyUserPortalRoute
- Returns:
- The ID.
-
rewriteConfigurator
public org.ocpsoft.rewrite.servlet.config.HttpConfigurationProvider rewriteConfigurator()
Description copied from interface:IAnyUserPortalRoute
Gets the configurator for the configuring rewrite rules for this route.- Specified by:
rewriteConfigurator
in interfaceIAnyUserPortalRoute
- Returns:
- The rewrite configurator.
-
urlHandler
public IUserPortalRouterUrlHandler<IRoutingContext> urlHandler()
Description copied from interface:IAnyUserPortalRoute
Gets the URL handler for this route.- Specified by:
urlHandler
in interfaceIAnyUserPortalRoute
- Specified by:
urlHandler
in interfaceIUserPortalRoute<IRoutingContext>
- Returns:
- The URL handler.
-
-