Class AssetResolutionServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
io.dropwizard.servlets.assets.AssetServlet
ru.vyarus.guicey.gsp.app.asset.servlet.AssetResolutionServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class AssetResolutionServlet extends io.dropwizard.servlets.assets.AssetServlet
Customized dropwizard AssetServlet which is able to search assets in multiple classpath locations.
Since:
04.12.2018
See Also:
  • Field Summary

    Fields inherited from class jakarta.servlet.http.HttpServlet

    LEGACY_DO_HEAD
  • Constructor Summary

    Constructors
    Constructor
    Description
    AssetResolutionServlet(AssetLookup assets, String uriPath, String indexFile, Charset defaultCharset)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected URL
    getResourceURL(String absolutePath)
     

    Methods inherited from class io.dropwizard.servlets.assets.AssetServlet

    doGet, getDefaultCharset, getDefaultMediaType, getIndexFile, getResourceURL, getUriPath, readResource

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doDelete, doHead, doOptions, doPatch, doPost, doPut, doTrace, getLastModified, init, isSensitiveHeader, service, service

    Methods inherited from class jakarta.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AssetResolutionServlet

      public AssetResolutionServlet(AssetLookup assets, String uriPath, @Nullable String indexFile, @Nullable Charset defaultCharset)
  • Method Details

    • getResourceURL

      protected URL getResourceURL(String absolutePath)
      Overrides:
      getResourceURL in class io.dropwizard.servlets.assets.AssetServlet