public enum Protocol extends Enum<Protocol>
Communication over HTTPS is the default, and is more secure than HTTP, which is why AWS recommends using HTTPS. HTTPS connections can use more system resources because of the extra work to encrypt network traffic, so the option to use HTTP is available in case users need it.
枚举常量和说明 |
---|
HTTP
HTTP Protocol - Using the HTTP protocol is less secure than HTTPS, but
can slightly reduce the system resources used when communicating with
AWS.
|
HTTPS
HTTPS Protocol - Using the HTTPS protocol is more secure than using the
HTTP protocol, but may use slightly more system resources.
|
public static final Protocol HTTP
public static final Protocol HTTPS
public static Protocol[] values()
for (Protocol c : Protocol.values()) System.out.println(c);
public static Protocol valueOf(String name)
name
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值Copyright © 2016. All rights reserved.