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

    Fields
    Modifier and Type
    Field
    Description
    static int
     
    static String
     
    static String
     

    Fields 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

    Constructors
    Constructor
    Description
     
    MediaServer​(String descriptionFileName)
     
    MediaServer​(String description, String contentDirectorySCPD, String connectionManagerSCPD)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    boolean
    addPlugIn​(Format format)
     
    protected void
     
     
     
     
     
    int
     
    void
    httpRequestRecieved​(org.cybergarage.http.HTTPRequest httpReq)
     
    void
     
    void
     
    void
     
    boolean
     
    boolean
     
    void
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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()
      Overrides:
      finalize in class Object
    • getConnectionManager

      public ConnectionManager getConnectionManager()
    • getContentDirectory

      public ContentDirectory getContentDirectory()
    • addContentDirectory

      public void addContentDirectory(Directory dir)
    • removeContentDirectory

      public void removeContentDirectory(String name)
    • removeAllContentDirectories

      public void removeAllContentDirectories()
    • getNContentDirectories

      public int getNContentDirectories()
    • getContentDirectory

      public Directory getContentDirectory(int n)
    • addPlugIn

      public boolean addPlugIn(Format format)
    • setInterfaceAddress

      public void setInterfaceAddress(String ifaddr)
    • getInterfaceAddress

      public String getInterfaceAddress()
      Overrides:
      getInterfaceAddress in class org.cybergarage.upnp.Device
    • httpRequestRecieved

      public void httpRequestRecieved(org.cybergarage.http.HTTPRequest httpReq)
      Specified by:
      httpRequestRecieved in interface org.cybergarage.http.HTTPRequestListener
      Overrides:
      httpRequestRecieved in class org.cybergarage.upnp.Device
    • start

      public boolean start()
      Overrides:
      start in class org.cybergarage.upnp.Device
    • stop

      public boolean stop()
      Overrides:
      stop in class org.cybergarage.upnp.Device
    • update

      public void update()