|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.james.nntpserver.repository.NNTPRepositoryImpl
public class NNTPRepositoryImpl
NNTP Repository implementation.
Constructor Summary | |
---|---|
NNTPRepositoryImpl()
|
Method Summary | |
---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration aConfiguration)
|
void |
contextualize(org.apache.avalon.framework.context.Context context)
|
void |
createArticle(java.io.InputStream in)
Creates an article in the repository from the data in the reader. |
NNTPArticle |
getArticleFromID(java.lang.String id)
Gets the article with the specified id from within the repository. |
java.util.Iterator |
getArticlesSince(java.util.Date dt)
Gets all articles posted since the specified date |
NNTPGroup |
getGroup(java.lang.String groupName)
Gets the group with the specified name from within the repository. |
java.util.Iterator |
getGroupsSince(java.util.Date dt)
Gets all groups added since the specified date |
java.util.Iterator |
getMatchedGroups(java.lang.String wildmat)
Gets all groups that match the wildmat string |
java.lang.String[] |
getOverviewFormat()
Returns the ordered array of header names (including the trailing colon on each) returned in overview format for articles stored in this repository. |
void |
initialize()
|
boolean |
isReadOnly()
Returns whether this repository is read only. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NNTPRepositoryImpl()
Method Detail |
---|
public void contextualize(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException
contextualize
in interface org.apache.avalon.framework.context.Contextualizable
org.apache.avalon.framework.context.ContextException
Contextualizable.contextualize(Context)
public void configure(org.apache.avalon.framework.configuration.Configuration aConfiguration) throws org.apache.avalon.framework.configuration.ConfigurationException
configure
in interface org.apache.avalon.framework.configuration.Configurable
org.apache.avalon.framework.configuration.ConfigurationException
Configurable.configure(Configuration)
public void initialize() throws java.lang.Exception
initialize
in interface org.apache.avalon.framework.activity.Initializable
java.lang.Exception
Initializable.initialize()
public boolean isReadOnly()
NNTPRepository
isReadOnly
in interface NNTPRepository
NNTPRepository.isReadOnly()
public NNTPGroup getGroup(java.lang.String groupName)
NNTPRepository
getGroup
in interface NNTPRepository
groupName
- the name of the group to retrieve
NNTPRepository.getGroup(String)
public NNTPArticle getArticleFromID(java.lang.String id)
NNTPRepository
getArticleFromID
in interface NNTPRepository
id
- the id of the article to retrieve
NNTPRepository.getArticleFromID(String)
public void createArticle(java.io.InputStream in)
NNTPRepository
createArticle
in interface NNTPRepository
in
- the InputStream that serves as a source for the message data.NNTPRepository.createArticle(InputStream)
public java.util.Iterator getMatchedGroups(java.lang.String wildmat)
NNTPRepository
getMatchedGroups
in interface NNTPRepository
wildmat
- the wildmat parameter
NNTPRepository.getMatchedGroups(String)
public java.util.Iterator getGroupsSince(java.util.Date dt)
NNTPRepository
getGroupsSince
in interface NNTPRepository
dt
- the Date that serves as a lower bound
NNTPRepository.getGroupsSince(Date)
public java.util.Iterator getArticlesSince(java.util.Date dt)
NNTPRepository
getArticlesSince
in interface NNTPRepository
dt
- the Date that serves as a lower bound
NNTPRepository.getArticlesSince(Date)
public java.lang.String[] getOverviewFormat()
NNTPRepository
getOverviewFormat
in interface NNTPRepository
NNTPRepository.getOverviewFormat()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |