Class AvailableEncoders

java.lang.Object
org.eclipse.jetty.websocket.jakarta.common.encoders.AvailableEncoders
All Implemented Interfaces:
Closeable, AutoCloseable, Predicate<Class<?>>

public class AvailableEncoders extends Object implements Predicate<Class<?>>, Closeable
  • Constructor Details

    • AvailableEncoders

      public AvailableEncoders(jakarta.websocket.EndpointConfig config, WebSocketComponents components)
  • Method Details

    • register

      public void register(Class<? extends jakarta.websocket.Encoder> encoder)
    • registerAll

      public void registerAll(Class<? extends jakarta.websocket.Encoder>[] encoders)
    • registerAll

      public void registerAll(List<Class<? extends jakarta.websocket.Encoder>> encoders)
    • supporting

      public List<RegisteredEncoder> supporting(Class<? extends jakarta.websocket.Encoder> interfaceType)
    • getRegisteredEncoderFor

      public RegisteredEncoder getRegisteredEncoderFor(Class<?> type)
    • getEncoderFor

      public Class<? extends jakarta.websocket.Encoder> getEncoderFor(Class<?> type)
    • getInstanceFor

      public jakarta.websocket.Encoder getInstanceFor(Class<?> type)
    • test

      public boolean test(Class<?> type)
      Specified by:
      test in interface Predicate<Class<?>>
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable