Klasse AbstractContentDirectoryService
java.lang.Object
org.jupnp.support.contentdirectory.AbstractContentDirectoryService
Simple ContentDirectory service skeleton.
Only state variables and actions required by ContentDirectory:1 (not the optional ones) are implemented.
- Autor:
- Alessio Gaeta, Christian Bauer, Amit Kumar Mondal - Code Refactoring
-
Feldübersicht
Felder -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedprotectedAbstractContentDirectoryService(List<String> searchCapabilities, List<String> sortCapabilities) protectedAbstractContentDirectoryService(List<String> searchCapabilities, List<String> sortCapabilities, PropertyChangeSupport propertyChangeSupport) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbrowse(String objectId, String browseFlag, String filter, UnsignedIntegerFourBytes firstResult, UnsignedIntegerFourBytes maxResults, String orderBy) abstract BrowseResultbrowse(String objectID, BrowseFlag browseFlag, String filter, long firstResult, long maxResults, SortCriterion[] orderby) Implement this method to implement browsing of your content.protected voidCall this method after making changes to your content directory.search(String containerId, String searchCriteria, String filter, long firstResult, long maxResults, SortCriterion[] orderBy) Override this method to implement searching of your content.search(String containerId, String searchCriteria, String filter, UnsignedIntegerFourBytes firstResult, UnsignedIntegerFourBytes maxResults, String orderBy)
-
Felddetails
-
CAPS_WILDCARD
- Siehe auch:
-
propertyChangeSupport
-
-
Konstruktordetails
-
AbstractContentDirectoryService
protected AbstractContentDirectoryService() -
AbstractContentDirectoryService
-
AbstractContentDirectoryService
protected AbstractContentDirectoryService(List<String> searchCapabilities, List<String> sortCapabilities, PropertyChangeSupport propertyChangeSupport)
-
-
Methodendetails
-
getSearchCapabilities
-
getSortCapabilities
-
getSystemUpdateID
-
getPropertyChangeSupport
-
changeSystemUpdateID
protected void changeSystemUpdateID()Call this method after making changes to your content directory.This will notify clients that their view of the content directory is potentially outdated and has to be refreshed.
-
browse
public BrowseResult browse(String objectId, String browseFlag, String filter, UnsignedIntegerFourBytes firstResult, UnsignedIntegerFourBytes maxResults, String orderBy) throws ContentDirectoryException - Löst aus:
ContentDirectoryException
-
browse
public abstract BrowseResult browse(String objectID, BrowseFlag browseFlag, String filter, long firstResult, long maxResults, SortCriterion[] orderby) throws ContentDirectoryException Implement this method to implement browsing of your content.This is a required action defined by ContentDirectory:1.
You should wrap any exception into a
ContentDirectoryException, so a propery error message can be returned to control points.- Löst aus:
ContentDirectoryException
-
search
public BrowseResult search(String containerId, String searchCriteria, String filter, UnsignedIntegerFourBytes firstResult, UnsignedIntegerFourBytes maxResults, String orderBy) throws ContentDirectoryException - Löst aus:
ContentDirectoryException
-
search
public BrowseResult search(String containerId, String searchCriteria, String filter, long firstResult, long maxResults, SortCriterion[] orderBy) throws ContentDirectoryException Override this method to implement searching of your content.The default implementation returns an empty result.
- Löst aus:
ContentDirectoryException
-