Top Description Methods
org.xnio.http

public Interface HandshakeChecker

Imports
java.io.IOException, java.util.Map

A class that can decide if a HTTP upgrade handshake is valid. If not it should throw an java.io.IOException

Method Summary

Modifier and TypeMethod and Description
public void
checkHandshake(final Map<String, String>
The response headers, keyed by lowercase name
headers
)

Checks a handshake, and throws an exception if it is invalid

Method Detail

checkHandshakeback to summary
public void checkHandshake(final Map<String, String> headers) throws IOException

Checks a handshake, and throws an exception if it is invalid

Parameters
headers:Map<String, String>

The response headers, keyed by lowercase name

Exceptions
IOException:
If the handshake is not valid