org.teleal.cling.transport
Class RouterImpl
java.lang.Object
org.teleal.cling.transport.RouterImpl
- All Implemented Interfaces:
- Router
public class RouterImpl
- extends Object
- implements Router
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
configuration
protected final UpnpServiceConfiguration configuration
protocolFactory
protected final ProtocolFactory protocolFactory
streamClient
protected final StreamClient streamClient
networkAddressFactory
protected final NetworkAddressFactory networkAddressFactory
multicastReceivers
protected final Map<NetworkInterface,MulticastReceiver> multicastReceivers
datagramIOs
protected final Map<InetAddress,DatagramIO> datagramIOs
streamServers
protected final Map<InetAddress,StreamServer> streamServers
RouterImpl
public RouterImpl(UpnpServiceConfiguration configuration,
ProtocolFactory protocolFactory)
throws InitializationException
- Throws:
InitializationException
getConfiguration
public UpnpServiceConfiguration getConfiguration()
- Specified by:
getConfiguration
in interface Router
getProtocolFactory
public ProtocolFactory getProtocolFactory()
- Specified by:
getProtocolFactory
in interface Router
getStreamClient
public StreamClient getStreamClient()
- Specified by:
getStreamClient
in interface Router
getNetworkAddressFactory
public NetworkAddressFactory getNetworkAddressFactory()
- Specified by:
getNetworkAddressFactory
in interface Router
getMulticastReceivers
protected Map<NetworkInterface,MulticastReceiver> getMulticastReceivers()
getDatagramIOs
protected Map<InetAddress,DatagramIO> getDatagramIOs()
getStreamServers
protected Map<InetAddress,StreamServer> getStreamServers()
shutdown
public void shutdown()
- Specified by:
shutdown
in interface Router
received
public void received(IncomingDatagramMessage msg)
- Specified by:
received
in interface Router
received
public void received(UpnpStream stream)
- Specified by:
received
in interface Router
send
public void send(OutgoingDatagramMessage msg)
- Specified by:
send
in interface Router
send
public StreamResponseMessage send(StreamRequestMessage msg)
- Specified by:
send
in interface Router
broadcast
public void broadcast(byte[] bytes)
- Specified by:
broadcast
in interface Router
Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.