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 WebSocketContainerScopeprivate static final org.eclipse.jetty.util.log.Loggerprivate final DecoderMetadataSetprivate DecoderFactory -
Constructor Summary
ConstructorsModifierConstructorDescriptionDecoderFactory(WebSocketContainerScope containerScope, DecoderMetadataSet metadatas) protectedDecoderFactory(WebSocketContainerScope containerScope, DecoderMetadataSet metadatas, DecoderFactory parentFactory) DecoderFactory(WebSocketSessionScope sessionScope, DecoderMetadataSet metadatas, DecoderFactory parentFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()javax.websocket.DecodergetDecoderFor(Class<?> type) getMetadataFor(Class<?> type) getWrapperFor(Class<?> type) voidinit(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:
initin interfaceConfigurable
-
destroy
public void destroy()- Specified by:
destroyin interfaceConfigurable
-
newWrapper
-