Package io.undertow.server.handlers.encoding

Examples of io.undertow.server.handlers.encoding.ContentEncoding


        } else {
            this.lastModified = DateUtils.parseDate(lmString);
        }
        //the content encoding can be decided dynamically, based on the current state of the request
        //as the decision to compress generally dependends on size and mime type
        final ContentEncoding encoding = exchange.getAttachment(ContentEncoding.CONENT_ENCODING);
        if(encoding != null) {
            this.contentEncoding = encoding.getCurrentContentEncoding();
        } else {
            this.contentEncoding = exchange.getResponseHeaders().getFirst(Headers.CONTENT_ENCODING);
        }
        this.responseCode = exchange.getResponseCode();
    }
View Full Code Here

TOP

Related Classes of io.undertow.server.handlers.encoding.ContentEncoding

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.