Package org.sonews.daemon.command
Klasse OverCommand
java.lang.Object
org.sonews.daemon.command.OverCommand
- Alle implementierten Schnittstellen:
Command
Class handling the OVER/XOVER command.
Description of the XOVER command:
XOVER [range]
The XOVER command returns information from the overview
database for the article(s) specified.
The optional range argument may be any of the following:
an article number
an article number followed by a dash to indicate
all following
an article number followed by a dash followed by
another article number
If no argument is specified, then information from the
current article is displayed. Successful responses start
with a 224 response followed by the overview information
for all matched messages. Once the output is complete, a
period is sent on a line by itself. If no argument is
specified, the information for the current article is
returned. A news group must have been selected earlier,
else a 412 error response is returned. If no articles are
in the range specified, a 420 error response is returned
by the server. A 502 response will be returned if the
client only has permission to transfer articles.
Each line of output will be formatted with the article number,
followed by each of the headers in the overview database or the
article itself (when the data is not available in the overview
database) for that article separated by a tab character. The
sequence of fields must be in this order: subject, author,
date, message-id, references, byte count, and line count. Other
optional fields may follow line count. Other optional fields may
follow line count. These fields are specified by examining the
response to the LIST OVERVIEW.FMT command. Where no data exists,
a null field must be provided (i.e. the output will have two tab
characters adjacent to each other). Servers should not output
fields for articles that have been removed since the XOVER database
was created.
The LIST OVERVIEW.FMT command should be implemented if XOVER
is implemented. A client can use LIST OVERVIEW.FMT to determine
what optional fields and in which order all fields will be
supplied by the XOVER command.
Note that any tab and end-of-line characters in any header
data that is returned will be converted to a space character.
Responses:
224 Overview information follows
412 No news group current selected
420 No article(s) selected
502 no permission
OVER defines additional responses:
First form (message-id specified)
224 Overview information follows (multi-line)
430 No article with that message-id
Second form (range specified)
224 Overview information follows (multi-line)
412 No newsgroup selected
423 No articles in that range
Third form (current article number used)
224 Overview information follows (multi-line)
412 No newsgroup selected
420 Current article number is invalid
- Seit:
- sonews/0.5.0
- Autor:
- Christian Lins
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprivate final org.slf4j.Loggerstatic final int -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprivate StringbuildOverview(Article art, long nr) private StringescapeString(String str) String[]booleanReturns capability string that is implied by this command class.booleanvoidprocessLine(NNTPConnection conn, String line, byte[] raw)
-
Felddetails
-
MAX_LINES_PER_DBREQUEST
public static final int MAX_LINES_PER_DBREQUEST- Siehe auch:
-
log
private final org.slf4j.Logger log
-
-
Konstruktordetails
-
OverCommand
public OverCommand()
-
-
Methodendetails
-
getSupportedCommandStrings
- Angegeben von:
getSupportedCommandStringsin SchnittstelleCommand
-
hasFinished
public boolean hasFinished()- Angegeben von:
hasFinishedin SchnittstelleCommand- Gibt zurück:
- true if this instance can be reused.
-
impliedCapability
Beschreibung aus Schnittstelle kopiert:CommandReturns capability string that is implied by this command class. MAY return null if the command is required by the NNTP standard.- Angegeben von:
impliedCapabilityin SchnittstelleCommand
-
isStateful
public boolean isStateful()- Angegeben von:
isStatefulin SchnittstelleCommand
-
processLine
public void processLine(NNTPConnection conn, String line, byte[] raw) throws IOException, StorageBackendException - Angegeben von:
processLinein SchnittstelleCommand- Löst aus:
IOExceptionStorageBackendException
-
buildOverview
-
escapeString
-