use of org.eclipse.jetty.websocket.api.extensions.ExtensionFactory in project jetty.project by eclipse.
the class ExtensionStackProcessingTest method assumeDeflateFrameAvailable.
private void assumeDeflateFrameAvailable() {
NativeWebSocketConfiguration configuration = (NativeWebSocketConfiguration) servletContextHandler.getServletContext().getAttribute(NativeWebSocketConfiguration.class.getName());
ExtensionFactory serverExtensionFactory = configuration.getFactory().getExtensionFactory();
Assume.assumeTrue("Server has permessage-deflate extension registered", serverExtensionFactory.isAvailable("permessage-deflate"));
}
use of org.eclipse.jetty.websocket.api.extensions.ExtensionFactory in project jetty.project by eclipse.
the class ClientContainer method getInstalledExtensions.
@Override
public Set<Extension> getInstalledExtensions() {
Set<Extension> ret = new HashSet<>();
ExtensionFactory extensions = client.getExtensionFactory();
for (String name : extensions.getExtensionNames()) {
ret.add(new JsrExtension(name));
}
return ret;
}
Aggregations