java.lang.Object
org.cybergarage.upnp.Device
org.cybergarage.upnp.std.av.server.MediaServer
- All Implemented Interfaces:
org.cybergarage.http.HTTPRequestListener,org.cybergarage.upnp.device.SearchListener
-
Field Summary
FieldsFields inherited from class org.cybergarage.upnp.Device
DEFAULT_DESCRIPTION_URI, DEFAULT_DISCOVERY_WAIT_TIME, DEFAULT_LEASE_TIME, DEFAULT_PRESENTATION_URI, DEFAULT_STARTUP_WAIT_TIME, ELEM_NAME, HTTP_DEFAULT_PORT, UPNP_ROOTDEVICE -
Constructor Summary
ConstructorsConstructorDescriptionMediaServer(String descriptionFileName) MediaServer(String description, String contentDirectorySCPD, String connectionManagerSCPD) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanaddPlugIn(org.cybergarage.upnp.std.av.server.object.Format format) protected voidfinalize()getContentDirectory(int n) intvoidhttpRequestRecieved(org.cybergarage.http.HTTPRequest httpReq) voidvoidremoveContentDirectory(String name) voidsetInterfaceAddress(String ifaddr) booleanstart()booleanstop()voidupdate()Methods inherited from class org.cybergarage.upnp.Device
addDevice, addIcon, addService, announce, announce, byebye, byebye, deviceSearchReceived, deviceSearchResponse, getAbsoluteURL, getAbsoluteURL, getAction, getBootId, getConfigId, getDescriptionFile, getDescriptionFilePath, getDevice, getDeviceByDescriptionURI, getDeviceList, getDeviceNode, getDeviceType, getElapsedTime, getFriendlyName, getHTTPBindAddress, getHTTPPort, getIcon, getIconByURI, getIconList, getLeaseTime, getLocation, getLocationURL, getManufacture, getManufactureURL, getModelDescription, getModelName, getModelNumber, getModelURL, getMulticastIPv4Address, getMulticastIPv6Address, getParentDevice, getPresentationListener, getPresentationURL, getRootDevice, getRootNode, getSerialNumber, getService, getServiceByControlURL, getServiceByEventSubURL, getServiceBySCPDURL, getServiceList, getSmallestIcon, getSSDPAnnounceCount, getSSDPBindAddress, getSSDPIPv4MulticastAddress, getSSDPIPv4MulticastAddress, getSSDPIPv6MulticastAddress, getSSDPIPv6MulticastAddress, getSSDPPacket, getSSDPPort, getStateVariable, getStateVariable, getSubscriberService, getTimeStamp, getUDN, getUPC, getURLBase, getUserData, getUUID, hasPresentationListener, hasUDN, isDevice, isDeviceNode, isDeviceType, isExpired, isIconBytesURI, isNMPRMode, isRootDevice, isRunning, isWirelessMode, loadDescription, loadDescription, loadDescription, lock, notifyWait, postSearchResponse, removePresentationURL, setActionListener, setActionListener, setDeviceNode, setDeviceType, setFriendlyName, setHTTPBindAddress, setHTTPPort, setLeaseTime, setLocation, setManufacture, setManufactureURL, setModelDescription, setModelName, setModelNumber, setModelURL, setMulticastIPv4Address, setMulticastIPv6Address, setNMPRMode, setPresentationListener, setPresentationURL, setQueryListener, setQueryListener, setRootNode, setSerialNumber, setSSDPBindAddress, setSSDPPacket, setSSDPPort, setUDN, setUPC, setUserData, setWirelessMode, unlock, updateConfigId
-
Field Details
-
DEVICE_TYPE
- See Also:
-
DEFAULT_HTTP_PORT
public static final int DEFAULT_HTTP_PORT- See Also:
-
DESCRIPTION
- See Also:
-
-
Constructor Details
-
MediaServer
public MediaServer(String descriptionFileName) throws org.cybergarage.upnp.device.InvalidDescriptionException - Throws:
org.cybergarage.upnp.device.InvalidDescriptionException
-
MediaServer
public MediaServer() -
MediaServer
public MediaServer(String description, String contentDirectorySCPD, String connectionManagerSCPD) throws org.cybergarage.upnp.device.InvalidDescriptionException - Throws:
org.cybergarage.upnp.device.InvalidDescriptionException
-
-
Method Details
-
finalize
protected void finalize() -
getConnectionManager
-
getContentDirectory
-
addContentDirectory
-
removeContentDirectory
-
removeAllContentDirectories
public void removeAllContentDirectories() -
getNContentDirectories
public int getNContentDirectories() -
getContentDirectory
-
addPlugIn
public boolean addPlugIn(org.cybergarage.upnp.std.av.server.object.Format format) -
setInterfaceAddress
-
getInterfaceAddress
- Overrides:
getInterfaceAddressin classDevice
-
httpRequestRecieved
public void httpRequestRecieved(org.cybergarage.http.HTTPRequest httpReq) - Specified by:
httpRequestRecievedin interfaceorg.cybergarage.http.HTTPRequestListener- Overrides:
httpRequestRecievedin classDevice
-
start
public boolean start() -
stop
public boolean stop() -
update
public void update()
-