org.teleal.cling.transport
Class RouterImpl

java.lang.Object
  extended by org.teleal.cling.transport.RouterImpl
All Implemented Interfaces:
Router

public class RouterImpl
extends java.lang.Object
implements Router


Field Summary
protected  UpnpServiceConfiguration configuration
           
protected  java.util.Map<java.net.InetAddress,DatagramIO> datagramIOs
           
protected  java.util.Map<java.net.NetworkInterface,MulticastReceiver> multicastReceivers
           
protected  NetworkAddressFactory networkAddressFactory
           
protected  ProtocolFactory protocolFactory
           
protected  StreamClient streamClient
           
protected  java.util.Map<java.net.InetAddress,StreamServer> streamServers
           
 
Constructor Summary
RouterImpl(UpnpServiceConfiguration configuration, ProtocolFactory protocolFactory)
           
 
Method Summary
 void broadcast(byte[] bytes)
           
 UpnpServiceConfiguration getConfiguration()
           
protected  java.util.Map<java.net.InetAddress,DatagramIO> getDatagramIOs()
           
 int getLocalStreamPort(java.net.InetAddress address)
           
protected  java.util.Map<java.net.NetworkInterface,MulticastReceiver> getMulticastReceivers()
           
 NetworkAddressFactory getNetworkAddressFactory()
           
 ProtocolFactory getProtocolFactory()
           
 StreamClient getStreamClient()
           
protected  java.util.Map<java.net.InetAddress,StreamServer> getStreamServers()
           
 void received(IncomingDatagramMessage msg)
           
 void received(UpnpStream stream)
           
 void send(OutgoingDatagramMessage msg)
           
 StreamResponseMessage send(StreamRequestMessage msg)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configuration

protected final UpnpServiceConfiguration configuration

protocolFactory

protected final ProtocolFactory protocolFactory

streamClient

protected final StreamClient streamClient

networkAddressFactory

protected final NetworkAddressFactory networkAddressFactory

multicastReceivers

protected final java.util.Map<java.net.NetworkInterface,MulticastReceiver> multicastReceivers

datagramIOs

protected final java.util.Map<java.net.InetAddress,DatagramIO> datagramIOs

streamServers

protected final java.util.Map<java.net.InetAddress,StreamServer> streamServers
Constructor Detail

RouterImpl

public RouterImpl(UpnpServiceConfiguration configuration,
                  ProtocolFactory protocolFactory)
           throws InitializationException
Throws:
InitializationException
Method Detail

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 java.util.Map<java.net.NetworkInterface,MulticastReceiver> getMulticastReceivers()

getDatagramIOs

protected java.util.Map<java.net.InetAddress,DatagramIO> getDatagramIOs()

getStreamServers

protected java.util.Map<java.net.InetAddress,StreamServer> getStreamServers()

getLocalStreamPort

public int getLocalStreamPort(java.net.InetAddress address)
Specified by:
getLocalStreamPort in interface Router

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.