com.buglabs.bug.slp
Class AdvertiserIPAddressFactory

java.lang.Object
  extended by com.buglabs.bug.slp.AdvertiserIPAddressFactory

public class AdvertiserIPAddressFactory
extends java.lang.Object

Simple class to encapsulate logic for finding an advertiser's IP Address


Constructor Summary
AdvertiserIPAddressFactory()
           
 
Method Summary
static java.net.InetAddress getAddress(BundleContext context, Advertiser advertiser)
          This little patch gets the IP for the BUG to be used as the SLP advertiser If it's a real BUG, use the advertiser to return the IP If it's a virtual BUG, try to use LOCALHOST
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdvertiserIPAddressFactory

public AdvertiserIPAddressFactory()
Method Detail

getAddress

public static java.net.InetAddress getAddress(BundleContext context,
                                              Advertiser advertiser)
                                       throws java.net.SocketException
This little patch gets the IP for the BUG to be used as the SLP advertiser If it's a real BUG, use the advertiser to return the IP If it's a virtual BUG, try to use LOCALHOST

Parameters:
context -
advertiser -
Returns:
Throws:
java.net.SocketException