Interface RelativePathResource

All Superinterfaces:
Resource, ResourceView.HasMimeType
All Known Implementing Classes:
RelativePathResourceImpl

public interface RelativePathResource extends Resource, ResourceView.HasMimeType
A static resource that is served by the application. By default, static content is served from /static, /public, /resources, or /META-INF/resources directories of the classpath.
See Also:
  • Method Details

    • setPath

      Parameters:
      path - relative path to the resource, e.g. "images/image.png" for a resource located at src/main/resources/static/images/image.png
      Returns:
      this RelativePathResource instance
    • getPath

      String getPath()