Class ExtensionConfig


  • @Deprecated(since="2021-05-27")
    public class ExtensionConfig
    extends java.lang.Object
    Deprecated.
    The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
    Represents an Extension Configuration, as seen during the connection Handshake process.
    • Constructor Detail

      • ExtensionConfig

        public ExtensionConfig​(ExtensionConfig copy)
        Deprecated.
        Copy constructor
        Parameters:
        copy - the extension config to copy
      • ExtensionConfig

        public ExtensionConfig​(java.lang.String parameterizedName)
        Deprecated.
    • Method Detail

      • parse

        public static ExtensionConfig parse​(java.lang.String parameterizedName)
        Deprecated.
        Parse a single parameterized name.
        Parameters:
        parameterizedName - the parameterized name
        Returns:
        the ExtensionConfig
      • parseEnum

        public static java.util.List<ExtensionConfig> parseEnum​(java.util.Enumeration<java.lang.String> valuesEnum)
        Deprecated.
        Parse enumeration of Sec-WebSocket-Extensions header values into a ExtensionConfig list
        Parameters:
        valuesEnum - the raw header values enum
        Returns:
        the list of extension configs
      • parseList

        public static java.util.List<ExtensionConfig> parseList​(java.lang.String... rawSecWebSocketExtensions)
        Deprecated.
        Parse 1 or more raw Sec-WebSocket-Extensions header values into a ExtensionConfig list
        Parameters:
        rawSecWebSocketExtensions - the raw header values
        Returns:
        the list of extension configs
      • toHeaderValue

        public static java.lang.String toHeaderValue​(java.util.List<ExtensionConfig> configs)
        Deprecated.
        Convert a list of ExtensionConfig to a header value
        Parameters:
        configs - the list of extension configs
        Returns:
        the header value (null if no configs present)
      • getName

        public java.lang.String getName()
        Deprecated.
      • getParameter

        public final int getParameter​(java.lang.String key,
                                      int defValue)
        Deprecated.
      • getParameter

        public final java.lang.String getParameter​(java.lang.String key,
                                                   java.lang.String defValue)
        Deprecated.
      • getParameterizedName

        public final java.lang.String getParameterizedName()
        Deprecated.
      • getParameterKeys

        public final java.util.Set<java.lang.String> getParameterKeys()
        Deprecated.
      • getParameters

        public final java.util.Map<java.lang.String,​java.lang.String> getParameters()
        Deprecated.
        Return parameters found in request URI.
        Returns:
        the parameter map
      • init

        public final void init​(ExtensionConfig other)
        Deprecated.
        Initialize the parameters on this config from the other configuration.
        Parameters:
        other - the other configuration.
      • setParameter

        public final void setParameter​(java.lang.String key)
        Deprecated.
      • setParameter

        public final void setParameter​(java.lang.String key,
                                       int value)
        Deprecated.
      • setParameter

        public final void setParameter​(java.lang.String key,
                                       java.lang.String value)
        Deprecated.
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object