Class ContentDirectory
java.lang.Object
org.cybergarage.util.ThreadCore
org.cybergarage.upnp.std.av.server.ContentDirectory
- All Implemented Interfaces:
Runnable,org.cybergarage.upnp.control.ActionListener,org.cybergarage.upnp.control.QueryListener
public class ContentDirectory
extends org.cybergarage.util.ThreadCore
implements org.cybergarage.upnp.control.ActionListener, org.cybergarage.upnp.control.QueryListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanactionControlReceived(org.cybergarage.upnp.Action action)booleanaddDirectory(Directory dir)booleanbooleanaddSearchCap(SearchCap searchCap)booleanaddSortCap(SortCap sortCap)voidcontentExportRequestRecieved(org.cybergarage.http.HTTPRequest httpReq)longgetDirectory(int n)getFormat(int n)intintintintintintintgetSearchCap(int n)getSearchCap(String type)getSortCap(int n)getSortCap(String type)intlongvoidlock()booleanqueryControlReceived(org.cybergarage.upnp.StateVariable stateVar)booleanbooleanremoveDirectory(String name)voidrun()voidsetContentUpdateInterval(long itime)voidsetSystemUpdateInterval(long itime)voidunlock()voidMethods inherited from class org.cybergarage.util.ThreadCore
getThreadObject, isRunnable, restart, setThreadObject, start, stop
-
Field Details
-
SERVICE_TYPE
- See Also:
- Constant Field Values
-
TRANSFERIDS
- See Also:
- Constant Field Values
-
SEARCHCAPABILITIES
- See Also:
- Constant Field Values
-
SORTCAPABILITIES
- See Also:
- Constant Field Values
-
SYSTEMUPDATEID
- See Also:
- Constant Field Values
-
CONTAINERUPDATEIDS
- See Also:
- Constant Field Values
-
GETSEARCHCAPABILITIES
- See Also:
- Constant Field Values
-
SEARCHCAPS
- See Also:
- Constant Field Values
-
GETSORTCAPABILITIES
- See Also:
- Constant Field Values
-
SORTCAPS
- See Also:
- Constant Field Values
-
GETSYSTEMUPDATEID
- See Also:
- Constant Field Values
-
ID
- See Also:
- Constant Field Values
-
BROWSE
- See Also:
- Constant Field Values
-
OBJECTID
- See Also:
- Constant Field Values
-
BROWSEFLAG
- See Also:
- Constant Field Values
-
FILTER
- See Also:
- Constant Field Values
-
STARTINGINDEX
- See Also:
- Constant Field Values
-
REQUESTEDCOUNT
- See Also:
- Constant Field Values
-
SORTCRITERIA
- See Also:
- Constant Field Values
-
RESULT
- See Also:
- Constant Field Values
-
NUMBERRETURNED
- See Also:
- Constant Field Values
-
TOTALMATCHES
- See Also:
- Constant Field Values
-
UPDATEID
- See Also:
- Constant Field Values
-
SEARCH
- See Also:
- Constant Field Values
-
CONTAINERID
- See Also:
- Constant Field Values
-
SEARCHCRITERIA
- See Also:
- Constant Field Values
-
CREATEOBJECT
- See Also:
- Constant Field Values
-
ELEMENTS
- See Also:
- Constant Field Values
-
DESTROYOBJECT
- See Also:
- Constant Field Values
-
UPDATEOBJECT
- See Also:
- Constant Field Values
-
CURRENTTAGVALUE
- See Also:
- Constant Field Values
-
NEWTAGVALUE
- See Also:
- Constant Field Values
-
IMPORTRESOURCE
- See Also:
- Constant Field Values
-
SOURCEURI
- See Also:
- Constant Field Values
-
DESTINATIONURI
- See Also:
- Constant Field Values
-
TRANSFERID
- See Also:
- Constant Field Values
-
EXPORTRESOURCE
- See Also:
- Constant Field Values
-
STOPTRANSFERRESOURCE
- See Also:
- Constant Field Values
-
GETTRANSFERPROGRESS
- See Also:
- Constant Field Values
-
TRANSFERSTATUS
- See Also:
- Constant Field Values
-
TRANSFERLENGTH
- See Also:
- Constant Field Values
-
TRANSFERTOTAL
- See Also:
- Constant Field Values
-
DELETERESOURCE
- See Also:
- Constant Field Values
-
RESOURCEURI
- See Also:
- Constant Field Values
-
CREATEREFERENCE
- See Also:
- Constant Field Values
-
NEWID
- See Also:
- Constant Field Values
-
BROWSEMETADATA
- See Also:
- Constant Field Values
-
BROWSEDIRECTCHILDREN
- See Also:
- Constant Field Values
-
COMPLETED
- See Also:
- Constant Field Values
-
ERROR
- See Also:
- Constant Field Values
-
IN_PROGRESS
- See Also:
- Constant Field Values
-
STOPPED
- See Also:
- Constant Field Values
-
CONTENT_EXPORT_URI
- See Also:
- Constant Field Values
-
CONTENT_IMPORT_URI
- See Also:
- Constant Field Values
-
CONTENT_ID
- See Also:
- Constant Field Values
-
SCPD
- See Also:
- Constant Field Values
-
-
Constructor Details
-
ContentDirectory
-
-
Method Details
-
getMediaServer
-
lock
public void lock() -
unlock
public void unlock() -
updateSystemUpdateID
public void updateSystemUpdateID() -
getSystemUpdateID
public int getSystemUpdateID() -
getNextItemID
public int getNextItemID() -
getNextContainerID
public int getNextContainerID() -
getRootNode
-
addPlugIn
-
getFormat
-
getFormat
-
getNFormats
public int getNFormats() -
addSortCap
-
getNSortCaps
public int getNSortCaps() -
getSortCap
-
getSortCap
-
addSearchCap
-
getSearchCapList
-
getNSearchCaps
public int getNSearchCaps() -
getSearchCap
-
getSearchCap
-
addDirectory
-
removeDirectory
-
removeAllDirectories
public boolean removeAllDirectories() -
getNDirectories
public int getNDirectories() -
getDirectory
-
findContentNodeByID
-
actionControlReceived
public boolean actionControlReceived(org.cybergarage.upnp.Action action)- Specified by:
actionControlReceivedin interfaceorg.cybergarage.upnp.control.ActionListener
-
queryControlReceived
public boolean queryControlReceived(org.cybergarage.upnp.StateVariable stateVar)- Specified by:
queryControlReceivedin interfaceorg.cybergarage.upnp.control.QueryListener
-
contentExportRequestRecieved
public void contentExportRequestRecieved(org.cybergarage.http.HTTPRequest httpReq) -
getInterfaceAddress
-
getHTTPPort
public int getHTTPPort() -
getContentExportURL
-
getContentImportURL
-
setSystemUpdateInterval
public void setSystemUpdateInterval(long itime) -
getSystemUpdateIDInterval
public long getSystemUpdateIDInterval() -
setContentUpdateInterval
public void setContentUpdateInterval(long itime) -
getContentUpdateInterval
public long getContentUpdateInterval() -
run
public void run()
-