public interface HttpUpgradeHandshake
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.
Modifier and Type | Method and Description |
---|---|
boolean | handleUpgrade(HttpServerExchange exchange) Validates an upgrade request and returns any extra headers that should be added to the response. |
boolean handleUpgrade(HttpServerExchange exchange) throws IOException
exchange
- the server exchangetrue
if the handshake is valid and should be upgraded. False if it is invalidIOException
- If the handshake is invalidCopyright © 2017 JBoss by Red Hat. All rights reserved.