public abstract class AbstractResource extends Object implements Resource
Constructor and Description |
---|
AbstractResource(String location) |
Modifier and Type | Method and Description |
---|---|
protected String |
canonicalize(String input) |
String |
getLocation() |
protected abstract String |
getScheme() |
protected boolean |
hasResourcePrefix(String resourcePath)
Returns
true if the resource path is not null and starts with one of the recognized
resource prefixes (classpath: , url: , or file: , false otherwise. |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getInputStream
public AbstractResource(String location)
protected boolean hasResourcePrefix(String resourcePath)
true
if the resource path is not null and starts with one of the recognized
resource prefixes (classpath:
, url:
, or file:
, false
otherwise.resourcePath
- the resource path to checktrue
if the resource path is not null and starts with one of the recognized
resource prefixes, false
otherwise.public String getLocation()
protected abstract String getScheme()
Copyright © 2017–2023 Okta. All rights reserved.