Search in sources :

Example 1 with DebugExtensionsHeaderHandler

use of io.undertow.websockets.extensions.DebugExtensionsHeaderHandler in project undertow by undertow-io.

the class JsrWebsocketExtensionTestCase method setup.

@BeforeClass
public static void setup() throws Exception {
    final ServletContainer container = ServletContainer.Factory.newInstance();
    DeploymentInfo builder = new DeploymentInfo().setClassLoader(BinaryEndpointTest.class.getClassLoader()).setContextPath("/").setClassIntrospecter(TestClassIntrospector.INSTANCE).addServletContextAttribute(WebSocketDeploymentInfo.ATTRIBUTE_NAME, new WebSocketDeploymentInfo().setBuffers(DefaultServer.getBufferPool()).setWorker(DefaultServer.getWorker()).addExtension(new PerMessageDeflateHandshake()).addEndpoint(AutobahnAnnotatedEndpoint.class)).setDeploymentName("servletContext.war");
    DeploymentManager manager = container.addDeployment(builder);
    manager.deploy();
    debug = new DebugExtensionsHeaderHandler(manager.start());
    DefaultServer.setRootHandler(debug);
}
Also used : DebugExtensionsHeaderHandler(io.undertow.websockets.extensions.DebugExtensionsHeaderHandler) DeploymentManager(io.undertow.servlet.api.DeploymentManager) ServletContainer(io.undertow.servlet.api.ServletContainer) PerMessageDeflateHandshake(io.undertow.websockets.extensions.PerMessageDeflateHandshake) BinaryEndpointTest(io.undertow.websockets.jsr.test.BinaryEndpointTest) WebSocketDeploymentInfo(io.undertow.websockets.jsr.WebSocketDeploymentInfo) DeploymentInfo(io.undertow.servlet.api.DeploymentInfo) WebSocketDeploymentInfo(io.undertow.websockets.jsr.WebSocketDeploymentInfo) BeforeClass(org.junit.BeforeClass)

Aggregations

DeploymentInfo (io.undertow.servlet.api.DeploymentInfo)1 DeploymentManager (io.undertow.servlet.api.DeploymentManager)1 ServletContainer (io.undertow.servlet.api.ServletContainer)1 DebugExtensionsHeaderHandler (io.undertow.websockets.extensions.DebugExtensionsHeaderHandler)1 PerMessageDeflateHandshake (io.undertow.websockets.extensions.PerMessageDeflateHandshake)1 WebSocketDeploymentInfo (io.undertow.websockets.jsr.WebSocketDeploymentInfo)1 BinaryEndpointTest (io.undertow.websockets.jsr.test.BinaryEndpointTest)1 BeforeClass (org.junit.BeforeClass)1