|
|||||||||
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 class FeedPagingHelper
Initial support for Mark Nottingham's Feed Paging and Archiving draft (http://ietfreport.isoc.org/all-ids/draft-nottingham-atompub-feed-history-07.txt)
Field Summary | |
---|---|
static javax.xml.namespace.QName |
ARCHIVE
|
static javax.xml.namespace.QName |
COMPLETE
|
static java.lang.String |
FH_PREFIX
|
static java.lang.String |
FHNS
|
Constructor Summary | |
---|---|
FeedPagingHelper()
|
Method Summary | |
---|---|
static IRI |
getCurrent(Feed feed)
Returns the IRI of the current link relation |
static IRI |
getFirst(Feed feed)
Returns the IRI of the first link relation |
static IRI |
getLast(Feed feed)
Returns the IRI of the last link relation |
static IRI |
getNext(Feed feed)
Returns the IRI of the next link relation |
static IRI |
getNextArchive(Feed feed)
Returns the IRI of the next-archive link relation |
static IRI |
getPrevious(Feed feed)
Returns the IRI of the previous link relation |
static IRI |
getPreviousArchive(Feed feed)
Returns the IRI of the prev-archive link relation |
static boolean |
isArchive(Feed feed)
Return true if the feed has been marked as an archive |
static boolean |
isComplete(Feed feed)
Returns true if the feed is "complete". |
static boolean |
isPaged(Feed feed)
Return true if the feed contains any next, previous, first or last paging link relations |
static void |
setArchive(Feed feed,
boolean archive)
Flag the feed as being an archive. |
static void |
setComplete(Feed feed,
boolean complete)
Flag the feed as being complete. |
static Link |
setCurrent(Feed feed,
java.lang.String iri)
Adds a current link relation to the feed |
static Link |
setFirst(Feed feed,
java.lang.String iri)
Adds a first link relation to the feed |
static Link |
setLast(Feed feed,
java.lang.String iri)
Adds a last link relation to the feed |
static Link |
setNext(Feed feed,
java.lang.String iri)
Adds a next link relation to the feed |
static Link |
setNextArchive(Feed feed,
java.lang.String iri)
Adds a next-archive link relation to the feed |
static Link |
setPrevious(Feed feed,
java.lang.String iri)
Adds a previous link relation to the feed |
static Link |
setPreviousArchive(Feed feed,
java.lang.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 java.lang.String FH_PREFIX
public static final java.lang.String FHNS
public static final javax.xml.namespace.QName COMPLETE
public static final javax.xml.namespace.QName ARCHIVE
Constructor Detail |
---|
public FeedPagingHelper()
Method Detail |
---|
public static boolean isComplete(Feed feed)
feed
- The feed to checkpublic static void setComplete(Feed feed, boolean complete)
feed
- The Feed to mark as completecomplete
- True if the feed is completepublic static void setArchive(Feed feed, boolean archive)
feed
- The Feed to mark as an archivearchive
- True if the feed is an archivepublic static boolean isArchive(Feed feed)
feed
- The feed to checkpublic static boolean isPaged(Feed feed)
feed
- The feed to checkpublic static Link setNext(Feed feed, java.lang.String iri) throws IRISyntaxException
feed
- The feediri
- The IRI of the next feed document
IRISyntaxException
public static Link setPrevious(Feed feed, java.lang.String iri) throws IRISyntaxException
feed
- The feediri
- The IRI of the previous feed document
IRISyntaxException
public static Link setFirst(Feed feed, java.lang.String iri) throws IRISyntaxException
feed
- The feediri
- The IRI of the first feed document
IRISyntaxException
public static Link setLast(Feed feed, java.lang.String iri) throws IRISyntaxException
feed
- The feediri
- The IRI of the last feed document
IRISyntaxException
public static Link setNextArchive(Feed feed, java.lang.String iri) throws IRISyntaxException
feed
- The feediri
- The IRI of the next archive feed document
IRISyntaxException
public static Link setPreviousArchive(Feed feed, java.lang.String iri) throws IRISyntaxException
feed
- The feediri
- The IRI of the previous archive feed document
IRISyntaxException
public static Link setCurrent(Feed feed, java.lang.String iri) throws IRISyntaxException
feed
- The feediri
- The IRI of the current feed document
IRISyntaxException
public static IRI getNext(Feed feed) throws IRISyntaxException
IRISyntaxException
public static IRI getPrevious(Feed feed) throws IRISyntaxException
IRISyntaxException
public static IRI getFirst(Feed feed) throws IRISyntaxException
IRISyntaxException
public static IRI getLast(Feed feed) throws IRISyntaxException
IRISyntaxException
public static IRI getPreviousArchive(Feed feed) throws IRISyntaxException
IRISyntaxException
public static IRI getNextArchive(Feed feed) throws IRISyntaxException
IRISyntaxException
public static IRI getCurrent(Feed feed) throws IRISyntaxException
IRISyntaxException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |