Package org.glassfish.grizzly.http

Examples of org.glassfish.grizzly.http.ProcessingState


    // ----------------------------------------------------- Private Methods

    @SuppressWarnings("rawtypes")
    private static void processKeepAlive(final Connection c, final HttpHeader header) {
        final ProcessingState state = header.getProcessingState();
        final String connectionHeader = header.getHeader(Header.Connection);
        if (connectionHeader == null) {
            state.setKeepAlive(header.getProtocol() == Protocol.HTTP_1_1);
        } else {
            if ("close".equals(connectionHeader.toLowerCase(Locale.ENGLISH))) {
                ConnectionManager.markConnectionAsDoNotCache(c);
                state.setKeepAlive(false);
            } else {
                state.setKeepAlive(true);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.glassfish.grizzly.http.ProcessingState

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.