@@ -55,7 +55,7 @@ public class TestRestTemplate extends RestTemplate {
55
55
* Create a new {@link TestRestTemplate} instance.
56
56
* @param httpClientOptions client options to use if the Apache HTTP Client is used
57
57
*/
58
- public TestRestTemplate (HtppClientOption ... httpClientOptions ) {
58
+ public TestRestTemplate (HttpClientOption ... httpClientOptions ) {
59
59
this (null , null , httpClientOptions );
60
60
}
61
61
@@ -66,7 +66,7 @@ public TestRestTemplate(HtppClientOption... httpClientOptions) {
66
66
* @param httpClientOptions client options to use if the Apache HTTP Client is used
67
67
*/
68
68
public TestRestTemplate (String username , String password ,
69
- HtppClientOption ... httpClientOptions ) {
69
+ HttpClientOption ... httpClientOptions ) {
70
70
if (ClassUtils .isPresent ("org.apache.http.client.config.RequestConfig" , null )) {
71
71
setRequestFactory (new CustomHttpComponentsClientHttpRequestFactory (
72
72
httpClientOptions ));
@@ -94,7 +94,7 @@ private void addAuthentication(String username, String password) {
94
94
/**
95
95
* Options used to customize the Apache Http Client if it is used.
96
96
*/
97
- public static enum HtppClientOption {
97
+ public static enum HttpClientOption {
98
98
99
99
/**
100
100
* Enable cookies.
@@ -139,12 +139,12 @@ protected static class CustomHttpComponentsClientHttpRequestFactory extends
139
139
private final boolean enableRedirects ;
140
140
141
141
public CustomHttpComponentsClientHttpRequestFactory (
142
- HtppClientOption [] httpClientOptions ) {
143
- Set <HtppClientOption > options = new HashSet <TestRestTemplate .HtppClientOption >(
142
+ HttpClientOption [] httpClientOptions ) {
143
+ Set <HttpClientOption > options = new HashSet <TestRestTemplate .HttpClientOption >(
144
144
Arrays .asList (httpClientOptions ));
145
- this .cookieSpec = (options .contains (HtppClientOption .ENABLE_COOKIES ) ? CookieSpecs .STANDARD
145
+ this .cookieSpec = (options .contains (HttpClientOption .ENABLE_COOKIES ) ? CookieSpecs .STANDARD
146
146
: CookieSpecs .IGNORE_COOKIES );
147
- this .enableRedirects = options .contains (HtppClientOption .ENABLE_REDIRECTS );
147
+ this .enableRedirects = options .contains (HttpClientOption .ENABLE_REDIRECTS );
148
148
}
149
149
150
150
@ Override
@@ -162,4 +162,5 @@ protected RequestConfig getRequestConfig() {
162
162
}
163
163
164
164
}
165
+
165
166
}
0 commit comments