Package com.google.appengine.v1
Enum SecurityLevel
- java.lang.Object
-
- java.lang.Enum<SecurityLevel>
-
- com.google.appengine.v1.SecurityLevel
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<SecurityLevel>
public enum SecurityLevel extends Enum<SecurityLevel> implements com.google.protobuf.ProtocolMessageEnum
Methods to enforce security (HTTPS) on a URL.
Protobuf enumgoogle.appengine.v1.SecurityLevel
-
-
Enum Constant Summary
Enum Constants Enum Constant 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
-
Field Summary
Fields Modifier and Type Field 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SecurityLevel
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<SecurityLevel>
internalGetValueMap()
static SecurityLevel
valueOf(int value)
Deprecated.static SecurityLevel
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static SecurityLevel
valueOf(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.
-
-
-
Enum Constant Detail
-
SECURE_UNSPECIFIED
public static final SecurityLevel SECURE_UNSPECIFIED
Not specified.
SECURE_UNSPECIFIED = 0;
-
SECURE_NEVER
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;
-
SECURE_OPTIONAL
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;
-
SECURE_ALWAYS
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;
-
UNRECOGNIZED
public static final SecurityLevel UNRECOGNIZED
-
-
Field Detail
-
SECURE_DEFAULT
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;
-
SECURE_UNSPECIFIED_VALUE
public static final int SECURE_UNSPECIFIED_VALUE
Not specified.
SECURE_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
SECURE_DEFAULT_VALUE
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;
- See Also:
- Constant Field Values
-
SECURE_NEVER_VALUE
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;
- See Also:
- Constant Field Values
-
SECURE_OPTIONAL_VALUE
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;
- See Also:
- Constant Field Values
-
SECURE_ALWAYS_VALUE
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;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static SecurityLevel[] 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 (SecurityLevel c : SecurityLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SecurityLevel 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
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static SecurityLevel valueOf(int value)
Deprecated.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:
value
- 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
-
forNumber
public static SecurityLevel forNumber(int value)
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<SecurityLevel> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static SecurityLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
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:
desc
- 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
-
-