|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.Contextualizableorg.apache.avalon.framework.context.ContextExceptionContextualizable.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.Configurableorg.apache.avalon.framework.configuration.ConfigurationExceptionConfigurable.configure(Configuration)
public void initialize()
throws java.lang.Exception
initialize in interface org.apache.avalon.framework.activity.Initializablejava.lang.ExceptionInitializable.initialize()public boolean isReadOnly()
NNTPRepository
isReadOnly in interface NNTPRepositoryNNTPRepository.isReadOnly()public NNTPGroup getGroup(java.lang.String groupName)
NNTPRepository
getGroup in interface NNTPRepositorygroupName - the name of the group to retrieve
NNTPRepository.getGroup(String)public NNTPArticle getArticleFromID(java.lang.String id)
NNTPRepository
getArticleFromID in interface NNTPRepositoryid - the id of the article to retrieve
NNTPRepository.getArticleFromID(String)public void createArticle(java.io.InputStream in)
NNTPRepository
createArticle in interface NNTPRepositoryin - 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 NNTPRepositorywildmat - the wildmat parameter
NNTPRepository.getMatchedGroups(String)public java.util.Iterator getGroupsSince(java.util.Date dt)
NNTPRepository
getGroupsSince in interface NNTPRepositorydt - the Date that serves as a lower bound
NNTPRepository.getGroupsSince(Date)public java.util.Iterator getArticlesSince(java.util.Date dt)
NNTPRepository
getArticlesSince in interface NNTPRepositorydt - the Date that serves as a lower bound
NNTPRepository.getArticlesSince(Date)public java.lang.String[] getOverviewFormat()
NNTPRepository
getOverviewFormat in interface NNTPRepositoryNNTPRepository.getOverviewFormat()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||