public abstract class AbstractResource extends java.lang.Object implements Resource
| Constructor and Description |
|---|
AbstractResource(java.lang.String location) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
canonicalize(java.lang.String input) |
java.lang.String |
getLocation() |
protected abstract java.lang.String |
getScheme() |
protected boolean |
hasResourcePrefix(java.lang.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. |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetInputStreamprotected java.lang.String canonicalize(java.lang.String input)
protected boolean hasResourcePrefix(java.lang.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 java.lang.String getLocation()
protected abstract java.lang.String getScheme()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2017-2021 Okta. All Rights Reserved.