public enum SecurityLevel extends java.lang.Enum<SecurityLevel> implements ProtocolMessageEnum
Methods to enforce security (HTTPS) on a URL.Protobuf enum
google.appengine.v1.SecurityLevel
Enum Constant and Description |
---|
SECURE_ALWAYS
Requests for a URL that match this handler that do not use HTTPS are
automatically redirected to the HTTPS URL with the same path.
|
SECURE_NEVER
Requests for a URL that match this handler that use HTTPS are automatically
redirected to the HTTP equivalent URL.
|
SECURE_OPTIONAL
Both HTTP and HTTPS requests with URLs that match the handler succeed
without redirects.
|
SECURE_UNSPECIFIED
Not specified.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
SECURE_ALWAYS_VALUE
Requests for a URL that match this handler that do not use HTTPS are
automatically redirected to the HTTPS URL with the same path.
|
static SecurityLevel |
SECURE_DEFAULT
Both HTTP and HTTPS requests with URLs that match the handler succeed
without redirects.
|
static int |
SECURE_DEFAULT_VALUE
Both HTTP and HTTPS requests with URLs that match the handler succeed
without redirects.
|
static int |
SECURE_NEVER_VALUE
Requests for a URL that match this handler that use HTTPS are automatically
redirected to the HTTP equivalent URL.
|
static int |
SECURE_OPTIONAL_VALUE
Both HTTP and HTTPS requests with URLs that match the handler succeed
without redirects.
|
static int |
SECURE_UNSPECIFIED_VALUE
Not specified.
|
Modifier and Type | Method and Description |
---|---|
static SecurityLevel |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<SecurityLevel> |
internalGetValueMap() |
static SecurityLevel |
valueOf(Descriptors.EnumValueDescriptor desc) |
static SecurityLevel |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SecurityLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SecurityLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SecurityLevel SECURE_UNSPECIFIED
Not specified.
SECURE_UNSPECIFIED = 0;
public static final SecurityLevel SECURE_NEVER
Requests for a URL that match this handler that use HTTPS are automatically redirected to the HTTP equivalent URL.
SECURE_NEVER = 1;
public static final SecurityLevel SECURE_OPTIONAL
Both HTTP and HTTPS requests with URLs that match the handler succeed without redirects. The application can examine the request to determine which protocol was used and respond accordingly.
SECURE_OPTIONAL = 2;
public static final SecurityLevel SECURE_ALWAYS
Requests for a URL that match this handler that do not use HTTPS are automatically redirected to the HTTPS URL with the same path. Query parameters are reserved for the redirect.
SECURE_ALWAYS = 3;
public static final SecurityLevel UNRECOGNIZED
public static final SecurityLevel SECURE_DEFAULT
Both HTTP and HTTPS requests with URLs that match the handler succeed without redirects. The application can examine the request to determine which protocol was used, and respond accordingly.
SECURE_DEFAULT = 0;
public static final int SECURE_UNSPECIFIED_VALUE
Not specified.
SECURE_UNSPECIFIED = 0;
public static final int SECURE_DEFAULT_VALUE
Both HTTP and HTTPS requests with URLs that match the handler succeed without redirects. The application can examine the request to determine which protocol was used, and respond accordingly.
SECURE_DEFAULT = 0;
public static final int SECURE_NEVER_VALUE
Requests for a URL that match this handler that use HTTPS are automatically redirected to the HTTP equivalent URL.
SECURE_NEVER = 1;
public static final int SECURE_OPTIONAL_VALUE
Both HTTP and HTTPS requests with URLs that match the handler succeed without redirects. The application can examine the request to determine which protocol was used and respond accordingly.
SECURE_OPTIONAL = 2;
public static final int SECURE_ALWAYS_VALUE
Requests for a URL that match this handler that do not use HTTPS are automatically redirected to the HTTPS URL with the same path. Query parameters are reserved for the redirect.
SECURE_ALWAYS = 3;
public static SecurityLevel[] values()
for (SecurityLevel c : SecurityLevel.values()) System.out.println(c);
public static SecurityLevel valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static SecurityLevel valueOf(int value)
forNumber(int)
instead.public static SecurityLevel forNumber(int value)
public static Internal.EnumLiteMap<SecurityLevel> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static SecurityLevel valueOf(Descriptors.EnumValueDescriptor desc)