Package io.undertow.server.handlers.error

Examples of io.undertow.server.handlers.error.FileErrorPageHandler


    @Override
    public HttpHandler createHttpHandler(Predicate predicate, ModelNode model, HttpHandler next) {
        int code = model.get(CODE.getName()).asInt();
        String path = model.get(PATH.getName()).asString();
        FileErrorPageHandler handler = new FileErrorPageHandler(Paths.get(path).toFile(), code);
        handler.setNext(next);
        return Handlers.predicate(predicate, handler, next);

    }
View Full Code Here

TOP

Related Classes of io.undertow.server.handlers.error.FileErrorPageHandler

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.