org.jmythapi.upnp
Class UpnpUtil

java.lang.Object
  extended by org.jmythapi.upnp.UpnpUtil

public class UpnpUtil
extends Object


Field Summary
static String BROADCAST_DEVICE_TYPE
           
static String BROADCAST_IP
           
static Integer BROADCAST_PORT
           
protected static Logger logger
          For logging
static String PROP_LOCATION
           
static String PROP_NT
           
static String PROP_NTS
           
static String PROP_ST
           
 
Constructor Summary
UpnpUtil()
           
 
Method Summary
static Collection<URI> locateBackend()
           
static Map<String,String> locateDatabase(URI statusURI, String pin)
           
static Map<String,String> parsePacket(DatagramPacket rpkt)
           
static URI waitForBackend(int timeout, String hostName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_ST

public static final String PROP_ST
See Also:
Constant Field Values

PROP_LOCATION

public static final String PROP_LOCATION
See Also:
Constant Field Values

PROP_NT

public static final String PROP_NT
See Also:
Constant Field Values

PROP_NTS

public static final String PROP_NTS
See Also:
Constant Field Values

BROADCAST_DEVICE_TYPE

public static final String BROADCAST_DEVICE_TYPE
See Also:
Constant Field Values

BROADCAST_IP

public static final String BROADCAST_IP
See Also:
Constant Field Values

BROADCAST_PORT

public static final Integer BROADCAST_PORT

logger

protected static final Logger logger
For logging

Constructor Detail

UpnpUtil

public UpnpUtil()
Method Detail

locateDatabase

public static Map<String,String> locateDatabase(URI statusURI,
                                                String pin)
                                         throws IOException
Parameters:
statusURI - the URI to a backend GetConnectionInfo page.
Throws:
IOException - on communication errors
Since:
34
See Also:
First Version

waitForBackend

public static URI waitForBackend(int timeout,
                                 String hostName)

locateBackend

public static Collection<URI> locateBackend()
                                     throws IOException
Throws:
IOException

parsePacket

public static Map<String,String> parsePacket(DatagramPacket rpkt)
                                      throws IOException
Throws:
IOException


Copyright © 2008-2013. All Rights Reserved.