Package com.vtence.molecule.middlewares

Examples of com.vtence.molecule.middlewares.Failsafe


public class SimpleExample {

    public void run(WebServer server) throws IOException {
        // Capture internal server errors and display a 500 page
        server.add(new Failsafe());
        server.start(new Application() {
            public void handle(Request request, Response response) throws Exception {
                // An unsupported charset will cause an exception, which will cause the FailSafe middleware
                // to render a 500 page
                Charset encoding = Charset.forName(request.parameter("encoding"));
View Full Code Here

TOP

Related Classes of com.vtence.molecule.middlewares.Failsafe

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.