|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.abdera.ext.history.FeedPagingHelper
public final class FeedPagingHelper
Initial support for Mark Nottingham's Feed Paging and Archiving draft (http://ietfreport.isoc.org/all-ids/draft-nottingham-atompub-feed-history-11.txt)
Field Summary | |
---|---|
static QName |
ARCHIVE
|
static QName |
COMPLETE
|
static String |
FH_PREFIX
|
static String |
FHNS
|
Method Summary | |
---|---|
static IRI |
getCurrent(Source feed)
Returns the IRI of the current link relation |
static IRI |
getFirst(Source feed)
Returns the IRI of the first link relation |
static IRI |
getLast(Source feed)
Returns the IRI of the last link relation |
static IRI |
getNext(Source feed)
Returns the IRI of the next link relation |
static IRI |
getNextArchive(Source feed)
Returns the IRI of the next-archive link relation |
static IRI |
getPrevious(Source feed)
Returns the IRI of the previous link relation |
static IRI |
getPreviousArchive(Source feed)
Returns the IRI of the prev-archive link relation |
static boolean |
isArchive(Source feed)
Return true if the feed has been marked as an archive |
static boolean |
isComplete(Source feed)
Returns true if the feed is "complete". |
static boolean |
isPaged(Source feed)
Return true if the feed contains any next, previous, first or last paging link relations |
static void |
setArchive(Source feed,
boolean archive)
Flag the feed as being an archive. |
static void |
setComplete(Source feed,
boolean complete)
Flag the feed as being complete. |
static Link |
setCurrent(Source feed,
String iri)
Adds a current link relation to the feed |
static Link |
setFirst(Source feed,
String iri)
Adds a first link relation to the feed |
static Link |
setLast(Source feed,
String iri)
Adds a last link relation to the feed |
static Link |
setNext(Source feed,
String iri)
Adds a next link relation to the feed |
static Link |
setNextArchive(Source feed,
String iri)
Adds a next-archive link relation to the feed |
static Link |
setPrevious(Source feed,
String iri)
Adds a previous link relation to the feed |
static Link |
setPreviousArchive(Source feed,
String iri)
Adds a prev-archive link relation to the feed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FH_PREFIX
public static final String FHNS
public static final QName COMPLETE
public static final QName ARCHIVE
Method Detail |
---|
public static boolean isComplete(Source feed)
feed
- The feed to checkpublic static void setComplete(Source feed, boolean complete)
feed
- The Feed to mark as completecomplete
- True if the feed is completepublic static void setArchive(Source feed, boolean archive)
feed
- The Feed to mark as an archivearchive
- True if the feed is an archivepublic static boolean isArchive(Source feed)
feed
- The feed to checkpublic static boolean isPaged(Source feed)
feed
- The feed to checkpublic static Link setNext(Source feed, String iri)
feed
- The feediri
- The IRI of the next feed document
public static Link setPrevious(Source feed, String iri)
feed
- The feediri
- The IRI of the previous feed document
public static Link setFirst(Source feed, String iri)
feed
- The feediri
- The IRI of the first feed document
public static Link setLast(Source feed, String iri)
feed
- The feediri
- The IRI of the last feed document
public static Link setNextArchive(Source feed, String iri)
feed
- The feediri
- The IRI of the next archive feed document
public static Link setPreviousArchive(Source feed, String iri)
feed
- The feediri
- The IRI of the previous archive feed document
public static Link setCurrent(Source feed, String iri)
feed
- The feediri
- The IRI of the current feed document
public static IRI getNext(Source feed)
public static IRI getPrevious(Source feed)
public static IRI getFirst(Source feed)
public static IRI getLast(Source feed)
public static IRI getPreviousArchive(Source feed)
public static IRI getNextArchive(Source feed)
public static IRI getCurrent(Source feed)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |