## Uses of Interface
javax.websocket.Extension

- Packages that use Extension
  Package | Description
  --- | ---
  javax.websocket | This package contains all the WebSocket APIs common to both the client and server side.
  javax.websocket.server | This package contains all the WebSocket APIs used only by server side applications.

- - ### Uses of Extension in javax.websocket

    Methods in javax.websocket that return types with arguments of type Extension
    Modifier and Type | Method and Description
    --- | ---
    `List<Extension>` | ClientEndpointConfig.`getExtensions()` Return the extensions, in order of preference, favorite first, that this client would like to use for its sessions.
    `Set<Extension>` | WebSocketContainer.`getInstalledExtensions()` Return the set of Extensions installed in the container.
    `List<Extension>` | Session.`getNegotiatedExtensions()` Return the list of extensions currently in use for this conversation.

    Method parameters in javax.websocket with type arguments of type Extension
    Modifier and Type | Method and Description
    --- | ---
    `ClientEndpointConfig.Builder` | ClientEndpointConfig.Builder.`extensions(List<Extension> extensions)` Set the extensions for the configuration this builder will build.

  - ### Uses of Extension in javax.websocket.server

    Methods in javax.websocket.server that return types with arguments of type Extension
    Modifier and Type | Method and Description
    --- | ---
    `List<Extension>` | ServerEndpointConfig.`getExtensions()` Return the websocket extensions configured.
    `List<Extension>` | ServerEndpointConfig.Configurator.`getNegotiatedExtensions(List<Extension> installed, List<Extension> requested)` Return the ordered list of extensions that t server endpoint will support given the requested extension list passed in, the empty list if none.

    Method parameters in javax.websocket.server with type arguments of type Extension
    Modifier and Type | Method and Description
    --- | ---
    `ServerEndpointConfig.Builder` | ServerEndpointConfig.Builder.`extensions(List<Extension> extensions)` Sets the extensions to use in the configuration.
    `List<Extension>` | ServerEndpointConfig.Configurator.`getNegotiatedExtensions(List<Extension> installed, List<Extension> requested)` Return the ordered list of extensions that t server endpoint will support given the requested extension list passed in, the empty list if none.
    `List<Extension>` | ServerEndpointConfig.Configurator.`getNegotiatedExtensions(List<Extension> installed, List<Extension> requested)` Return the ordered list of extensions that t server endpoint will support given the requested extension list passed in, the empty list if none.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.