Class ServerResource

java.lang.Object
io.deephaven.server.resources.ServerResource
Direct Known Subclasses:
WebResources

public abstract class ServerResource extends Object
Represents a set of resources that can be provided by the HTTP server. Priority will be controlled by configuration.
  • Constructor Details

    • ServerResource

      public ServerResource()
  • Method Details

    • getName

      public abstract String getName()
      Returns the name of the resource to use in configuration.
      Returns:
      the name of the resource
    • getResourceBaseUrl

      public String getResourceBaseUrl()
      A URL that can be provided to Jetty to serve the resources.
      Returns:
      the URL to the resources
    • getResourceFromClasspath

      protected static String getResourceFromClasspath(String resourceName, Class<?> clazz)