Base AssetServlet on Jetty's DefaultServlet?
See original GitHub issueHi,
I noticed some issues about the AssetServlet
’s missing functionalities (e.g., #1750) and myself was wondering how to activate the exploitation of pre-gzipped assets as handled by Jetty’s DefaultServlet
(instead of doing on the fly gzipping).
I was wondering if it wouldn’t make sense to base AssetServlet
’s on DefaultServlet
directly… I have no idea how hard it would be, but for sure people would enjoy the extra functionalities it provides!
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
DefaultServlet (Jetty :: Project 9.4.2.v20170220 API)
The default servlet. This servlet, normally mapped to /, provides the handling for static content, OPTION and TRACE methods for the context.
Read more >org.eclipse.jetty.servlet.DefaultServlet Java Examples
This page shows Java code examples of org.eclipse.jetty.servlet. ... DefaultServlet.class); // If no filesytem path was passed in, load assets from the ...
Read more >Servlet for serving static content - java - Stack Overflow
This basically just maps all content files by extension to the default servlet, and everything else to "myAppServlet". It works in both Jetty...
Read more >Java Examples for org.eclipse.jetty.servlet.DefaultServlet
private void initHandler() { // default servlet required for jetty to accept all requests // (guice will ... getProperty("bq.internaljetty.base")); server.
Read more >com.github.tomakehurst.wiremock.jetty9.JettyHttpServer.java ...
WireMockHandlerDispatchingServlet ; import com.google.common.base. ... DefaultServlet; import org.eclipse.jetty.servlet.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for outlining your findings, @victornoel.
It sounds like it would make sense to modify
AssetServlet
to extendDefaultServlet
rather thanHttpServlet
. I think that an initial PR making this change should simply mimic the existing functionality ofAssetServlet
. We can then start to leverage the additional functionality ofDefaultServlet
in future changes, if it makes sense to do so.I’m not familiar with Jetty’s notion of “welcome files/servlets”, but based on the Javadoc, it sounds feasible to implement
AssetServlet
’s index file behavior in terms of welcome files.This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days