Package io.undertow.server
Class ListenerRegistry.Listener
- java.lang.Object
-
- io.undertow.server.ListenerRegistry.Listener
-
- Enclosing class:
- ListenerRegistry
public static final class ListenerRegistry.Listener extends Object
-
-
Constructor Summary
Constructors Constructor Description Listener(String protocol, String name, String serverName, InetSocketAddress bindAddress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHttpUpgradeMetadata(ListenerRegistry.HttpUpgradeMetadata upgradeMetadata)
InetSocketAddress
getBindAddress()
The address that this listener is bound toObject
getContextInformation(String key)
Collection<String>
getContextKeys()
Set<ListenerRegistry.HttpUpgradeMetadata>
getHttpUpgradeMetadata()
String
getName()
The optional listener name;String
getProtocol()
The protocol that this listener is usingString
getServerName()
The server nameObject
removeContextInformation(String key)
void
removeHttpUpgradeMetadata(ListenerRegistry.HttpUpgradeMetadata upgradeMetadata)
Object
setContextInformation(String key, Object value)
-
-
-
Constructor Detail
-
Listener
public Listener(String protocol, String name, String serverName, InetSocketAddress bindAddress)
-
-
Method Detail
-
getProtocol
public String getProtocol()
The protocol that this listener is using
-
getName
public String getName()
The optional listener name;
-
getServerName
public String getServerName()
The server name
-
getBindAddress
public InetSocketAddress getBindAddress()
The address that this listener is bound to
-
getContextKeys
public Collection<String> getContextKeys()
-
addHttpUpgradeMetadata
public void addHttpUpgradeMetadata(ListenerRegistry.HttpUpgradeMetadata upgradeMetadata)
-
removeHttpUpgradeMetadata
public void removeHttpUpgradeMetadata(ListenerRegistry.HttpUpgradeMetadata upgradeMetadata)
-
getHttpUpgradeMetadata
public Set<ListenerRegistry.HttpUpgradeMetadata> getHttpUpgradeMetadata()
-
-