| Modifier and Type | Field and Description |
|---|---|
protected Codec |
codec |
protected InetSocketAddress |
localAddress |
protected InetSocketAddress |
remoteAddress |
protected ChannelState |
state |
protected URL |
url |
| Constructor and Description |
|---|
AbstractServer() |
AbstractServer(URL url) |
| Modifier and Type | Method and Description |
|---|---|
Channel |
getChannel(InetSocketAddress remoteAddress)
get channel.
|
Collection<Channel> |
getChannels()
get channels.
|
InetSocketAddress |
getLocalAddress()
get local socket address.
|
InetSocketAddress |
getRemoteAddress()
get remote socket address
|
void |
setCodec(Codec codec) |
void |
setLocalAddress(InetSocketAddress localAddress) |
void |
setRemoteAddress(InetSocketAddress remoteAddress) |
void |
setUrl(URL url) |
protected InetSocketAddress localAddress
protected InetSocketAddress remoteAddress
protected URL url
protected Codec codec
protected volatile ChannelState state
public AbstractServer()
public AbstractServer(URL url)
public InetSocketAddress getLocalAddress()
ChannelgetLocalAddress in interface Channelpublic InetSocketAddress getRemoteAddress()
ChannelgetRemoteAddress in interface Channelpublic void setLocalAddress(InetSocketAddress localAddress)
public void setRemoteAddress(InetSocketAddress remoteAddress)
public Collection<Channel> getChannels()
ServergetChannels in interface Serverpublic Channel getChannel(InetSocketAddress remoteAddress)
ServergetChannel in interface Serverpublic void setUrl(URL url)
public void setCodec(Codec codec)
Copyright © 2019. All rights reserved.