Top Description Methods
io.undertow.server.handlers

public Interface HttpUpgradeHandshake

Imports
java.io.IOException, io.undertow.server.HttpServerExchange

Server side upgrade handler. This handler can inspect the request and modify the response.

If the request does not meet this handlers requirements it should return false to allow other upgrade handlers to inspect the request.

If the request is invalid (e.g. security information is invalid) this should thrown an IoException. if this occurs no further handlers will be tried.

Author
Stuart Douglas

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the handshake is valid and should be upgraded. False if it is invalid
handleUpgrade
(final HttpServerExchange
the server exchange
exchange
)

Validates an upgrade request and returns any extra headers that should be added to the response.

Method Detail

handleUpgradeback to summary
public boolean handleUpgrade(final HttpServerExchange exchange) throws IOException

Validates an upgrade request and returns any extra headers that should be added to the response.

Parameters
exchange:HttpServerExchange

the server exchange

Returns:boolean

true if the handshake is valid and should be upgraded. False if it is invalid

Exceptions
IOException:
If the handshake is invalid