public class SchemaResourceLoader extends Object implements HistoneResourceLoader
| Constructor and Description |
|---|
SchemaResourceLoader() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLoader(Loader loader) |
void |
addLoader(String scheme,
Loader loader) |
CompletableFuture<Resource> |
load(Context ctx,
String href,
String baseHref,
Map<String,Object> args)
Load resource using specified href, baseHref and arguments
|
URI |
makeFullLocation(String location,
String baseLocation) |
String |
resolveFullPath(String location,
String baseLocation)
Return full path for specified resource href and base href
|
public void addLoader(Loader loader)
public String resolveFullPath(String location, String baseLocation) throws ResourceLoadException
HistoneResourceLoaderresolveFullPath in interface HistoneResourceLoaderlocation - resource hrefbaseLocation - base hrefResourceLoadException - in case of any errorspublic CompletableFuture<Resource> load(Context ctx, String href, String baseHref, Map<String,Object> args) throws ResourceLoadException
HistoneResourceLoaderload in interface HistoneResourceLoaderhref - resource locationbaseHref - base href for loadingargs - additional custom arguments for resource loaderResourceLoadException - if errors occurpublic URI makeFullLocation(String location, String baseLocation) throws IllegalAccessException
IllegalAccessExceptionCopyright © 2017. All rights reserved.