Enum TestRestTemplate.HttpClientOption
- java.lang.Object
- java.lang.Enum<TestRestTemplate.HttpClientOption>
- org.springframework.boot.test.web.client.TestRestTemplate.HttpClientOption
- All Implemented Interfaces:
Serializable
,Comparable<TestRestTemplate.HttpClientOption>
- Enclosing class:
- TestRestTemplate
public static enum TestRestTemplate.HttpClientOption extends Enum<TestRestTemplate.HttpClientOption>
Options used to customize the Apache Http Client if it is used.
Enum Constant Summary
Enum Constants Enum Constant Description ENABLE_COOKIES
Enable cookies.ENABLE_REDIRECTS
Enable redirects.SSL
Use aSSLConnectionSocketFactory
withTrustSelfSignedStrategy
.
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TestRestTemplate.HttpClientOption
valueOf(String name)
Returns the enum constant of this type with the specified name.static TestRestTemplate.HttpClientOption[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
Enum Constant Detail
ENABLE_COOKIES
public static final TestRestTemplate.HttpClientOption ENABLE_COOKIES
Enable cookies.
ENABLE_REDIRECTS
public static final TestRestTemplate.HttpClientOption ENABLE_REDIRECTS
Enable redirects.
SSL
public static final TestRestTemplate.HttpClientOption SSL
Use aSSLConnectionSocketFactory
withTrustSelfSignedStrategy
.
Method Detail
values
public static TestRestTemplate.HttpClientOption[] 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 (TestRestTemplate.HttpClientOption c : TestRestTemplate.HttpClientOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static TestRestTemplate.HttpClientOption 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