public static enum RedirectRequestHandler.Mode extends Enum<RedirectRequestHandler.Mode>
Enum Constant and Description |
---|
AUTO
Decide dynamically depending on the value of
status field |
REDIRECT
|
STATUS
|
Modifier and Type | Method and Description |
---|---|
static RedirectRequestHandler.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RedirectRequestHandler.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RedirectRequestHandler.Mode REDIRECT
WebResponse.sendRedirect(String)
.
It will call WebResponse.encodeRedirectURL(CharSequence)
and may URL-encode some parts of the location
public static final RedirectRequestHandler.Mode STATUS
WebResponse.setStatus(int)
+ WebResponse.setHeader(String, String)
.
Sets the location
as a value of Location
response header as is, i.e. without url-encoding.public static final RedirectRequestHandler.Mode AUTO
status
fieldpublic static RedirectRequestHandler.Mode[] values()
for (RedirectRequestHandler.Mode c : RedirectRequestHandler.Mode.values()) System.out.println(c);
public static RedirectRequestHandler.Mode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2006–2022 Apache Software Foundation. All rights reserved.