public class ConfigurationHTTPAdapterParser extends Object
Constructor and Description |
---|
ConfigurationHTTPAdapterParser() |
Modifier and Type | Method and Description |
---|---|
protected static void |
doConfigure(ConfigurationHTTPAdapter configuration,
Document doc)
Parse the W3C DOM document.
|
protected static void |
doConfigure(ConfigurationHTTPAdapter configuration,
InputStream stream,
String resourceName)
Use the configuration specified in the given input stream.
|
protected static Document |
getDocument(InputStream stream,
String resourceName)
Returns the document.
|
protected static InputStream |
getResourceAsStream(String resource)
Returns an input stream from an application resource in the classpath.
|
protected static void doConfigure(ConfigurationHTTPAdapter configuration, InputStream stream, String resourceName) throws RuntimeException
configuration
- is the configuration object to populatestream
- Inputstream to be read fromresourceName
- The name to use in warning/error messagesRuntimeException
- is thrown when the configuration could not be parsedprotected static Document getDocument(InputStream stream, String resourceName) throws RuntimeException
stream
- to readresourceName
- resource in streamRuntimeException
- if the document could not be loaded or parsedprotected static void doConfigure(ConfigurationHTTPAdapter configuration, Document doc) throws RuntimeException
configuration
- is the configuration object to populatedoc
- to parseRuntimeException
- to indicate parse errorsprotected static InputStream getResourceAsStream(String resource)
resource
- to get input stream for