T
- The type of coder (Decoder
or Encoder
M
- The metadata for the coderpublic abstract class CoderMetadataSet<T,M extends CoderMetadata<T>> extends Object implements Iterable<M>
CoderMetadata
.
This is a write-only collection, and cannot be modified once initialized.
Modifier | Constructor and Description |
---|---|
protected |
CoderMetadataSet() |
Modifier and Type | Method and Description |
---|---|
void |
add(Class<? extends T> coder) |
List<M> |
addAll(Class<? extends T>[] coders) |
List<M> |
addAll(List<Class<? extends T>> coders) |
protected abstract List<M> |
discover(Class<? extends T> coder)
Coder Specific discovery of Metadata for a specific coder.
|
Class<? extends T> |
getCoder(Class<?> type) |
List<Class<? extends T>> |
getList() |
List<M> |
getMetadataByImplementation(Class<? extends T> clazz) |
M |
getMetadataByType(Class<?> type) |
Iterator<M> |
iterator() |
String |
toString() |
protected void |
trackMetadata(List<M> metadatas) |
protected void |
trackMetadata(M metadata) |
protected abstract List<M> discover(Class<? extends T> coder)
coder
- the coder to discover metadata in.InvalidWebSocketException
- if unable to discover some metadata. Sucha as: a duplicate CoderMetadata.getObjectType()
encountered, , or if unable to find the
concrete generic class reference for the coder, or if the provided coder is not valid per spec.public Iterator<M> iterator()
iterator
in interface Iterable<M extends CoderMetadata<T>>
protected void trackMetadata(M metadata)
Copyright © 1995-2015 Webtide. All Rights Reserved.