org.springframework.extensions.config.source
Class HTTPConfigSource
java.lang.Object
org.springframework.extensions.config.source.BaseConfigSource
org.springframework.extensions.config.source.HTTPConfigSource
- All Implemented Interfaces:
- ConfigSource
public class HTTPConfigSource
- extends BaseConfigSource
ConfigSource implementation that gets its data via HTTP.
- Author:
- gavinc
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTTPConfigSource
public HTTPConfigSource(String url)
- Constructs an HTTP configuration source that uses a single URL
- Parameters:
url
- the url of the file from which to get config- See Also:
HTTPConfigSource(java.util.List)
HTTPConfigSource
public HTTPConfigSource(List<String> sourceStrings)
- Constructs an HTTPConfigSource using the list of URLs
- Parameters:
sourceStrings
- List of URLs to get config from
getInputStream
public InputStream getInputStream(String sourceString)
- Retrieves an input stream over HTTP for the given URL
- Specified by:
getInputStream
in class BaseConfigSource
- Parameters:
sourceString
- URL to retrieve config data from
- Returns:
- The input stream
Copyright © 2009 SpringSource, Inc. All Rights Reserved.