Package org.cybergarage.upnp
Class UPnP
java.lang.Object
org.cybergarage.upnp.UPnP
public class UPnP extends Object
-
Field Summary
Fields Modifier and Type Field Description static intCONFIGID_UPNP_ORG_MAXstatic intDEFAULT_EXPIRED_DEVICE_EXTRA_TIMEstatic intDEFAULT_TTLstatic StringINMPR03static intINMPR03_DISCOVERY_OVER_WIRELESS_COUNTstatic StringINMPR03_VERSIONstatic StringNAMEstatic intSERVER_RETRY_COUNTstatic intUSE_IPV6_ADMINISTRATIVE_SCOPEstatic intUSE_IPV6_GLOBAL_SCOPEstatic intUSE_IPV6_LINK_LOCAL_SCOPEstatic intUSE_IPV6_SITE_LOCAL_SCOPEstatic intUSE_IPV6_SUBNET_SCOPEstatic intUSE_LOOPBACK_ADDRstatic intUSE_ONLY_IPV4_ADDRstatic intUSE_ONLY_IPV6_ADDRstatic intUSE_SSDP_SEARCHRESPONSE_MULTIPLE_INTERFACESstatic StringVERSIONstatic StringXML_CLASS_PROPERTTYName of the system properties used to identifies the default XML Parser.
The value of the properties MUST BE the fully qualified class name of
XML Parser which CyberLink should use.static StringXML_DECLARATION -
Constructor Summary
Constructors Constructor Description UPnP() -
Method Summary
Modifier and Type Method Description static intcaluculateConfigId(String configXml)static intcreateBootId()static StringcreateUUID()static StringgetServerName()static intgetTimeToLive()static ParsergetXMLParser()static voidinitialize()static booleanisEnabled(int value)static voidsetDisable(int value)static voidsetEnable(int value)static voidsetTimeToLive(int value)static voidsetXMLParser(Parser parser)
-
Field Details
-
XML_CLASS_PROPERTTY
Name of the system properties used to identifies the default XML Parser.
The value of the properties MUST BE the fully qualified class name of
XML Parser which CyberLink should use.- See Also:
- Constant Field Values
-
NAME
- See Also:
- Constant Field Values
-
VERSION
- See Also:
- Constant Field Values
-
SERVER_RETRY_COUNT
public static final int SERVER_RETRY_COUNT- See Also:
- Constant Field Values
-
DEFAULT_EXPIRED_DEVICE_EXTRA_TIME
public static final int DEFAULT_EXPIRED_DEVICE_EXTRA_TIME- See Also:
- Constant Field Values
-
INMPR03
- See Also:
- Constant Field Values
-
INMPR03_VERSION
- See Also:
- Constant Field Values
-
INMPR03_DISCOVERY_OVER_WIRELESS_COUNT
public static final int INMPR03_DISCOVERY_OVER_WIRELESS_COUNT- See Also:
- Constant Field Values
-
XML_DECLARATION
- See Also:
- Constant Field Values
-
CONFIGID_UPNP_ORG_MAX
public static final int CONFIGID_UPNP_ORG_MAX- See Also:
- Constant Field Values
-
USE_ONLY_IPV6_ADDR
public static final int USE_ONLY_IPV6_ADDR- See Also:
- Constant Field Values
-
USE_LOOPBACK_ADDR
public static final int USE_LOOPBACK_ADDR- See Also:
- Constant Field Values
-
USE_IPV6_LINK_LOCAL_SCOPE
public static final int USE_IPV6_LINK_LOCAL_SCOPE- See Also:
- Constant Field Values
-
USE_IPV6_SUBNET_SCOPE
public static final int USE_IPV6_SUBNET_SCOPE- See Also:
- Constant Field Values
-
USE_IPV6_ADMINISTRATIVE_SCOPE
public static final int USE_IPV6_ADMINISTRATIVE_SCOPE- See Also:
- Constant Field Values
-
USE_IPV6_SITE_LOCAL_SCOPE
public static final int USE_IPV6_SITE_LOCAL_SCOPE- See Also:
- Constant Field Values
-
USE_IPV6_GLOBAL_SCOPE
public static final int USE_IPV6_GLOBAL_SCOPE- See Also:
- Constant Field Values
-
USE_SSDP_SEARCHRESPONSE_MULTIPLE_INTERFACES
public static final int USE_SSDP_SEARCHRESPONSE_MULTIPLE_INTERFACES- See Also:
- Constant Field Values
-
USE_ONLY_IPV4_ADDR
public static final int USE_ONLY_IPV4_ADDR- See Also:
- Constant Field Values
-
DEFAULT_TTL
public static final int DEFAULT_TTL- See Also:
- Constant Field Values
-
-
Constructor Details
-
UPnP
public UPnP()
-
-
Method Details
-
getServerName
-
setEnable
public static final void setEnable(int value) -
setDisable
public static final void setDisable(int value) -
isEnabled
public static final boolean isEnabled(int value) -
createUUID
-
createBootId
public static final int createBootId() -
caluculateConfigId
-
setXMLParser
-
getXMLParser
-
setTimeToLive
public static final void setTimeToLive(int value) -
getTimeToLive
public static final int getTimeToLive() -
initialize
public static final void initialize()
-