Class AbstractResource

java.lang.Object
com.okta.sdk.impl.io.AbstractResource
All Implemented Interfaces:
Resource
Direct Known Subclasses:
ClasspathResource, FileResource, UrlResource

public abstract class AbstractResource extends Object implements Resource
  • Constructor Details

    • AbstractResource

      public AbstractResource(String location)
  • Method Details

    • canonicalize

      protected String canonicalize(String input)
    • hasResourcePrefix

      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.
      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

      public String getLocation()
    • getScheme

      protected abstract String getScheme()
    • toString

      public String toString()
      Overrides:
      toString in class Object