Class Util.DecoderMatch
java.lang.Object
org.apache.tomcat.websocket.Util.DecoderMatch
- Enclosing class:
Util
Holds the result of matching decoders against a target type.
-
Constructor Summary
ConstructorsConstructorDescriptionDecoderMatch(Class<?> target, List<DecoderEntry> decoderEntries) Constructs a new DecoderMatch by matching decoder entries against the target type. -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of matched binary decoders.Class<?> Returns the target type that decoders were matched against.Returns the list of matched text decoders.booleanReturns whether any decoders matched the target type.
-
Constructor Details
-
DecoderMatch
Constructs a new DecoderMatch by matching decoder entries against the target type.- Parameters:
target- The target type to match decoders againstdecoderEntries- The available decoder entries- Throws:
IllegalArgumentException- If an unknown decoder type is encountered
-
-
Method Details
-
getTextDecoders
-
getBinaryDecoders
-
getTarget
Returns the target type that decoders were matched against.- Returns:
- the target type
-
hasMatches
public boolean hasMatches()Returns whether any decoders matched the target type.- Returns:
trueif there are matching text or binary decoders,falseotherwise
-