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 voidaddHttpUpgradeMetadata(ListenerRegistry.HttpUpgradeMetadata upgradeMetadata)InetSocketAddressgetBindAddress()The address that this listener is bound toObjectgetContextInformation(String key)Collection<String>getContextKeys()Set<ListenerRegistry.HttpUpgradeMetadata>getHttpUpgradeMetadata()StringgetName()The optional listener name;StringgetProtocol()The protocol that this listener is usingStringgetServerName()The server nameObjectremoveContextInformation(String key)voidremoveHttpUpgradeMetadata(ListenerRegistry.HttpUpgradeMetadata upgradeMetadata)ObjectsetContextInformation(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()
-
-