All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xnio.http.HandshakeChecker Maven / Gradle / Ivy

Go to download

This artifact provides a single jar that contains all classes required to use remote EJB and JMS, including all dependencies. It is intended for use by those not using maven, maven users should just import the EJB and JMS BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up with different versions on classes on the class path).

There is a newer version: 34.0.0.Final
Show newest version
package org.xnio.http;

import java.io.IOException;
import java.util.Map;

/**
 * A class that can decide if a HTTP upgrade handshake is valid. If not it should
 * throw an {@link java.io.IOException}
 */
public interface HandshakeChecker {

    /**
     * Checks a handshake, and throws an exception if it is invalid
     *
     * @param headers The response headers, keyed by lowercase name
     * @throws java.io.IOException If the handshake is not valid
     */
    void checkHandshake(final Map headers) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy