public enum SecureCookieCommitListener extends Enum<SecureCookieCommitListener> implements ResponseCommitListener
secureattribute on all response cookies.
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
void |
beforeCommit(HttpServerExchange exchange)
Invoked before the first bytes of the response are sent to the client
|
static SecureCookieCommitListener |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SecureCookieCommitListener[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SecureCookieCommitListener INSTANCE
public static SecureCookieCommitListener[] values()
for (SecureCookieCommitListener c : SecureCookieCommitListener.values()) System.out.println(c);
public static SecureCookieCommitListener 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 nullpublic void beforeCommit(HttpServerExchange exchange)
ResponseCommitListener
beforeCommit
in interface ResponseCommitListener
exchange
- The server exchangeCopyright © 2018 JBoss by Red Hat. All rights reserved.