Jetty settings?

Saturday, 22 October 2011 · 2 messages · last reply 24 Oct 2011
PH
Pascal Heus22 Oct 2011 23:16 #
All: when using the Jetty httpserver, is there a way to: - Turn on http compression - Requires the connection to take place over SSL (https only) thanks *P
LL
Lukas Lewandowski24 Oct 2011 18:13 #
Hey Pascal,
Quoted text · Pascal Heus · 2 lines
>> when using the Jetty httpserver, is there a way to: >> - Turn on http compression
yes if using a web.xml you can do it like in [1] or you can extend the embedded Jetty version in BaseXHTTP.java:
// Add GzipFilter filter
FilterHolder filterHolder = new FilterHolder(GzipFilter.class);
//    filterHolder.setInitParameter("mimeTypes", "text/html,text/plain,text/xml,application/xhtml+xml,application/xml");
jcontext.addFilter(filterHolder, "/*", org.mortbay.jetty.Handler.DEFAULT);
This should work, but when using the server without a user/pw pair a LoginException will be thrown and a server error will be generated for the filter (probably some side effects...?).
Quoted text · Pascal Heus · 1 line
>> - Requires the connection to take place over SSL (https only)
I didn't work with SSL and Jetty but maybe [2] helps you little. Maybe other BaseX users have more Jetty SSL experience? Regards Lukas [1] http://blog.max.berger.name/2010/01/jetty-7-gzip-filter.html [2] http://docs.codehaus.org/display/JETTY/How+to+configure+SSL
Quoted text · Pascal Heus · 11 lines
On Oct 22, 2011, at 9:16 PM, Pascal Heus wrote: > All: > when using the Jetty httpserver, is there a way to: > - Turn on http compression > - Requires the connection to take place over SSL (https only) > thanks > *P > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

⚡Generated with XQuery