jimm.twice.syndicator
Class FileSubscriptionBuilder
java.lang.Object
jimm.twice.syndicator.FileSubscriptionBuilder
- public class FileSubscriptionBuilder
- extends java.lang.Object
A file subscription builder creates ice-item and ice-item-ref tags
for subscriptions that deliver the contents of a directory.
- Author:
- Jim Menard, jimm@io.com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER_PREFIX
protected static final java.lang.String LOGGER_PREFIX
- See Also:
- Constant Field Values
syndicator
protected Syndicator syndicator
topLevelDir
protected java.io.File topLevelDir
maxModTime
protected long maxModTime
inlineOrRef
protected int inlineOrRef
currModTime
protected long currModTime
domain
protected java.lang.String domain
addList
protected java.util.ArrayList addList
removeList
protected java.util.ArrayList removeList
oldFileInfoList
protected java.util.ArrayList oldFileInfoList
curFileInfoList
protected java.util.ArrayList curFileInfoList
xmlFile
protected java.io.File xmlFile
setXmlFile
public void setXmlFile(java.io.File f)
setDomain
public void setDomain(java.lang.String d)
hasUpdates
public boolean hasUpdates()
getMaxModTime
public long getMaxModTime()
generateItems
public CmPackage generateItems(int inlineOrRef,
java.lang.String urlPrefix,
long currModTime)
throws java.io.IOException
- Generates a content-metadata package of items based on the current-state.
Returns null if no updates are available
- Parameters:
urlPrefix
- URL prefix for item references
- Returns:
- content-metadata package of items
- Throws:
java.io.IOException
loadMetadata
public void loadMetadata()
storeMetadata
public void storeMetadata()