Example usage for javax.websocket WebSocketContainer getInstalledExtensions

List of usage examples for javax.websocket WebSocketContainer getInstalledExtensions

Introduction

In this page you can find the example usage for javax.websocket WebSocketContainer getInstalledExtensions.

Prototype

Set<Extension> getInstalledExtensions();

Source Link

Document

Get the installed extensions.

Usage

From source file:org.springframework.web.socket.server.standard.AbstractStandardUpgradeStrategy.java

protected List<WebSocketExtension> getInstalledExtensions(WebSocketContainer container) {
    List<WebSocketExtension> result = new ArrayList<>();
    for (Extension extension : container.getInstalledExtensions()) {
        result.add(new StandardToWebSocketExtensionAdapter(extension));
    }/*from w  w  w.  j a  va 2  s  .c o m*/
    return result;
}