Class AvailableEncoders

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.util.function.Predicate<java.lang.Class<?>>

    public class AvailableEncoders
    extends java.lang.Object
    implements java.util.function.Predicate<java.lang.Class<?>>, java.io.Closeable
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.lang.Class<? extends javax.websocket.Encoder> getEncoderFor​(java.lang.Class<?> type)  
      javax.websocket.Encoder getInstanceFor​(java.lang.Class<?> type)  
      RegisteredEncoder getRegisteredEncoderFor​(java.lang.Class<?> type)  
      void register​(java.lang.Class<? extends javax.websocket.Encoder> encoder)  
      void registerAll​(java.lang.Class<? extends javax.websocket.Encoder>[] encoders)  
      void registerAll​(java.util.List<java.lang.Class<? extends javax.websocket.Encoder>> encoders)  
      java.util.List<RegisteredEncoder> supporting​(java.lang.Class<? extends javax.websocket.Encoder> interfaceType)  
      boolean test​(java.lang.Class<?> type)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Constructor Detail

      • AvailableEncoders

        public AvailableEncoders​(javax.websocket.EndpointConfig config,
                                 WebSocketComponents components)
    • Method Detail

      • register

        public void register​(java.lang.Class<? extends javax.websocket.Encoder> encoder)
      • registerAll

        public void registerAll​(java.lang.Class<? extends javax.websocket.Encoder>[] encoders)
      • registerAll

        public void registerAll​(java.util.List<java.lang.Class<? extends javax.websocket.Encoder>> encoders)
      • supporting

        public java.util.List<RegisteredEncoder> supporting​(java.lang.Class<? extends javax.websocket.Encoder> interfaceType)
      • getRegisteredEncoderFor

        public RegisteredEncoder getRegisteredEncoderFor​(java.lang.Class<?> type)
      • getEncoderFor

        public java.lang.Class<? extends javax.websocket.Encoder> getEncoderFor​(java.lang.Class<?> type)
      • getInstanceFor

        public javax.websocket.Encoder getInstanceFor​(java.lang.Class<?> type)
      • test

        public boolean test​(java.lang.Class<?> type)
        Specified by:
        test in interface java.util.function.Predicate<java.lang.Class<?>>
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable