Class MediaServer
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
public class MediaServer
extends org.cybergarage.upnp.Device
-
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 TypeMethodDescriptionvoidaddContentDirectory(Directory dir)booleanprotected 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:
- Constant Field Values
-
DEFAULT_HTTP_PORT
public static final int DEFAULT_HTTP_PORT- See Also:
- Constant Field Values
-
DESCRIPTION
- See Also:
- Constant Field Values
-
-
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
-
setInterfaceAddress
-
getInterfaceAddress
- Overrides:
getInterfaceAddressin classorg.cybergarage.upnp.Device
-
httpRequestRecieved
public void httpRequestRecieved(org.cybergarage.http.HTTPRequest httpReq)- Specified by:
httpRequestRecievedin interfaceorg.cybergarage.http.HTTPRequestListener- Overrides:
httpRequestRecievedin classorg.cybergarage.upnp.Device
-
start
public boolean start()- Overrides:
startin classorg.cybergarage.upnp.Device
-
stop
public boolean stop()- Overrides:
stopin classorg.cybergarage.upnp.Device
-
update
public void update()
-