Coder Social home page Coder Social logo

embedded-jetty's People

Contributors

aleksabl avatar korshavn avatar runepeter avatar smh avatar steamr-76 avatar steingrd avatar trygvis avatar vbreivik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

embedded-jetty's Issues

Provide a metod to add handler at root, similar to builder.addHttpAccessLogAtRoot()

I have created a small JAX-RS2 project using Jersey2 and the NetsOSS embedded-jetty builder.

I want to add functionality to stop Jetty via HTTP POST, as described here: org.eclipse.jetty.server.handler.ShutdownHandler. I can not see that there is an appropriate method in the builder to perform this.

The following method could be added to the EmbeddedJettyBuilder to achieve this:

public EmbeddedJettyBuilder addHandlerAtRoot(HandlerBuilder<Handler> handlerHandlerBuilder) {
    handlers.add(handlerHandlerBuilder);
    return this;
}

In my bootstrap code I can call:
builder.addHandlerAtRoot(new HandlerBuilder<Handler>(new ShutdownHandler("foo")));

I have downloaded a local copy of the snapshot and added the code snippet mentioned abode to verify that this actually works.

It may be that I have overlooked something and that this is already possible in the existing code.

Can't set init parameters for Filters

addServlet returns a special builder for servlets (ServletHolderBuilder), but addFilter just returns the ServletContextHandlerBuilder.

Workaround:

    FilterHolder filterHolder = new FilterHolder(ServletContainer.class);
    filterHolder.setInitParameter("javax.ws.rs.Application", Jsr311Application.class.getCanonicalName());
    context.
            addFilterHolder(filterHolder, "/*", EnumSet.of(REQUEST)).

JSPX support

Add JSP(X) support with examples in embedded-jetty-sample

Upgrade to latest Jetty 9.0.x

I got a problem with Jetty not serving the entire file (bootstrap.css in my case), it would stop sending after most of the file had been sent, missing 1108 bytes.

Upgrading to 9.0.5.v20130815 fixed the issue.

SSL support

EmbeddedJettyBuilder does not support HTTPS endpoints. Add support for this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.