org.springframework.extensions.config.source
Class HTTPConfigSource

java.lang.Object
  extended by org.springframework.extensions.config.source.BaseConfigSource
      extended by 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

Constructor Summary
HTTPConfigSource(List<String> sourceStrings)
          Constructs an HTTPConfigSource using the list of URLs
HTTPConfigSource(String url)
          Constructs an HTTP configuration source that uses a single URL
 
Method Summary
 InputStream getInputStream(String sourceString)
          Retrieves an input stream over HTTP for the given URL
 
Methods inherited from class org.springframework.extensions.config.source.BaseConfigSource
addSourceString, getConfigDeployments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.