Interface HttpUpgradeCheck

All Known Implementing Classes:
SecurityHttpUpgradeCheck

public interface HttpUpgradeCheck
A check that controls which requests are allowed to upgrade the HTTP connection to a WebSocket connection. CDI beans implementing this interface are invoked on every request. The CDI beans implementing `HttpUpgradeCheck` interface can be either `@ApplicationScoped`, `@Singleton` or `@Dependent` beans, but never the `@RequestScoped` beans.

The checks are called orderly according to a bean priority. When no priority is declared (for example with the `@jakarta.annotation.Priority` annotation), default priority is used. If one of the checks rejects the upgrade, remaining checks are not called.

  • Method Details