Search in sources :

Example 1 with EncoderMetadataSet

use of org.eclipse.jetty.websocket.jsr356.metadata.EncoderMetadataSet in project jetty.project by eclipse.

the class EncoderFactoryTest method initEncoderFactory.

@Before
public void initEncoderFactory() {
    WebSocketContainerScope containerScope = new SimpleContainerScope(WebSocketPolicy.newClientPolicy());
    EncoderFactory primitivesFactory = new EncoderFactory(containerScope, PrimitiveEncoderMetadataSet.INSTANCE);
    metadatas = new EncoderMetadataSet();
    factory = new EncoderFactory(containerScope, metadatas, primitivesFactory);
}
Also used : WebSocketContainerScope(org.eclipse.jetty.websocket.common.scopes.WebSocketContainerScope) SimpleContainerScope(org.eclipse.jetty.websocket.common.scopes.SimpleContainerScope) EncoderMetadataSet(org.eclipse.jetty.websocket.jsr356.metadata.EncoderMetadataSet) PrimitiveEncoderMetadataSet(org.eclipse.jetty.websocket.jsr356.encoders.PrimitiveEncoderMetadataSet) Before(org.junit.Before)

Aggregations

SimpleContainerScope (org.eclipse.jetty.websocket.common.scopes.SimpleContainerScope)1 WebSocketContainerScope (org.eclipse.jetty.websocket.common.scopes.WebSocketContainerScope)1 PrimitiveEncoderMetadataSet (org.eclipse.jetty.websocket.jsr356.encoders.PrimitiveEncoderMetadataSet)1 EncoderMetadataSet (org.eclipse.jetty.websocket.jsr356.metadata.EncoderMetadataSet)1 Before (org.junit.Before)1