Package com.networknt.schema.uri
Class URISchemeFetcher
- java.lang.Object
-
- com.networknt.schema.uri.URISchemeFetcher
-
- All Implemented Interfaces:
URIFetcher
public class URISchemeFetcher extends Object implements URIFetcher
The URISchemeFetcher will proxy to otherURIFetcher
s based on the scheme being used.
-
-
Constructor Summary
Constructors Constructor Description URISchemeFetcher(Map<String,URIFetcher> uriFetchers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
fetch(URI uri)
Map<String,URIFetcher>
getURIFetchers()
-
-
-
Constructor Detail
-
URISchemeFetcher
public URISchemeFetcher(Map<String,URIFetcher> uriFetchers)
-
-
Method Detail
-
getURIFetchers
public Map<String,URIFetcher> getURIFetchers()
-
fetch
public InputStream fetch(URI uri) throws IOException
- Specified by:
fetch
in interfaceURIFetcher
- Parameters:
uri
- URI- Returns:
- InputStream
- Throws:
IOException
-
-