@Override public List<Extension> getNegotiatedExtensions(List<Extension> installed, List<Extension> requested) { log.trace("negotiatedExtensions: installed={}, requested={}", installed, requested); // TODO: its not common to need to negotiate these outside of the container // but we could eventually expose them in the WebSocketHandshake as in getNegotiatedSubprotocol return super.getNegotiatedExtensions(installed, requested); }
/** * Server-side; Get the negotiated extensions' names based on the extensions supported by client. * * @param clientExtensions names of the extensions' supported by client. * @return names of extensions supported by both client and class that implements this one. */ List<Extension> getNegotiatedExtensions(List<Extension> clientExtensions) { if (configuration instanceof ServerEndpointConfig) { return configurator .getNegotiatedExtensions(((ServerEndpointConfig) configuration).getExtensions(), clientExtensions); } else { return Collections.emptyList(); } }
/** * Server-side; Get the negotiated extensions' names based on the extensions supported by client. * * @param clientExtensions names of the extensions' supported by client. * @return names of extensions supported by both client and class that implements this one. */ List<Extension> getNegotiatedExtensions(List<Extension> clientExtensions) { if (configuration instanceof ServerEndpointConfig) { return configurator .getNegotiatedExtensions(((ServerEndpointConfig) configuration).getExtensions(), clientExtensions); } else { return Collections.emptyList(); } }
installedExtensions.addAll(Constants.INSTALLED_EXTENSIONS); List<Extension> negotiatedExtensionsPhase1 = sec.getConfigurator().getNegotiatedExtensions( installedExtensions, extensionsRequested);
installedExtensions.addAll(Constants.INSTALLED_EXTENSIONS); List<Extension> negotiatedExtensionsPhase1 = sec.getConfigurator().getNegotiatedExtensions( installedExtensions, extensionsRequested);
List<Extension> negotiatedExtensionsPhase1 = sec.getConfigurator().getNegotiatedExtensions( Constants.INSTALLED_EXTENSIONS, extensionsRequested);
installedExtensions.addAll(Constants.INSTALLED_EXTENSIONS); List<Extension> negotiatedExtensionsPhase1 = sec.getConfigurator().getNegotiatedExtensions( installedExtensions, extensionsRequested);
installedExtensions.addAll(Constants.INSTALLED_EXTENSIONS); List<Extension> negotiatedExtensionsPhase1 = sec.getConfigurator().getNegotiatedExtensions(installedExtensions, extensionsRequested);
List<Extension> usedExtensions = configurator.getNegotiatedExtensions(installedExtensions,requestedExts); List<ExtensionConfig> configs = new ArrayList<>(); if (usedExtensions != null)
/** * Return the ordered list of extensions that t server endpoint will support * given the requested extension list passed in, the empty list if none. See * <a href="http://tools.ietf.org/html/rfc6455#section-9.1">Negotiating Extensions</a> * * <p>The default platform implementation of this method returns a list * containing all of the requested extensions passed to this method that * it supports, using the order in the requested extensions, the empty * list if none. * * @param installed the installed extensions on the implementation. * @param requested the requested extensions, in the order they were * requested by the client * @return the list of extensions negotiated, the empty list if none. */ public List<Extension> getNegotiatedExtensions(List<Extension> installed, List<Extension> requested) { return this.getContainerDefaultConfigurator().getNegotiatedExtensions(installed, 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. See * <a href="http://tools.ietf.org/html/rfc6455#section-9.1">Negotiating Extensions</a> * * <p>The default platform implementation of this method returns a list * containing all of the requested extensions passed to this method that * it supports, using the order in the requested extensions, the empty * list if none. * * @param installed the installed extensions on the implementation. * @param requested the requested extensions, in the order they were * requested by the client * @return the list of extensions negotiated, the empty list if none. */ public List<Extension> getNegotiatedExtensions(List<Extension> installed, List<Extension> requested) { return this.getContainerDefaultConfigurator().getNegotiatedExtensions(installed, 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. See * <a href="http://tools.ietf.org/html/rfc6455#section-9.1">Negotiating Extensions</a> * * <p>The default platform implementation of this method returns a list * containing all of the requested extensions passed to this method that * it supports, using the order in the requested extensions, the empty * list if none. * * @param installed the installed extensions on the implementation. * @param requested the requested extensions, in the order they were * requested by the client * @return the list of extensions negotiated, the empty list if none. */ public List<Extension> getNegotiatedExtensions(List<Extension> installed, List<Extension> requested) { return this.getContainerDefaultConfigurator().getNegotiatedExtensions(installed, 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. See <a href="http://tools.ietf.org/html/rfc6455#section-9.1">Negotiating * Extensions</a> * * <p> * The default platform implementation of this method returns a list containing all of the requested extensions * passed to this method that it supports, using the order in the requested extensions, the empty list if none. * * @param installed the installed extensions on the implementation. * @param requested the requested extensions, in the order they were requested by the client * @return the list of extensions negotiated, the empty list if none. */ public List<Extension> getNegotiatedExtensions(List<Extension> installed, List<Extension> requested) { return this.getContainerDefaultConfigurator().getNegotiatedExtensions(installed, 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. See * <a href="http://tools.ietf.org/html/rfc6455#section-9.1">Negotiating Extensions</a> * * <p>The default platform implementation of this method returns a list * containing all of the requested extensions passed to this method that * it supports, using the order in the requested extensions, the empty * list if none. * * @param installed the installed extensions on the implementation. * @param requested the requested extensions, in the order they were * requested by the client * @return the list of extensions negotiated, the empty list if none. */ public List<Extension> getNegotiatedExtensions(List<Extension> installed, List<Extension> requested) { return this.getContainerDefaultConfigurator().getNegotiatedExtensions(installed, requested); }
@Override public List<Extension> getNegotiatedExtensions(List<Extension> installed, List<Extension> requested) { return cfgr.getNegotiatedExtensions(installed, requested); }
public List<Extension> getNegotiatedExtensions(List<Extension> installed, List<Extension> requested) { return fetchContainerDefaultConfigurator().getNegotiatedExtensions(installed, requested); }
public List<Extension> getNegotiatedExtensions(List<Extension> installed, List<Extension> requested) { return fetchContainerDefaultConfigurator().getNegotiatedExtensions(installed, requested); }
public List<Extension> getNegotiatedExtensions(List<Extension> installed, List<Extension> requested) { return fetchContainerDefaultConfigurator().getNegotiatedExtensions(installed, requested); }
@Override public List<Extension> getNegotiatedExtensions(List<Extension> installed, List<Extension> requested) { return delegate.getNegotiatedExtensions(installed, requested); }
@Override public List<Extension> getNegotiatedExtensions(List<Extension> installed, List<Extension> requested) { return delegate.getNegotiatedExtensions(installed, requested); }