org.xnio.http.HandshakeChecker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xnio-api Show documentation
Show all versions of xnio-api Show documentation
The API JAR of the XNIO project
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;
}