Class DecoderFactory
- java.lang.Object
-
- org.eclipse.jetty.websocket.jsr356.DecoderFactory
-
- All Implemented Interfaces:
Configurable
public class DecoderFactory extends java.lang.Object implements Configurable
Factory forDecoderMetadata
Relies on search order of parent
DecoderFactory
instances as such.- From Static DecoderMetadataSet (based on data in annotations and static EndpointConfig)
- From Composite DecoderMetadataSet (based static and instance specific EndpointConfig)
- Container declared DecoderMetadataSet (primitives)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DecoderFactory.Wrapper
-
Constructor Summary
Constructors Modifier Constructor Description DecoderFactory(WebSocketContainerScope containerScope, DecoderMetadataSet metadatas)
protected
DecoderFactory(WebSocketContainerScope containerScope, DecoderMetadataSet metadatas, DecoderFactory parentFactory)
DecoderFactory(WebSocketSessionScope sessionScope, DecoderMetadataSet metadatas, DecoderFactory parentFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
javax.websocket.Decoder
getDecoderFor(java.lang.Class<?> type)
DecoderMetadata
getMetadataFor(java.lang.Class<?> type)
DecoderFactory.Wrapper
getWrapperFor(java.lang.Class<?> type)
void
init(javax.websocket.EndpointConfig config)
DecoderFactory.Wrapper
newWrapper(DecoderMetadata metadata)
-
-
-
Constructor Detail
-
DecoderFactory
public DecoderFactory(WebSocketContainerScope containerScope, DecoderMetadataSet metadatas)
-
DecoderFactory
public DecoderFactory(WebSocketSessionScope sessionScope, DecoderMetadataSet metadatas, DecoderFactory parentFactory)
-
DecoderFactory
protected DecoderFactory(WebSocketContainerScope containerScope, DecoderMetadataSet metadatas, DecoderFactory parentFactory)
-
-
Method Detail
-
getDecoderFor
public javax.websocket.Decoder getDecoderFor(java.lang.Class<?> type)
-
getMetadataFor
public DecoderMetadata getMetadataFor(java.lang.Class<?> type)
-
getWrapperFor
public DecoderFactory.Wrapper getWrapperFor(java.lang.Class<?> type)
-
init
public void init(javax.websocket.EndpointConfig config)
- Specified by:
init
in interfaceConfigurable
-
destroy
public void destroy()
- Specified by:
destroy
in interfaceConfigurable
-
newWrapper
public DecoderFactory.Wrapper newWrapper(DecoderMetadata metadata)
-
-