org.fourthline.cling.support.contentdirectory.callback
Class Browse
java.lang.Object
org.fourthline.cling.controlpoint.ActionCallback
org.fourthline.cling.support.contentdirectory.callback.Browse
- All Implemented Interfaces:
- Runnable
- Direct Known Subclasses:
- ContentBrowseActionCallback
public abstract class Browse
- extends ActionCallback
Invokes a "Browse" action, parses the result.
- Author:
- Christian Bauer
CAPS_WILDCARD
public static final String CAPS_WILDCARD
- See Also:
- Constant Field Values
Browse
public Browse(Service service,
String containerId,
BrowseFlag flag)
- Browse with first result 0 and
getDefaultMaxResults()
, filters with CAPS_WILDCARD
.
Browse
public Browse(Service service,
String objectID,
BrowseFlag flag,
String filter,
long firstResult,
Long maxResults,
SortCriterion... orderBy)
- Parameters:
maxResults
- Can be null
, then getDefaultMaxResults()
is used.
run
public void run()
- Specified by:
run
in interface Runnable
- Overrides:
run
in class ActionCallback
success
public void success(ActionInvocation invocation)
- Specified by:
success
in class ActionCallback
getDefaultMaxResults
public long getDefaultMaxResults()
- Some media servers will crash if there is no limit on the maximum number of results.
- Returns:
- The default limit, 999.
receivedRaw
public boolean receivedRaw(ActionInvocation actionInvocation,
BrowseResult browseResult)
received
public abstract void received(ActionInvocation actionInvocation,
DIDLContent didl)
updateStatus
public abstract void updateStatus(Browse.Status status)
Copyright © 2013 4th Line GmbH, Switzerland. All Rights Reserved.