Examples of BrokenStreamSourceConduit


Examples of io.undertow.conduits.BrokenStreamSourceConduit


    private static StreamSourceConduit fixedLengthStreamSourceConduitWrapper(final long contentLength, final StreamSourceConduit conduit, final HttpServerExchange exchange) {
        final long max = maxEntitySize(exchange);
        if (max > 0 && contentLength > max) {
            return new BrokenStreamSourceConduit(conduit, UndertowMessages.MESSAGES.requestEntityWasTooLarge(exchange.getSourceAddress(), max));
        }
        return new FixedLengthStreamSourceConduit(conduit, contentLength, fixedLengthDrainListener(exchange));
    }
View Full Code Here

Examples of io.undertow.conduits.BrokenStreamSourceConduit


    private static StreamSourceConduit fixedLengthStreamSourceConduitWrapper(final long contentLength, final StreamSourceConduit conduit, final HttpServerExchange exchange) {
        final long max = maxEntitySize(exchange);
        if (max > 0 && contentLength > max) {
            return new BrokenStreamSourceConduit(conduit, UndertowMessages.MESSAGES.requestEntityWasTooLarge(exchange.getSourceAddress(), max));
        }
        return new FixedLengthStreamSourceConduit(conduit, contentLength, fixedLengthDrainListener(exchange));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.