Package io.undertow.conduits

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



    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

Related Classes of io.undertow.conduits.BrokenStreamSourceConduit

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.