public class HTTPResourceLoader extends StreamResourceLoader
URLConnection.
For any sort of serious usage, a proper loader needs to be implemented using
Apache httpclient or similar.| Constructor and Description |
|---|
HTTPResourceLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getSchema()
Returns the schema name associated with the loader.
|
protected InputStream |
openStream(String path)
Returns an
InputStream for reading the resource. |
exists, load, readStreamprotected String getSchema()
StreamResourceLoadergetSchema in class StreamResourceLoaderprotected InputStream openStream(String path) throws IOException
StreamResourceLoaderInputStream for reading the resource.openStream in class StreamResourceLoaderpath - the path of the resource.InputStream or null if the resource does not
exist.IOException - when i/o operation fails.Copyright © 2014 Asual DZZD. All Rights Reserved.