Package com.okta.sdk.impl.io
Class AbstractResource
java.lang.Object
com.okta.sdk.impl.io.AbstractResource
- All Implemented Interfaces:
Resource
- Direct Known Subclasses:
ClasspathResource
,FileResource
,UrlResource
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
canonicalize
(String input) protected abstract String
protected boolean
hasResourcePrefix
(String resourcePath) Returnstrue
if the resource path is not null and starts with one of the recognized resource prefixes (classpath:
,url:
, orfile:
,false
otherwise.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.okta.sdk.impl.io.Resource
getInputStream
-
Constructor Details
-
AbstractResource
-
-
Method Details
-
canonicalize
-
hasResourcePrefix
Returnstrue
if the resource path is not null and starts with one of the recognized resource prefixes (classpath:
,url:
, orfile:
,false
otherwise.- Parameters:
resourcePath
- the resource path to check- Returns:
true
if the resource path is not null and starts with one of the recognized resource prefixes,false
otherwise.
-
getLocation
-
getScheme
-
toString
-