Interface ClasspathResource

All Superinterfaces:
Resource, ResourceView.HasMimeType, ResourceView.HasStreamSettings
All Known Implementing Classes:
ClasspathResourceImpl

public interface ClasspathResource extends Resource, ResourceView.HasMimeType, ResourceView.HasStreamSettings
A resource that is located in classpath.
See Also:
  • Method Details

    • setPath

      @StudioProperty(name="path", required=true) ClasspathResource setPath(String path)
      Parameters:
      path - relative path to the resource, e.g. "/com/company/app/images/image.png" for a resource located at src/main/resources/com/company/app/images/image.png
      Returns:
      this ClasspathResource instance
    • getPath

      String getPath()