|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.blackledge.david.tivo.hmoclient.ContainerRequest
public class ContainerRequest
Class to set up a request for a container and parse the results back for us. RandomStart not supported.
Field Summary | |
---|---|
static String |
ORDER_CREATION_DATE
|
static String |
ORDER_LAST_CHANGE_DATE
|
static String |
ORDER_RANDOM
May not be used with any other ORDER. |
static String |
ORDER_TITLE
|
static String |
ORDER_TYPE
|
Constructor Summary | |
---|---|
ContainerRequest(ContainerRequest request,
String url,
boolean copy)
|
|
ContainerRequest(HMOSession session,
String container)
|
Method Summary | |
---|---|
void |
addOrder(String order)
|
void |
addReverseOrder(String order)
|
Container |
execute(long startOffset,
long numItems)
|
Container |
execute(long startOffset,
long numItems,
Item startItem)
Hopefully you can ignore the startItem and just specify the numeric position (1-based) you want the list to start at. |
String |
getFilter()
|
String |
getOrder()
|
long |
getRandomSeed()
|
HMOSession |
getSession()
|
boolean |
isRecursive()
|
void |
setFilter(String filter)
"{filter} is a comma-delimited list of MIME types, indicating the desired value(s) for the Details.ContentType element of each item. |
void |
setOrder(String order)
|
void |
setRandomSeed(long randomSeed)
Required if sort is Random. |
void |
setRecursive(boolean recursive)
If set, container folder is ignored - it gets everything (up to apparent limit of 128 items) |
void |
setReverseOrder(String order)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ORDER_TYPE
public static final String ORDER_TITLE
public static final String ORDER_CREATION_DATE
public static final String ORDER_LAST_CHANGE_DATE
public static final String ORDER_RANDOM
Constructor Detail |
---|
public ContainerRequest(HMOSession session, String container)
public ContainerRequest(ContainerRequest request, String url, boolean copy)
Method Detail |
---|
public HMOSession getSession()
public void setOrder(String order)
public void setReverseOrder(String order)
public void addOrder(String order)
public void addReverseOrder(String order)
public String getOrder()
public void setFilter(String filter)
filter
- public String getFilter()
public void setRandomSeed(long randomSeed)
randomSeed
- public long getRandomSeed()
public void setRecursive(boolean recursive)
recursive
- public boolean isRecursive()
public Container execute(long startOffset, long numItems, Item startItem)
startOffset
- use 0 if you don't want an offset - "{offset} is a
positive or negative integer. When {offset} is positive, the
effective location of the anchor is shifted downwards. When
{offset} is negative, the location is shifted upwards."numItems
- use 0 for all items (max 128, so check your result's
number of items vs. "totalitems", run again with offset 128
to get the next "page")- "{count} is a positive or negative
integer. When {count} is positive, the items immediately following
the anchor are described. When {count} is negative, the items
immediately preceding the anchor are described. However, for the
remaining discussion, assume {count} refers only to the absolute
(non-negative magnitude) integer value"startItem
- may be null - "When the AnchorItem parameter is missing
or ignored, the anchor is the imaginary item that precedes (or
follows) the first (or last) item in the container."
public Container execute(long startOffset, long numItems)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |