Package org.eclipse.jetty.server
Enum Class ResourceService.WelcomeMode
- All Implemented Interfaces:
Serializable
,Comparable<ResourceService.WelcomeMode>
,Constable
- Enclosing class:
- ResourceService
How welcome targets should be processed.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe welcome target is used as the location for a redirect response, sent byResourceService.redirectWelcome(Request, Response, Callback, String)
.The welcome target is re-handled byResourceService.rehandleWelcome(Request, Response, Callback, String)
.The welcome target is served byResourceService.serveWelcome(Request, Response, Callback, String)
. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceService.WelcomeMode
Returns the enum constant of this class with the specified name.static ResourceService.WelcomeMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REDIRECT
The welcome target is used as the location for a redirect response, sent byResourceService.redirectWelcome(Request, Response, Callback, String)
. -
SERVE
The welcome target is served byResourceService.serveWelcome(Request, Response, Callback, String)
. -
REHANDLE
The welcome target is re-handled byResourceService.rehandleWelcome(Request, Response, Callback, String)
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-