Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.teleal.cling.android
Class AndroidNetworkAddressFactory

    java.lang.Object
      org.teleal.cling.android.AndroidNetworkAddressFactory

All Implemented Interfaces:
  NetworkAddressFactory

    public class AndroidNetworkAddressFactory

extends Object
implements NetworkAddressFactory

Author:
  Christian Bauer

Field Summary
`protected List<InetAddress>` | `bindAddresses`
`static int` | `DEFAULT_TCP_HTTP_LISTEN_PORT`
`protected List<NetworkInterface>` | `networkInterfaces`
`protected int` | `streamListenPort`

Fields inherited from interface org.teleal.cling.transport.spi.NetworkAddressFactory
`SYSTEM_PROPERTY_NET_ADDRESSES, SYSTEM_PROPERTY_NET_IFACES`

Constructor Summary
`AndroidNetworkAddressFactory(int streamListenPort)`

Method Summary
`protected void` | `discoverBindAddresses()`
`protected void` | `discoverNetworkInterfaces()`
`InetAddress[]` | `getBindAddresses()`
`InetAddress` | `getBroadcastAddress(InetAddress inetAddress)`
`byte[]` | `getHardwareAddress(InetAddress inetAddress)`
`protected List<InetAddress>` | `getInetAddresses(NetworkInterface networkInterface)`
`InetAddress` | `getLocalAddress(NetworkInterface networkInterface, boolean isIPv6, InetAddress remoteAddress)`
`InetAddress` | `getMulticastGroup()`
`int` | `getMulticastPort()`
`NetworkInterface[]` | `getNetworkInterfaces()`
`int` | `getStreamListenPort()`
`protected boolean` | `isLoopback(NetworkInterface networkInterface)`
`protected boolean` | `isUsableAddress(InetAddress address)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### DEFAULT_TCP_HTTP_LISTEN_PORT

    public static final int DEFAULT_TCP_HTTP_LISTEN_PORT

See Also:
  Constant Field Values

### networkInterfaces

    protected List<NetworkInterface> networkInterfaces

### bindAddresses

    protected List<InetAddress> bindAddresses

### streamListenPort

    protected int streamListenPort

Constructor Detail

### AndroidNetworkAddressFactory

    public AndroidNetworkAddressFactory(int streamListenPort)
                                 throws InitializationException

Throws:
  `InitializationException`

Method Detail

### discoverNetworkInterfaces

    protected void discoverNetworkInterfaces()
                                      throws InitializationException

  Throws:
    `InitializationException`

### discoverBindAddresses

    protected void discoverBindAddresses()
                                  throws InitializationException

  Throws:
    `InitializationException`

### isLoopback

    protected boolean isLoopback(NetworkInterface networkInterface)

### isUsableAddress

    protected boolean isUsableAddress(InetAddress address)

### getInetAddresses

    protected List<InetAddress> getInetAddresses(NetworkInterface networkInterface)

### getMulticastGroup

    public InetAddress getMulticastGroup()

  Specified by:
    `getMulticastGroup` in interface `NetworkAddressFactory`

### getMulticastPort

    public int getMulticastPort()

  Specified by:
    `getMulticastPort` in interface `NetworkAddressFactory`

### getStreamListenPort

    public int getStreamListenPort()

  Specified by:
    `getStreamListenPort` in interface `NetworkAddressFactory`

### getNetworkInterfaces

    public NetworkInterface[] getNetworkInterfaces()

  Specified by:
    `getNetworkInterfaces` in interface `NetworkAddressFactory`

### getBindAddresses

    public InetAddress[] getBindAddresses()

  Specified by:
    `getBindAddresses` in interface `NetworkAddressFactory`

### getHardwareAddress

    public byte[] getHardwareAddress(InetAddress inetAddress)

  Specified by:
    `getHardwareAddress` in interface `NetworkAddressFactory`

### getBroadcastAddress

    public InetAddress getBroadcastAddress(InetAddress inetAddress)

  Specified by:
    `getBroadcastAddress` in interface `NetworkAddressFactory`

### getLocalAddress

    public InetAddress getLocalAddress(NetworkInterface networkInterface,
                                       boolean isIPv6,
                                       InetAddress remoteAddress)

  Specified by:
    `getLocalAddress` in interface `NetworkAddressFactory`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.