Changed ClientHttpRequestInterceptor array to List

This commit is contained in:
Arjen Poutsma 2011-09-07 08:39:58 +00:00
parent 49b38190ee
commit f1c68f243e
1 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@
package org.springframework.http.client.support;
import java.util.ArrayList;
import java.util.List;
import org.springframework.http.client.ClientHttpRequestFactory;
@ -33,7 +34,7 @@ import org.springframework.util.CollectionUtils;
*/
public abstract class InterceptingHttpAccessor extends HttpAccessor {
private List<ClientHttpRequestInterceptor> interceptors;
private List<ClientHttpRequestInterceptor> interceptors = new ArrayList<ClientHttpRequestInterceptor>();
/**
* Sets the request interceptors that this accessor should use.