Class AssetResolutionServlet

  • All Implemented Interfaces:
    jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, java.io.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:
    Serialized Form
    • Field Summary

      • Fields inherited from class jakarta.servlet.http.HttpServlet

        LEGACY_DO_HEAD
    • Constructor Summary

      Constructors 
      Constructor Description
      AssetResolutionServlet​(AssetLookup assets, java.lang.String uriPath, java.lang.String indexFile, java.nio.charset.Charset defaultCharset)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.net.URL getResourceURL​(java.lang.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, doPost, doPut, doTrace, getLastModified, init, 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 Detail

      • AssetResolutionServlet

        public AssetResolutionServlet​(AssetLookup assets,
                                      java.lang.String uriPath,
                                      @Nullable
                                      java.lang.String indexFile,
                                      @Nullable
                                      java.nio.charset.Charset defaultCharset)
    • Method Detail

      • getResourceURL

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