Class DecoderFactory
java.lang.Object
org.eclipse.jetty.websocket.jsr356.DecoderFactory
- All Implemented Interfaces:
Configurable
Factory for
DecoderMetadata
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 -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map
<Class<?>, DecoderFactory.Wrapper> private final WebSocketContainerScope
private static final org.eclipse.jetty.util.log.Logger
private final DecoderMetadataSet
private DecoderFactory
-
Constructor Summary
ConstructorsModifierConstructorDescriptionDecoderFactory
(WebSocketContainerScope containerScope, DecoderMetadataSet metadatas) protected
DecoderFactory
(WebSocketContainerScope containerScope, DecoderMetadataSet metadatas, DecoderFactory parentFactory) DecoderFactory
(WebSocketSessionScope sessionScope, DecoderMetadataSet metadatas, DecoderFactory parentFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
javax.websocket.Decoder
getDecoderFor
(Class<?> type) getMetadataFor
(Class<?> type) getWrapperFor
(Class<?> type) void
init
(javax.websocket.EndpointConfig config) newWrapper
(DecoderMetadata metadata)
-
Field Details
-
LOG
private static final org.eclipse.jetty.util.log.Logger LOG -
metadatas
-
containerScope
-
parentFactory
-
activeWrappers
-
-
Constructor Details
-
DecoderFactory
-
DecoderFactory
public DecoderFactory(WebSocketSessionScope sessionScope, DecoderMetadataSet metadatas, DecoderFactory parentFactory) -
DecoderFactory
protected DecoderFactory(WebSocketContainerScope containerScope, DecoderMetadataSet metadatas, DecoderFactory parentFactory)
-
-
Method Details
-
getDecoderFor
-
getMetadataFor
-
getWrapperFor
-
init
public void init(javax.websocket.EndpointConfig config) - Specified by:
init
in interfaceConfigurable
-
destroy
public void destroy()- Specified by:
destroy
in interfaceConfigurable
-
newWrapper
-