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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected Stringcanonicalize(String input) protected abstract Stringprotected booleanhasResourcePrefix(String resourcePath) Returnstrueif the resource path is not null and starts with one of the recognized resource prefixes (classpath:,url:, orfile:,falseotherwise.toString()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.okta.sdk.impl.io.ResourcegetInputStream
- 
Constructor Details- 
AbstractResource
 
- 
- 
Method Details- 
canonicalize
- 
hasResourcePrefixReturnstrueif the resource path is not null and starts with one of the recognized resource prefixes (classpath:,url:, orfile:,falseotherwise.- Parameters:
- resourcePath- the resource path to check
- Returns:
- trueif the resource path is not null and starts with one of the recognized resource prefixes,- falseotherwise.
 
- 
getLocation
- 
getScheme
- 
toString
 
-