Class ExtensionConfig
- java.lang.Object
-
- org.eclipse.jetty.websocket.api.extensions.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 Summary
Constructors Constructor Description ExtensionConfig(java.lang.String parameterizedName)
Deprecated.ExtensionConfig(ExtensionConfig copy)
Deprecated.Copy constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getName()
Deprecated.int
getParameter(java.lang.String key, int defValue)
Deprecated.java.lang.String
getParameter(java.lang.String key, java.lang.String defValue)
Deprecated.java.lang.String
getParameterizedName()
Deprecated.java.util.Set<java.lang.String>
getParameterKeys()
Deprecated.java.util.Map<java.lang.String,java.lang.String>
getParameters()
Deprecated.Return parameters found in request URI.void
init(ExtensionConfig other)
Deprecated.Initialize the parameters on this config from the other configuration.static ExtensionConfig
parse(java.lang.String parameterizedName)
Deprecated.Parse a single parameterized name.static java.util.List<ExtensionConfig>
parseEnum(java.util.Enumeration<java.lang.String> valuesEnum)
Deprecated.Parse enumeration ofSec-WebSocket-Extensions
header values into aExtensionConfig
liststatic java.util.List<ExtensionConfig>
parseList(java.lang.String... rawSecWebSocketExtensions)
Deprecated.Parse 1 or more rawSec-WebSocket-Extensions
header values into aExtensionConfig
listvoid
setParameter(java.lang.String key)
Deprecated.void
setParameter(java.lang.String key, int value)
Deprecated.void
setParameter(java.lang.String key, java.lang.String value)
Deprecated.static java.lang.String
toHeaderValue(java.util.List<ExtensionConfig> configs)
Deprecated.Convert a list ofExtensionConfig
to a header valuejava.lang.String
toString()
Deprecated.
-
-
-
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 ofSec-WebSocket-Extensions
header values into aExtensionConfig
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 rawSec-WebSocket-Extensions
header values into aExtensionConfig
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 ofExtensionConfig
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 classjava.lang.Object
-
-