String representations of commands.
The default DatagramSocketFactory shared by all DatagramSocketClient
instances.
The default SocketFactory shared by all SocketClient instances.
The maximum number of timeouts allowed before failing.
__modes - static field in class org.apache.commons.net.ftp.
FTP A buffer used to accelerate receives in bufferedReceive() **
A datagram used to minimize memory allocation in bufferedReceive() **
Private implementation of XOVER functionality.
Private implementation of XHDR functionality.
A datagram used to minimize memory allocation in bufferedSend() **
The host the packet is going to be sent or where it came from.
The block number being acknowledged by the packet.
The block number of the packet.
Is sequence (for subnegotiation)
A ProtocolCommandSupport object used to manage the registering of
ProtocolCommandListeners and te firing of ProtocolCommandEvents.
A ProtocolCommandSupport object used to manage the registering of
ProtocolCommandListeners and te firing of ProtocolCommandEvents.
A ProtocolCommandSupport object used to manage the registering of
ProtocolCommandListeners and te firing of ProtocolCommandEvents.
A ProtocolCommandSupport object used to manage the registering of
ProtocolCommandListeners and te firing of ProtocolCommandEvents.
Handles special connection requirements.
Handles special connection requirements.
Initiates control connections and gets initial reply, determining
if the client is allowed to post to the server.
Performs connection initialization and sets state to
AUTHORIZATION_STATE
.
Initiates control connections and gets initial reply.
Because there are so many connect() methods, the _connectAction_()
method is provided as a means of performing some action immediately
after establishing a connection, rather than reimplementing all
of the connect() methods.
Handles special connection requirements.
The data stored in the packet.
The default port the client should connect to.
_ERROR - static field in class org.apache.commons.net.pop3.
POP3 The error code of this packet.
If a separate error stream is requested, _errorStream_
will point to an InputStream from which the standard error of the
remote process can be read (after a call to rexec()).
The filename of the request.
The socket's InputStream.
A status variable indicating if the client's socket is currently open.
A status variable indicating if the client's socket is currently open.
Internal PatternMatcher object used by the parser.
The error message of this packet.
The transfer mode of the request.
A null terminated byte array representation of the ascii names of the
transfer mode constants.
An array containing the string names of the transfer modes and indexed
by the transfer mode constants.
This is a method only available within the package for
implementing efficient datagram transport by elminating buffering.
This is a method only available within the package for
implementing efficient datagram transport by elminating buffering.
This is a method only available within the package for
implementing efficient datagram transport by elminating buffering.
This is an abstract method only available within the package for
implementing efficient datagram transport by elminating buffering.
This is a method only available within the package for
implementing efficient datagram transport by elminating buffering.
The offset into the _data array at which the data begins.
_OK - static field in class org.apache.commons.net.pop3.
POP3 Establishes a data connection with the FTP server, returning
a Socket for the connection if successful.
The socket's OutputStream.
The port the packet came from or is going to.
Processes the response of an AYT
Processes a DONT request.
Processes a suboption negotiation.
Processes a WILL request.
Processes a WONT request.
_reader - field in class org.apache.commons.net.pop3.
POP3 _reader - field in class org.apache.commons.net.smtp.
SMTP
Registers an OutputStream for spying what's going on in
the Telnet session.
Looks for the state of the option.
Looks for the state of the option.
Looks for the state of the option.
Looks for the state of the option.
Sends an Are You There sequence and waits for the result.
A buffer used to accelerate sends in bufferedSend().
Manages subnegotiation for Terminal Type.
Sends terminal type information.
Sets the state of the option.
Sets the state of the option.
Sets the state of the option.
Sets the state of the option.
Sets the state of the option.
Sets the state of the option.
Sets the state of the option.
Sets the state of the option.
The datagram socket used for the connection.
The socket used for the connection.
The datagram socket's DatagramSocketFactory.
The socket's SocketFactory.
Sends a read char on the spy stream.
Sends a written char on the spy stream.
Looks for the state of the option.
Looks for the state of the option.
Looks for the state of the option.
Looks for the state of the option.
Stops spying this Telnet.
The timeout to use after opening a socket.
The timeout to use after opening a socket.
_writer - field in class org.apache.commons.net.smtp.
SMTP abor() - method in class org.apache.commons.net.ftp.
FTP
A convenience method to send the FTP ABOR command to the server,
receive the reply, and return the reply code.
Abort a transfer in progress.
true if the option should be accepted on the local side
true if the option should be accepted on the remote side
The access violation error code according to RFC 783, value 2.
A convenience method to send the FTP ACCT command to the server,
receive the reply, and return the reply code.
This is the actual TFTP spec
identifier and is equal to 4.
A constant indicating the FTP session is expecting all transfers
to occur between the client (local) and server and that the server
should connect to the client's data port to initiate a data transfer.
A constant indicating the FTP session is expecting all transfers
to occur between two remote servers and that the server
the client is connected to should connect to the other server's
data port to initiate a data transfer.
Add an email address to the CC (carbon copy or courtesy copy) list.
Registers a CopyStreamListener to receive CopyStreamEvents.
Add a distribution group to the query.
Adds an arbitrary header field with the given value to the article
header.
Adds an arbitrary header field with the given value to the article
header.
Add a newsgroup to the list of newsgroups being queried.
Adds a newsgroup to the article Newsgroups:
field.
Registers a new TelnetOptionHandler for this telnet to use.
Registers a new TelnetOptionHandler for this telnet client to use.
Adds a ProtocolCommandListener.
Adds a ProtocolCommandListener.
Adds a ProtocolCommandListener.
Adds a ProtocolCommandListener.
Adds a ProtocolCommandListener.
Add a recipient for a message using the SMTP RCPT command, specifying
a forward relay path.
Add a recipient for a message using the SMTP RCPT command, the
recipient's email address.
Add a mail relay host to the relay path.
A convenience method to send the FTP ALLO command to the server,
receive the reply, and return the reply code.
A convenience method to send the FTP ALLO command to the server,
receive the reply, and return the reply code.
Reserve a number of bytes on the server for the next file transfer.
Reserve space on the server for the next file transfer.
Implements the abstract method of TelnetOptionHandler.
Implements the abstract method of TelnetOptionHandler.
Implements the abstract method of TelnetOptionHandler.
Method called upon reception of a subnegotiation for this option
coming from the other end.
Implements the abstract method of TelnetOptionHandler.
A convenience method to send the FTP APPE command to the server,
receive the reply, and return the reply code.
Appends to a file on the server with the given name, taking input
from the given InputStream.
Returns an OutputStream through which data can be written to append
to a file on the server with the given name.
A convenience method to send the NNTP ARTICLE command to the server,
receive the initial reply, and return the reply code.
A convenience method to send the NNTP ARTICLE command to the server,
receive the initial reply, and return the reply code.
A convenience method to send the NNTP ARTICLE command to the server,
receive the initial reply, and return the reply code.
The unique id of the referenced article, including the enclosing
< and > symbols which are technically not part of the
identifier, but are required by all NNTP commands taking an
article id as an argument.
The number of the referenced article.
This class is a structure used to return article number and unique
id information extracted from an NNTP server reply.
A constant used to indicate the file(s) being transfered should
be treated as ASCII.
Log into a news server by sending the AUTHINFO USER/AUTHINFO
PASS command sequence.
A convenience method to send the AUTHINFO PASS command to the server,
receive the reply, and return the reply code.
A convenience method to send the AUTHINFO USER command to the server,
receive the reply, and return the reply code.
A constant representing the POP3 authorization state.
Returns the number of bytes that can be read without blocking EXCEPT
when newline conversions have to be made somewhere within the
available block of bytes.
A constant used to indicate a text file contains ASA vertical format
control characters.
cdup() - method in class org.apache.commons.net.ftp.
FTP
A convenience method to send the FTP CDUP command to the server,
receive the reply, and return the reply code.
Change to the parent directory of the current working directory.
Change the current working directory of the FTP session.
The character generator port value of 19 according to RFC 864.
The character generator port value of 19 according to RFC 864.
The CharGenTCPClient class is a TCP implementation of a client for the
character generator protocol described in RFC 864.
The default constructor for CharGenTCPClient.
The CharGenUDPClient class is a UDP implementation of a client for the
character generator protocol described in RFC 864.
The default CharGenUDPClient constructor.
Closes the DatagramSocket used for the connection.
Closes the message for reading.
Flushes the underlying output, writing all buffered output, but doesn't
actually close the underlying stream.
Closes the stream, writing all pending data.
Closes the stream and immediately afterward closes the referenced
socket.
Closes the stream and immediately afterward closes the referenced
socket.
There are a few FTPClient methods that do not complete the
entire sequence of FTP commands to complete a transaction.
There are a few NNTPClient methods that do not complete the
entire sequence of NNTP commands to complete a transaction.
At least one SMTPClient method (
sendMessage )
does not complete the entire sequence of SMTP commands to complete a
transaction.
This implementation allows to pack some FileEntryParsers together
and handle the case where to returned dirstyle isnt clearly defined.
A constant used to indicate a file is to be transfered as FTP
compressed data.
Opens a Socket connected to a remote host at the current default port
and originating from the current host at a system assigned port.
Opens a Socket connected to a remote host at the specified port and
originating from the current host at a port in a range acceptable
to the BSD rshell daemon.
Opens a Socket connected to a remote host at the specified port and
originating from the current host at a system assigned port.
Opens a Socket connected to a remote host at the specified port and
originating from the specified local address using a port in a range
acceptable to the BSD rshell daemon.
Opens a Socket connected to a remote host at the specified port and
originating from the specified local address and port.
Opens a Socket connected to a remote host at the specified port and
originating from the specified local address and port.
Opens a Socket connected to a remote host at the current default
port and originating from the current host at a system assigned port.
Opens a Socket connected to a remote host at the specified port and
originating from the current host at a port in a range acceptable
to the BSD rshell daemon.
Opens a Socket connected to a remote host at the specified port and
originating from the current host at a system assigned port.
Opens a Socket connected to a remote host at the specified port and
originating from the specified local address using a port in a range
acceptable to the BSD rshell daemon.
Opens a Socket connected to a remote host at the specified port and
originating from the specified local address and port.
Opens a Socket connected to a remote host at the specified port and
originating from the specified local address and port.
Same as copyReader(source, dest, DEFAULT_COPY_BUFFER_SIZE);
Copies the contents of a Reader to a Writer using a
copy buffer of a given size.
Copies the contents of a Reader to a Writer using a
copy buffer of a given size and notifies the provided
CopyStreamListener of the progress of the copy operation by calling
its bytesTransferred(long, int) method after each write to the
destination.
Same as copyStream(source, dest, DEFAULT_COPY_BUFFER_SIZE);
Copies the contents of an InputStream to an OutputStream using a
copy buffer of a given size.
Copies the contents of an InputStream to an OutputStream using a
copy buffer of a given size and notifies the provided
CopyStreamListener of the progress of the copy operation by calling
its bytesTransferred(long, int) method after each write to the
destination.
The CopyStreamAdapter will relay CopyStreamEvents to a list of listeners
when either of its bytesTransferred() methods are called.
Creates a new copyStreamAdapter.
A CopyStreamEvent is triggered after every write performed by a
stream copying operation.
Creates a new CopyStreamEvent instance.
The CopyStreamException class is thrown by the org.apache.commons.io.Util
copyStream() methods.
Creates a new CopyStreamException instance.
The CopyStreamListener class can accept CopyStreamEvents to keep track
of the progress of a stream copying operation.
The only way to create an FTPFileList
object.
Creates a DatagramSocket on the local host at the first available port.
Creates a DatagramSocket on the local host at the first available port.
Creates a DatagramSocket on the local host at a specified port.
Creates a DatagramSocket on the local host at a specified port.
Creates a DatagramSocket at the specified address on the local host
at a specified port.
Creates a DatagramSocket at the specified address on the local host
at a specified port.
This default implementation of the FTPFileEntryParserFactory
interface works according to the following logic:
First it attempts to interpret the supplied key as a fully
qualified classname of a class implementing the
FTPFileEntryParser interface.
Implementation should be a method that decodes the
supplied key and creates an object implementing the
interface FTPFileEntryParser.
Using a programmer specified FTPFileEntryParser
,
initialize an object containing a raw file information for the
current working directory.
Using a programmer specified FTPFileEntryParser
,
initialize an object containing a raw file information for a directory
or information for a single file.
Creates a ServerSocket bound to a specified port.
Creates a ServerSocket bound to a specified port.
Creates a ServerSocket bound to a specified port with a given
maximum queue length for incoming connections.
Creates a ServerSocket bound to a specified port with a given
maximum queue length for incoming connections.
Creates a ServerSocket bound to a specified port on a given local
address with a given maximum queue length for incoming connections.
Creates a ServerSocket bound to a specified port on a given local
address with a given maximum queue length for incoming connections.
Creates a Socket connected to the given host and port.
Creates a Socket connected to the given host and port.
Creates a Socket connected to the given host and port and
originating from the specified local address and port.
Creates a Socket connected to the given host and port and
originating from the specified local address and port.
Creates a Socket connected to the given host and port.
Creates a Socket connected to the given host and port.
Creates a Socket connected to the given host and port and
originating from the specified local address and port.
Creates a Socket connected to the given host and port and
originating from the specified local address and port.
CWD - static field in class org.apache.commons.net.ftp.
FTPCommand
A convenience method to send the FTP CWD command to the server,
receive the reply, and return the reply code.
This is the actual TFTP spec
identifier and is equal to 3.
data() - method in class org.apache.commons.net.smtp.
SMTP
A convenience method to send the SMTP DATA command to the server,
receive the reply, and return the reply code.
The DatagramSocketClient provides the basic operations that are required
of client objects accessing datagram sockets.
Default constructor for DatagramSocketClient.
The DatagramSocketFactory interface provides a means for the
programmer to control the creation of datagram sockets and
provide his own DatagramSocket implementations for use by all
classes derived from
DatagramSocketClient .
The DaytimeTCPClient class is a TCP implementation of a client for the
Daytime protocol described in RFC 867.
The default DaytimeTCPClient constructor.
The DaytimeUDPClient class is a UDP implementation of a client for the
Daytime protocol described in RFC 867.
debug - static field in class org.apache.commons.net.telnet.
Telnet The default FTP data port (20).
The default whois host to query.
The default number of times a receive attempt is allowed to timeout
before ending attempts to retry the receive and failing.
The default chargen port.
The default chargen port.
The default daytime port.
The default daytime port.
The default discard port.
The default discard port.
The default FTP control port (21).
The default SMTP port (25).
The default TFTP port according to RFC 783 is 69.
The default number of milliseconds to wait to receive a datagram
before timing out.
DefaultDatagramSocketFactory implements the DatagramSocketFactory
interface by simply wrapping the java.net.DatagramSocket
constructors.
This is the default implementation of the
FTPFileEntryParserFactory interface.
DefaultSocketFactory implements the SocketFactory interface by
simply wrapping the java.net.Socket and java.net.ServerSocket
constructors.
A convenience method to send the FTP DELE command to the server,
receive the reply, and return the reply code.
Deletes a file on the FTP server.
Delete a message from the POP3 server.
Unregisters a TelnetOptionHandler.
Unregisters a TelnetOptionHandler.
A constant indicating an FTPFile is a directory.
constant shorthand for the situation where the raw listing has been
scanned and found to have no valid entry.
This method synchronizes a connection by discarding all packets that
may be in the local socket buffer.
The DiscardTCPClient class is a TCP implementation of a client for the
Discard protocol described in RFC 863.
The default DiscardTCPClient constructor.
The DiscardUDPClient class is a UDP implementation of a client for the
Discard protocol described in RFC 863.
Closes the control connection to the FTP server and sets to null
some internal data so that the memory may be reclaimed by the
garbage collector.
Closes the connection to the FTP server and restores
connection parameters to the default values.
Closes the connection to the NNTP server and sets to null
some internal data so that the memory may be reclaimed by the
garbage collector.
Disconnects the client from the server, and sets the state to
DISCONNECTED_STATE
.
Disconnects from the server, closing all associated open sockets and
streams.
Closes the connection to the SMTP server and sets to null
some internal data so that the memory may be reclaimed by the
garbage collector.
Disconnects the socket connection.
Disconnects the telnet session, closing the input and output streams
as well as the socket.
A constant representing the state where the client is not yet connected
to a POP3 server.
Request to use option code.
true if the option is active on the local side
DotTerminatedMessageReader is a class used to read messages from a
server that are terminated by a single dot followed by a
<CR><LF>
sequence and with double dots appearing at the begining of lines which
do not signal end of message yet start with a dot.
Creates a DotTerminatedMessageReader that wraps an existing Reader
input source.
DotTerminatedMessageWriter is a class used to write messages to a
server that are terminated by a single dot followed by a
<CR><LF>
sequence and with double dots appearing at the begining of lines which
do not signal end of message yet start with a dot.
Creates a DotTerminatedMessageWriter that wraps an existing Writer
output destination.
The file already exists error code according to RFC 783, value 6.
The file not found error code according to RFC 783, value 1.
A constant used to indicate a file is to be treated as a continuous
sequence of bytes.
A constant indicating an FTPFile is a file.
The FingerClient class implements the client side of the Internet Finger
Protocol defined in RFC 1288.
The default FingerClient constructor.
Fires a ProtocolCommandEvent signalling the sending of a command to all
registered listeners, invoking their
protocolCommandSent() methods.
Fires a ProtocolCommandEvent signalling the reception of a command reply
to all registered listeners, invoking their
protocolReplyReceived() methods.
number within rawlines
of the first valid file entry.
Flushes the underlying output, writing all buffered output.
This class wraps an input stream, replacing all occurrences
of <CR><LF> (carriage return followed by a linefeed),
which is the NETASCII standard for representing a newline, with the
local line separator representation.
Creates a FromNetASCIIInputStream instance that wraps an existing
InputStream.
This class wraps an output stream, replacing all occurrences
of <CR><LF> (carriage return followed by a linefeed),
which is the NETASCII standard for representing a newline, with the
local line separator representation.
Creates a FromNetASCIIOutputStream instance that wraps an existing
OutputStream.
FTP - class org.apache.commons.net.ftp.
FTP
FTP provides the basic the functionality necessary to implement your
own FTP client.
FTP() - constructor for class org.apache.commons.net.ftp.
FTP
The default FTP constructor.
FTPClient encapsulates all the functionality necessary to store and
retrieve files from an FTP server.
Default FTPClient constructor.
FTPCommand stores a set of constants for FTP command codes.
FTPConnectionClosedException is used to indicate the premature or
unexpected closing of an FTP connection resulting from a
FTPReply.SERVICE_NOT_AVAILABLE response (FTP reply code 421) to a
failed FTP command.
Constructs a FTPConnectionClosedException with no message **
Constructs a FTPConnectionClosedException with a specified message.
The FTPFile class is used to represent information about files stored
on an FTP server.
Creates an empty FTPFile.
FTPFileEntryParser defines the interface for parsing a single FTP file
listing and converting that information into an
FTPFile instance.
The interface describes a factory for creating FTPFileEntryParsers
This abstract class implements both the older FTPFileListParser and
newer FTPFileEntryParser interfaces with default functionality.
The constructor for a FTPFileEntryParserImpl object.
This class implements a bidirectional iterator over an FTPFileList.
"Package-private" constructor.
"Package-private" constructor.
This class encapsulates a listing of files from an FTP server.
The only constructor for FTPFileList, private because
construction only invoked at create()
FTPFileListParser defines the interface for parsing FTP file listings
and converting that information into an array of
FTPFile instances.
This abstract class implements both the older FTPFileListParser and
newer FTPFileEntryParser interfaces with default functionality.
The constructor for a FTPFileListParserImpl object.
This class handles the entire process of parsing a listing of
file entries from the server.
FTPReply stores a set of constants for FTP reply codes.
Returns a boolean indicating whether to accept a DO
request coming from the other end.
Returns a boolean indicating whether to accept a WILL
request coming from the other end.
Retrieves the additional lines of a multi-line server reply.
Returns the address of the host where the packet is going to be sent
or where it came from.
Get the estimated number of articles in the newsgroup.
Returns the block number of the acknowledgement.
Returns the block number of the data packet.
Returns the number of bytes transferred by the write that triggered
the event.
Returns the string representation of the command type sent (e.g., "STAT"
or "GET").
Retrieve the FTP protocol command string corresponding to a specified
command code.
Retrieve the NNTP protocol command string corresponding to a specified
command code.
Get the POP3 protocol string command corresponding to a command code.
Retrieve the SMTP protocol command string corresponding to a specified
command code.
Returns the string representation of the telnet protocol command
corresponding to the given command code.
Returns the byte array containing the packet data.
Returns the current data connection mode (one of the
_DATA_CONNECTION_MODE
constants.
Returns the length of the data part of the data packet.
Returns the offset into the byte array where the packet data actually
starts.
Return the NNTP query formatted date (year, month, day in the form
YYMMDD.
Retrieves the time from the server and returns a Java Date
containing the time converted to the local timezone.
Same as getTime(host, DEFAULT_PORT);
**
Retrieves the time from the server and returns a Java Date
containing the time converted to the local timezone.
Returns the current value of the default port (stored in
_defaultPort_ ).
Returns the default timeout in milliseconds that is used when
opening a socket.
Returns the default timeout in milliseconds that is used when
opening a socket.
Return the comma separated list of distributions.
Returns a boolean indicating whether a DO request sent to the other
side has been acknowledged.
Returns the error code of the packet.
Returns the InputStream from which the standard error of the remote
process can be read if a separate error stream is requested from
the server.
Returns the requested filename.
Returns a list of FTPFile objects for ALL files listed in the server's
LIST output.
returns an array of FTPFile objects for all the files in the directory
listing
Returns an array of FTPFile objects containing the whole list of
files returned by the server as read by this object's parser.
Get the number of the first article in the newsgroup.
Skips over any introductory lines and stuff in the listing that does
not represent files, returning the line number of the first entry
that does represent a file.
Returns the address used in the From:
header field.
Returns the name of the group owning the file.
Convenience method delegates to the internal MatchResult's groups()
method.
For debugging purposes - returns a string shows each match group by
number.
Return the number of hard links to this file.
Returns a boolean indicating whether to send a WILL request
to the other end upon connection.
Returns a boolean indicating whether to send a DO request
to the other end upon connection.
Returns an InputStream from which the server generated data can be
read.
Returns an InputStream from which you may read echoed data from
the server.
Returns the InputStream from which the standard outputof the remote
process can be read.
Returns the telnet connection input stream.
Fingers the connected host and returns the input stream from
the network connection of the finger query.
Fingers a user and returns the input stream from the network connection
of the finger query.
Queries the connected whois server for information regarding
the given handle and returns the InputStream of the network connection.
Returns the IOException responsible for the failure of a copy operation.
Get the number of the last article in the newsgroup.
Package private accessor for the collection of raw input lines.
If the FTPFile is a symbolic link, this method returns the name of the
file being pointed to by the symbolic link.
Returns the number of ProtocolCommandListeners currently registered.
Returns the local address to which the client's socket is bound.
Returns the local address to which the client's socket is bound.
Returns the state of the option on the local side.
Returns the port number of the open socket on the local host used
for the connection.
Returns the port number of the open socket on the local host used
for the connection.
Returns the maximum number of times a receive attempt is allowed to
timeout before ending attempts to retry the receive and failing.
Gets the error message of ths exception.
Returns the entire message sent to or received from the server.
Returns the error message of the packet.
Returns the transfer mode of the request.
Returns the TFTP string representation of a TFTP transfer mode.
Return the name of the file.
Return the comma separated list of newsgroups.
Returns the contents of the Newsgroups:
header field.
Returns an array of at most quantityRequested
FTPFile
objects starting at this iterator's current position within its
associated list.
Returns an array of at most quantityRequested
FTPFile
objects starting at this object's internal iterator's current position.
Returns the string representation of the telnet protocol option
corresponding to the given option code.
Returns the option code for this option.
Returns an OutputStream through which you may write data to the server.
Returns the OutputStream through which the standard input of the remote
process can be written.
Returns the telnet connection output stream.
Accessor for this object's default parser.
Returns the hostname or IP address (in the form of a string) returned
by the server when entering passive mode.
If in passive mode, returns the data port of the passive host.
Returns the port where the packet is going to be sent
or where it came from.
Get the posting permission of the newsgroup.
Returns an array of at most quantityRequested
FTPFile
objects starting at the position preceding this iterator's current
position within its associated list.
Returns an array of at most quantityRequested
FTPFile
objects starting at this object's internal iterator's current position,
and working back toward the beginning.
Get the original FTP server raw listing used to initialize the FTPFile.
Gets the status of the reader thread.
Returns the state of the option on the remote side.
Returns the port number of the remote host to which the client is
connected.
Fetches a reply from the FTP server and returns the integer reply
code.
Fetches a reply from the NNTP server and returns the integer reply
code.
Fetches a reply from the SMTP server and returns the integer reply
code.
Returns the integer value of the reply code of the last FTP reply.
Returns the integer value of the reply code of the last NNTP reply.
Returns the reply code of the received server reply.
Returns the integer value of the reply code of the last SMTP reply.
Returns the entire text of the last FTP server response exactly
as it was received, including all end of line markers in NETASCII
format.
Returns the entire text of the last NNTP server response exactly
as it was received, not including the end of line marker.
Returns the reply to the last command sent to the server.
Returns the entire text of the last SMTP server response exactly
as it was received, including all end of line markers in NETASCII
format.
Returns the lines of text from the last FTP server response as an array
of strings, one entry per line.
Returns an array of lines received as a reply to the last command
sent to the server.
Returns the lines of text from the last SMTP server response as an array
of strings, one entry per line.
Fetches the restart offset.
returns the root cause of this exception or null
if no root cause was specified.
Return the file size in bytes.
Returns the current SO_LINGER timeout of the currently opened socket.
Returns the timeout in milliseconds of the currently opened socket.
Returns the timeout in milliseconds of the currently opened socket.
Returns the current POP3 client state.
Issue the FTP STAT command to the server.
Issue the FTP STAT command to the server for a given pathname.
Returns the size of the stream being copied.
Returns the subject used in the Subject:
header field.
Fetches the system type name from the server and returns the string.
Returns true if Nagle's algorithm is enabled on the currently opened
socket.
Retrieves the time string from the server and returns it.
Return the NNTP query formatted time (hour, minutes, seconds in the form
HHMMSS.
Retrieves the time from the server and returns it.
Same as getTime(host, DaytimeUDPClient.DEFAULT_PORT);
**
Same as getTime(host, DEFAULT_PORT);
**
Retrieves the time string from the specified server and port and
returns it.
Retrieves the time from the specified server and port and
returns it.
Returns the file timestamp.
Returns the total number of bytes transferred so far by the copy
operation.
Returns the total number of bytes confirmed to have
been transferred by a failed copy operation.
Return the type of the file (one of the _TYPE
constants),
e.g., if it is a directory, a regular file, or a symbolic link.
Returns the type of the packet.
Returns the name of the user owning the file.
Returns a boolean indicating whether a WILL request sent to the other
side has been acknowledged.
Convenience method delegates to the internal MatchResult's group()
method.
A convenience method to send the NNTP GROUP command to the server,
receive the reply, and return the reply code.
A constant indicating group access permissions.
Interpret As Command code.
A convenience method to send the NNTP IHAVE command to the server,
receive the reply, and return the reply code.
The illegal TFTP operation error code according to RFC 783, value 4.
A constant used to indicate the file(s) being transfered should
be treated as a binary image, i.e., no translations should be
performed.
resets iterator to the beginning of the list.
true if the option should be activated on the local side
true if the option should be activated on the remote side
Using the default autodetect mechanism, initialize an FTPListParseEngine
object containing a raw file information for the current working
directory on the server
This information is obtained through the LIST command.
private method through which all listFiles() and
initiateListParsing methods pass once a parser is determined.
Using the default autodetect mechanism, initialize an FTPListParseEngine
object containing a raw file information for the supplied directory.
Using the supplied parser key, initialize an FTPListParseEngine
object containing a raw file information for the supplied directory.
The InvalidTelnetOptionException is the exception that is
thrown whenever a TelnetOptionHandler with an invlaid
option code is registered in TelnetClient with addOptionHandler.
Constructor for the exception.
Indicates whether or not the client is allowed to post articles to
the server it is currently connected to.
Returns true if the ProtocolCommandEvent was generated as a result
of sending a command.
Returns true if the client is currently connected to a server.
Returns true if the NetASCII line separator differs from the system
line separator, false if they are the same.
Determine if the file is a directory.
Determine if the file is a regular file.
Return whether or not the query date should be treated as GMT.
Determine if a reply code is an informational response.
Determine if a reply code is a negative permanent response.
Determine if a reply code is a negative permanent response.
Determine if a reply code is a negative permanent response.
Determine if a reply code is a negative transient response.
Determine if a reply code is a negative transient response.
Determine if a reply code is a negative transient response.
Returns true if the client has a currently open socket.
Determine if a reply code is a positive completion response.
Determine if a reply code is a positive completion response.
Determine if a reply code is a positive completion response.
Determine if a reply code is a positive intermediate response.
Determine if a reply code is a positive intermediate response.
Determine if a reply code is a positive intermediate response.
Determine if a reply code is a positive preliminary response.
Determine if a reply code is a positive preliminary response.
Return whether or not verification of the remote host participating
in data connections is enabled.
Return whether or not verification of the remote host providing a
separate error stream is enabled.
Returns true if the ProtocolCommandEvent was generated as a result
of receiving a reply.
Determine if the file is a symbolic link.
Determine if the type of the file is unknown.
Determines if a given command code is valid.
Determines if a given option code is valid.
this iterator's current position within rawlines
.
create an iterator over this list using the parser with which this list
was initally created
create an iterator over this list using the supplied parser
last() - method in class org.apache.commons.net.nntp.
NNTP
A convenience method to send the NNTP LAST command to the server,
receive the reply, and return the reply code.
storage for the raw lines of input read from the FTP server
list() - method in class org.apache.commons.net.ftp.
FTP
A convenience method to send the FTP LIST command to the server,
receive the reply, and return the reply code.
list() - method in class org.apache.commons.net.nntp.
NNTP
A convenience method to send the NNTP LIST command to the server,
receive the reply, and return the reply code.
A convenience method to send the FTP LIST command to the server,
receive the reply, and return the reply code.
A convenience wrapper for the extended LIST command that takes
an argument, allowing us to selectively list multiple groups.
Using the default system autodetect mechanism, obtain a
list of file information for the current working directory.
Using a programmer specified FTPFileListParser
,
obtain a list of file information for the current working directory.
Using a programmer specified FTPFileListParser
, obtain a
list of file information for a directory or information for
just a single file.
Using the default system autodetect mechanism, obtain a
list of file information for the current working directory
or for just a single file.
Using the supplied parserKey
, obtain a list
of file information for the current working directory or for just a
single file.
Fetches the system help information from the server and returns the
full string.
List the command help from the server.
Fetches the system help information from the server and returns the
full string.
Fetches the help information for a given command from the server and
returns the full string.
Fetches the help information for a given command from the server and
returns the full string.
List an individual message.
Obtain a list of filenames in the current working directory
This information is obtained through the NLST command.
Obtain a list of filenames in a directory (or just the name of a given
file, which is not particularly useful).
List all new articles added to the NNTP server since a particular
date subject to the conditions of the specified query.
List all new newsgroups added to the NNTP server since a particular
date subject to the conditions of the specified query.
List all newsgroups served by the NNTP server.
An overloaded listNewsgroups() command that allows us to
specify with a pattern what groups we want to list.
List the unique identifier for a message.
List the unique identifiers for all messages.
A constant used to indicate the file(s) being transfered should
be treated as a local type.
Login to the SMTP server by sending the HELO command with the
client hostname as an argument.
Login to the SMTP server by sending the HELO command with the
given hostname as an argument.
Login to the FTP server using the provided username and password.
Login to the POP3 server with the given username and password.
Login to the FTP server using the provided username, password,
and account.
Login to the POP3 server with the given username and authentication
information.
Logout of the FTP server by sending the QUIT command.
Logs out of the news server gracefully by sending the QUIT command.
Logout of the POP3 server.
Logout of the SMTP server by sending the QUIT command.
The end of line character sequence used by most IETF protocols.
The netascii transfer mode.
The netstat port value of 19.
The netstat port value of 19.
Creates a UDP datagram containing all the TFTP
acknowledgement packet data in the proper format.
Creates a UDP datagram containing all the TFTP
data packet data in the proper format.
Creates a UDP datagram containing all the TFTP
error packet data in the proper format.
Creates a UDP datagram containing all the TFTP packet
data in the proper format.
Creates a UDP datagram containing all the TFTP
request packet data in the proper format.
A convenience method to send the NNTP NEWGROUPS command to the server,
receive the reply, and return the reply code.
The NewGroupsOrNewsQuery class.
Creates a new query using the given time as a reference point.
A convenience method to send the NNTP NEWGROUPS command to the server,
receive the reply, and return the reply code.
When you receive a datagram that you expect to be a TFTP packet, you use
this factory method to create the proper TFTPPacket object
encapsulating the data contained in that datagram.
Returns a single parsed FTPFile object corresponding to the raw input
line at this iterator's current position.
next() - method in class org.apache.commons.net.nntp.
NNTP
A convenience method to send the NNTP NEXT command to the server,
receive the reply, and return the reply code.
nlst() - method in class org.apache.commons.net.ftp.
FTP
A convenience method to send the FTP NLST command to the server,
receive the reply, and return the reply code.
A convenience method to send the FTP NLST command to the server,
receive the reply, and return the reply code.
NNTP - class org.apache.commons.net.nntp.
NNTP
The NNTP class is not meant to be used by itself and is provided
only so that you may easily implement your own NNTP client if
you so desire.
NNTP() - constructor for class org.apache.commons.net.nntp.
NNTP
The default NNTP constructor.
NNTPClient encapsulates all the functionality necessary to post and
retrieve articles from an NNTP server.
NNTPCommand stores a set of constants for NNTP command codes.
NNTPConnectionClosedException is used to indicate the premature or
unexpected closing of an NNTP connection resulting from a
NNTPReply.SERVICE_DISCONTINUED response (NNTP reply code 400) to a
failed NNTP command.
Constructs a NNTPConnectionClosedException with no message **
Constructs a NNTPConnectionClosedException with a specified message.
NNTPReply stores a set of constants for NNTP reply codes.
The no such user error code according to RFC 783, value 7.
A constant used for text files to indicate a non-print text format.
noop() - method in class org.apache.commons.net.ftp.
FTP
A convenience method to send the FTP NOOP command to the server,
receive the reply, and return the reply code.
Send a NOOP command to the POP3 server.
noop() - method in class org.apache.commons.net.smtp.
SMTP
A convenience method to send the SMTP NOOP command to the server,
receive the reply, and return the reply code.
Implementation of FTPFileEntryParser and FTPFileListParser for NT Systems.
The sole constructor for an NTFTPEntryParser object.
The size to use for TFTP packet buffers.
A constant used to indicate a file is to be treated as a set of
independent indexed pages.
Parses an FTP server file listing and converts it into a usable format
in the form of an array of FTPFile
instances.
Parses an FTP server file listing and converts it into a usable format
in the form of an array of FTPFile
instances.
Parses an FTP server file listing and converts it into a usable format
in the form of an array of FTPFile
instances.
Parses a line of a unix FTP server file listing and converts it into a
usable format in the form of an FTPFile
instance.
Parses a line of an FTP server file listing and converts it into a usable
format in the form of an FTPFile
instance.
Delegates to this object's parser member the job of parsing an
entry.
Parses a line of an NT FTP server file listing and converts it into a
usable format in the form of an FTPFile
instance.
Parses a line of an OS2 FTP server file listing and converts it into a
usable format in the form of an FTPFile
instance.
Parses a line of a unix (standard) FTP server file listing and converts
it into a usable format in the form of an FTPFile
instance.
Parses a line of a VMS FTP server file listing and converts it into a
usable format in the form of an FTPFile
instance.
the parser to which this iterator delegates its parsing duties
the FTPFileEntryParser assigned to be used with this lister
This class encapsulates all errors that may be thrown by
the process of an FTPFileEntryParserFactory creating and
instantiating an FTPFileEntryParser.
Constucts a ParserInitializationException with just a message
Constucts a ParserInitializationException with a message
and a root cause.
A convenience method to send the FTP PASS command to the server,
receive the reply, and return the reply code.
A constant indicating the FTP session is expecting all transfers
to occur between the client (local) and server and that the server
is in passive mode, requiring the client to connect to the
server's data port to initiate a transfer.
A constant indicating the FTP session is expecting all transfers
to occur between two remote servers and that the server
the client is connected to is in passive mode, requiring the other
server to connect to the first server's data port to initiate a data
transfer.
pasv() - method in class org.apache.commons.net.ftp.
FTP
A convenience method to send the FTP PASV command to the server,
receive the reply, and return the reply code.
internal pattern the matcher tries to match, representing a file
entry
A constant indicating that a newsgroup is public and unmoderated.
POP3 - class org.apache.commons.net.pop3.
POP3
The POP3 class is not meant to be used by itself and is provided
only so that you may easily implement your own POP3 client if
you so desire.
POP3() - constructor for class org.apache.commons.net.pop3.
POP3
The default POP3Client constructor.
The POP3Client class implements the client side of the Internet POP3
Protocol defined in RFC 1939.
POP3Command stores POP3 command code constants.
POP3MessageInfo is used to return information about messages stored on
a POP3 server.
Creates a POP3MessageInfo instance with number
and
size
set to 0, and identifier
set to
null.
Creates a POP3MessageInfo instance with number
set
to num
, size
set to octets
,
and identifier
set to null.
Creates a POP3MessageInfo instance with number
set
to num
, size
undefined,
and identifier
set to uid
.
POP3Reply stores POP3 reply code constants.
A convenience method to send the FTP PORT command to the server,
receive the reply, and return the reply code.
post() - method in class org.apache.commons.net.nntp.
NNTP
A convenience method to send the NNTP POST command to the server,
receive the reply, and return the reply code.
Post an article to the NNTP server.
This method is a hook for those implementors (such as
VMSVersioningFTPEntryParser, and possibly others) which need to
perform some action upon the FTPFileList after it has been created
from the server stream, but before any clients see the list.
This method is a hook for those implementors (such as
VMSVersioningFTPEntryParser, and possibly others) which need to
perform some action upon the FTPFileList after it has been created
from the server stream, but before any clients see the list.
Implement hook provided for those implementers (such as
VMSVersioningFTPEntryParser, and possibly others) which return
multiple files with the same name to remove the duplicates ..
Returns a single parsed FTPFile object corresponding to the raw input
line at the position preceding that of the internal iterator over
the list of raw lines maintained by this object
After this method is called the internal iterator is retreated by one
element (unless it is already at beginning of list).
Returns the pathname of the current working directory.
A constant indicating that a newsgroup is closed for general posting.
There exists a large class of IETF protocols that work by sending an
ASCII text command and arguments to a server, and then receiving an
ASCII text reply.
Creates a ProtocolCommandEvent signalling a reply to a command was
received.
Creates a ProtocolCommandEvent signalling a command was sent to
the server.
There exists a large class of IETF protocols that work by sending an
ASCII text command and arguments to a server, and then receiving an
ASCII text reply.
This method is invoked by a ProtocolCommandEvent source after
sending a protocol command to a server.
ProtocolCommandSupport is a convenience class for managing a list of
ProtocolCommandListeners and firing ProtocolCommandEvents.
Creates a ProtocolCommandSupport instant using the indicated source
as the source of fired ProtocolCommandEvents.
This method is invoked by a ProtocolCommandEvent source after
receiving a reply from a server.
PWD - static field in class org.apache.commons.net.ftp.
FTPCommand pwd() - method in class org.apache.commons.net.ftp.
FTP
A convenience method to send the FTP PWD command to the server,
receive the reply, and return the reply code.
a vector of strings, each representing a possibly valid ftp file
entry
Same as
rcommand(localUsername, remoteUsername, command, false);
Remotely executes a command through the rshd daemon on the server
to which the RCommandClient is connected.
RCommandClient is very similar to
RExecClient ,
from which it is derived, and implements the rcmd() facility that
first appeared in 4.2BSD Unix.
The default RCommandClient constructor.
A convenience method to send the SMTP RCPT command to the server,
receive the reply, and return the reply code.
Reads and returns the next character in the message.
Reads and returns the next byte in the stream.
Reads and returns the next byte in the stream.
Reads the next number of bytes from the stream into an array and
returns the number of bytes read.
Reads the next number of bytes from the stream into an array and
returns the number of bytes read.
Reads the next number of bytes from the stream into an array and
returns the number of bytes read.
Reads the next number of bytes from the stream into an array and returns
the number of bytes read.
Reads the next number of bytes from the stream into an array and returns
the number of bytes read.
Reads the next number of bytes from the stream into an array and returns
the number of bytes read.
Reads the next characters from the message into an array and
returns the number of characters read.
Reads the next characters from the message into an array and
returns the number of characters read.
A constant indicating file/directory read permission.
This is the actual TFTP spec
identifier and is equal to 1.
Reads the next entry using the supplied BufferedReader object up to
whatever delemits one entry from the next.
Reads the next entry using the supplied BufferedReader object up to
whatever delemits one entry from the next.
Reads the next entry using the supplied BufferedReader object up to
whatever delemits one entry from the next.
handle the iniitial reading and preparsing of the list returned by
the server.
internal method for reading the input into the lines
vector.
Internal method for reading the input into the entries
list.
Determines if the message is ready to be read.
Receive the reply data from the server.
Same as receive(data, data.length)
**
Receives echoed data and returns its length.
The remote party sent a DO command.
The remote party sent a DONT command.
The remote party sent a WILL command.
The remote party sent a WONT command.
Callback method called when TelnetClient receives an option
negotiation command.
Same as calling receiveFile(filename, mode, output, host, TFTP.DEFAULT_PORT).
Requests a named file from a remote host, writes the
file to an OutputStream, closes the connection, and returns the number
of bytes read.
Same as calling receiveFile(filename, mode, output, hostname, TFTP.DEFAULT_PORT).
Requests a named file from a remote host, writes the
file to an OutputStream, closes the connection, and returns the number
of bytes read.
A constant used to indicate a file is to be treated as a sequence
of records.
this is the regular expression used by this parser.
this is the regular expression used by this parser.
this is the regular expression used by this parser.
this is the regular expression used by this parser.
this is the regular expression used by this parser.
This abstract class implements both the older FTPFileListParser and
newer FTPFileEntryParser interfaces with default functionality.
The constructor for a RegexFTPFileEntryParserImpl object.
Registers a notification handler to which will be sent
notifications of received telnet option negotiation commands.
Registers a notification handler to which will be sent
notifications of received telnet option negotiation commands.
Registers an OutputStream for spying what's going on in
the TelnetClient session.
rein() - method in class org.apache.commons.net.ftp.
FTP
A convenience method to send the FTP REIN command to the server,
receive the reply, and return the reply code.
Reinitialize the FTP session.
A class used to represent forward and reverse relay paths.
Create a relay path with the specified email address as the ultimate
destination.
Initiate a server to server file transfer.
Initiate a server to server file transfer.
Initiate a server to server file transfer.
Initiate a server to server file transfer.
Initiate a server to server file transfer.
Unregisters a CopyStreamListener.
Removes a directory on the FTP server (if empty).
Removes a ProtocolCommandListener.
Removes a ProtocolCommandListener.
Removes a ProtocolCommandListener.
Removes a ProtocolCommandListener.
Removes a ProtocolCommandListener.
Aborts the current mail transaction, resetting all server stored
sender, recipient, and mail data, cleaing all buffers and tables.
resets this object's internal iterator to the beginning of the list.
A convenience method to send the FTP REST command to the server,
receive the reply, and return the reply code.
Restart a STREAM_TRANSFER_MODE
file transfer starting
from the given offset.
internal match result used by the parser
A convenience method to send the FTP RETR command to the server,
receive the reply, and return the reply code.
Same as retrieveArticle(null)
**
Same as retrieveArticle(articleNumber, null)
**
Retrieves an article from the currently selected newsgroup.
Same as retrieveArticle(articleId, null)
**
Retrieves an article from the NNTP server.
Same as retrieveArticleBody(null)
**
Same as retrieveArticleBody(articleNumber, null)
**
Retrieves an article body from the currently selected newsgroup.
Same as retrieveArticleBody(articleId, null)
**
Retrieves an article body from the NNTP server.
Same as retrieveArticleHeader(null)
**
Same as retrieveArticleHeader(articleNumber, null)
**
Retrieves an article header from the currently selected newsgroup.
Same as retrieveArticleHeader(articleId, null)
**
Retrieves an article header from the NNTP server.
Return article headers for a specified post.
Return article headers for all articles between lowArticleNumber
and highArticleNumber, inclusively.
Retrieves a named file from the server and writes it to the given
OutputStream.
Returns an InputStream from which a named file from the server
can be read.
Return an article header for a specified post.
Return an article header for all articles between lowArticleNumber
and highArticleNumber, inclusively.
Retrieve a message from the POP3 server.
Retrieve only the specified top number of lines of a message from the
POP3 server.
Same as rexec(username, password, command, false);
Remotely executes a command through the rexecd daemon on the server
to which the RExecClient is connected.
RExecClient implements the rexec() facility that first appeared in
4.2BSD Unix.
The default RExecClient constructor.
Same as the other rlogin method, but no terminal speed is defined.
Logins into a remote machine through the rlogind daemon on the server
to which the RLoginClient is connected.
RLoginClient is very similar to
RCommandClient ,
from which it is derived, and uses the rcmd() facility implemented
in RCommandClient to implement the functionality of the rlogin command that
first appeared in 4.2BSD Unix.
The default RLoginClient constructor.
RMD - static field in class org.apache.commons.net.ftp.
FTPCommand
A convenience method to send the FTP RMD command to the server,
receive the reply, and return the reply code.
A convenience method to send the FTP RNFR command to the server,
receive the reply, and return the reply code.
A convenience method to send the FTP RNTO command to the server,
receive the reply, and return the reply code.
Root exception that caused this to be thrown
rset() - method in class org.apache.commons.net.smtp.
SMTP
A convenience method to send the SMTP RSET command to the server,
receive the reply, and return the reply code.
A convenience method to send the SMTP SAML command to the server,
receive the reply, and return the reply code.
Start subnegotiation code.
The number of seconds between 00:00 1 January 1900 and
00:00 1 January 1970.
The number of seconds between 00:00 1 January 1900 and
00:00 1 January 1970.
The TFTP data packet maximum segment size in bytes.
Same as selectArticle(articleNumber, null)
**
Select an article in the currently selected newsgroup by its number.
Same as selectArticle(null, articleId)
.
Same as selectArticle(articleId, null)
**
Select an article by its unique identifier (including enclosing
< and >) and return its article number and id through the
pointer parameter.
Same as selectNewsgroup(newsgroup, null)
**
Select the specified newsgroup to be the target of for future article
retrieval and posting operations.
Same as selectNextArticle(null)
**
Select the article following the currently selected article in the
currently selected newsgroup and return its number and unique id
through the pointer parameter.
Same as selectPreviousArticle(null)
**
Select the article preceeding the currently selected article in the
currently selected newsgroup and return its number and unique id
through the pointer parameter.
Same as
send(data, data.length, host.
Same as send(data, data.length, host)
**
Same as
send(data, length, host.
Sends the specified data to the specified server at the default echo
port.
Sends the specified data to the specified server at the specified port.
Same as send(host, CharGenUDPClient.DEFAULT_PORT);
**
Sends the data initiation datagram.
Sends a TFTP packet to its destination.
A convenience method to send the SMTP SEND command to the server,
receive the reply, and return the reply code.
Sends an Are You There sequence and waits for the result.
Sends an FTP command with no arguments to the server, waits for a
reply and returns the numerical response code.
Sends an NNTP command with no arguments to the server, waits for a
reply and returns the numerical response code.
Sends a command with no arguments to the server and returns the
reply code.
Sends an SMTP command with no arguments to the server, waits for a
reply and returns the numerical response code.
Sends an FTP command to the server, waits for a reply and returns the
numerical response code.
Sends an NNTP command to the server, waits for a reply and returns the
numerical response code.
Sends a command an arguments to the server and returns the reply code.
Sends an SMTP command to the server, waits for a reply and returns the
numerical response code.
Sends an FTP command with no arguments to the server, waits for a
reply and returns the numerical response code.
Sends an NNTP command with no arguments to the server, waits for a
reply and returns the numerical response code.
Sends a command with no arguments to the server and returns the
reply code.
Sends an SMTP command with no arguments to the server, waits for a
reply and returns the numerical response code.
Sends an FTP command to the server, waits for a reply and returns the
numerical response code.
Sends an NNTP command to the server, waits for a reply and returns the
numerical response code.
Sends a command an arguments to the server and returns the reply code.
Sends an SMTP command to the server, waits for a reply and returns the
numerical response code.
Same as calling sendFile(filename, mode, input, host, TFTP.DEFAULT_PORT).
Requests to send a file to a remote host, reads the file from an
InputStream, sends the file to the remote host, and closes the
connection.
Same as calling sendFile(filename, mode, input, hostname, TFTP.DEFAULT_PORT).
Requests to send a file to a remote host, reads the file from an
InputStream, sends the file to the remote host, and closes the
connection.
Send the SMTP DATA command in preparation to send an email message.
Sends a NOOP command to the FTP server.
Sends a NOOP command to the SMTP server.
A convenience method for sending short messages.
A convenience method for a sending short email without having to
explicitly set the sender and recipient(s).
A convenience method for a sending short email without having to
explicitly set the sender and recipient(s).
Send a site specific command.
Set behaviour of the option for DO requests coming from
the other end.
Set behaviour of the option for WILL requests coming from
the other end.
Sets the host address where the packet is going to be sent.
Sets the block number of the acknowledgement.
Sets the block number of the data packet.
Sets the data for the data packet.
Sets the DatagramSocketFactory used by the DatagramSocketClient
to open DatagramSockets.
Sets the timeout in milliseconds to use when reading from the
data connection.
Sets the default port the SocketClient should connect to when a port
is not specified.
Set the default timeout in milliseconds to use when opening a socket.
Set the default timeout in milliseconds to use when opening a socket.
Tells this option whether a DO request sent to the other
side has been acknowledged (invoked by TelnetClient).
Sets the file type to be transferred.
Sets the file type to be transferred and the format.
Set the name of the group owning the file.
Set the number of hard links to this file.
Tells this option whether to send a WILL request upon connection.
Tells this option whether to send a DO request upon connection.
If the FTPFile is a symbolic link, use this method to set the name of the
file being pointed to by the symbolic link.
Sets the maximum number of times a receive attempt is allowed to
timeout during a receiveFile() or sendFile() operation before ending
attempts to retry the receive and failing.
Set the name of the file.
set the factory used for parser creation to the supplied factory object.
Set if the given access group (one of the _ACCESS
constants) has the given access permission (one of the
_PERMISSION
constants) to the file.
Sets the port where the packet is going to be sent.
Set the original FTP server raw listing from which the FTPFile was
created.
Sets the status of the reader thread.
Enable or disable verification that the remote host taking part
of a data connection is the same as the host to which the control
connection is attached.
Enable or disable verification that the remote host connecting to
create a separate error stream is the same as the host to which
the standard out stream is connected.
Set the sender of a message using the SMTP MAIL command, specifying
a reverse relay path.
Set the sender of a message using the SMTP MAIL command, specifying
the sender's email address.
Set the file size in bytes.
Sets the SocketFactory used by the SocketClient to open socket
connections.
Sets the SO_LINGER timeout on the currently opened socket.
Set the timeout in milliseconds of a currently open connection.
Set the timeout in milliseconds of a currently open connection.
Enables or disables the Nagle's algorithm (TCP_NODELAY) on the
currently opened socket.
Set the type of the file (DIRECTORY_TYPE
,
FILE_TYPE
, etc.).
Set the name of the user owning the file.
Tells this option whether a WILL request sent to the other
side has been acknowledged (invoked by TelnetClient).
This class is used to construct the bare minimum
acceptable header for most news readers.
Creates a new SimpleNNTPHeader instance initialized with the given
from and subject header field values.
Simple option handler that can be used for options
that don't require subnegotiation.
Constructor for the SimpleOptionHandler.
Constructor for the SimpleOptionHandler.
This class is used to construct a bare minimum
acceptable header for an email message.
Creates a new SimpleSMTPHeader instance initialized with the given
from, to, and subject header field values.
A convenience method to send the FTP SITE command to the server,
receive the reply, and return the reply code.
A convenience method to send the FTP SMNT command to the server,
receive the reply, and return the reply code.
SMTP - class org.apache.commons.net.smtp.
SMTP
SMTP provides the basic the functionality necessary to implement your
own SMTP client.
SMTP() - constructor for class org.apache.commons.net.smtp.
SMTP
The default SMTP constructor.
SMTPClient encapsulates all the functionality necessary to send files
through an SMTP server.
SMTPCommand stores a set of constants for SMTP command codes.
SMTPConnectionClosedException is used to indicate the premature or
unexpected closing of an SMTP connection resulting from a
SMTPReply.SERVICE_NOT_AVAILABLE response (SMTP reply code 421) to a
failed SMTP command.
Constructs a SMTPConnectionClosedException with no message **
Constructs a SMTPConnectionClosedException with a specified message.
SMTPReply stores a set of constants for SMTP reply codes.
The SocketClient provides the basic operations that are required of
client objects accessing sockets.
Default constructor for SocketClient.
The SocketFactory interface provides a means for the programmer to
control the creation of sockets and provide his own Socket
implementations for use by all classes derived from
SocketClient .
This class wraps an input stream, storing a reference to its originating
socket.
Creates a SocketInputStream instance wrapping an input stream and
storing a reference to a socket that should be closed on closing
the stream.
This class wraps an output stream, storing a reference to its originating
socket.
Creates a SocketOutputStream instance wrapping an output stream and
storing a reference to a socket that should be closed on closing
the stream.
A convenience method to send the SMTP SOML command to the server,
receive the reply, and return the reply code.
The stream on which to spy
Implements the abstract method of TelnetOptionHandler.
Implements the abstract method of TelnetOptionHandler.
Implements the abstract method of TelnetOptionHandler.
This method is invoked whenever this option is acknowledged active on
the local end (TelnetClient sent a WILL, remote side sent a DO).
Implements the abstract method of TelnetOptionHandler.
Implements the abstract method of TelnetOptionHandler.
Implements the abstract method of TelnetOptionHandler.
Implements the abstract method of TelnetOptionHandler.
This method is invoked whenever this option is acknowledged active on
the remote end (TelnetClient sent a DO, remote side sent a WILL).
Implements the abstract method of TelnetOptionHandler.
stat() - method in class org.apache.commons.net.ftp.
FTP
A convenience method to send the FTP STAT command to the server,
receive the reply, and return the reply code.
stat() - method in class org.apache.commons.net.nntp.
NNTP
A convenience method to send the NNTP STAT command to the server,
receive the initial reply, and return the reply code.
A convenience method to send the NNTP STAT command to the server,
receive the initial reply, and return the reply code.
A convenience method to send the FTP STAT command to the server,
receive the reply, and return the reply code.
A convenience method to send the NNTP STAT command to the server,
receive the initial reply, and return the reply code.
Stops spying this TelnetClient.
A convenience method to send the FTP STOR command to the server,
receive the reply, and return the reply code.
Stores a file on the server using the given name and taking input
from the given InputStream.
Returns an OutputStream through which data can be written to store
a file on the server using the given name.
Stores a file on the server using a unique name assigned by the
server and taking input from the given InputStream.
Stores a file on the server using a unique name derived from the
given name and taking input
from the given InputStream.
Returns an OutputStream through which data can be written to store
a file on the server using a unique name assigned by the server.
Returns an OutputStream through which data can be written to store
a file on the server using a unique name derived from the given name.
stou() - method in class org.apache.commons.net.ftp.
FTP
A convenience method to send the FTP STOU command to the server,
receive the reply, and return the reply code.
A convenience method to send the FTP STOU command to the server,
receive the reply, and return the reply code.
A constant used to indicate a file is to be transfered as a stream
of bytes.
A convenience method to send the FTP STRU command to the server,
receive the reply, and return the reply code.
Issue the FTP SMNT command.
Implements the telnet suppress go ahead option RFC 858.
Constructor for the SuppressGAOptionHandler.
Constructor for the SuppressGAOptionHandler.
A constant indicating an FTPFile is a symbolic link.
syst() - method in class org.apache.commons.net.ftp.
FTP
A convenience method to send the FTP SYST command to the server,
receive the reply, and return the reply code.
The systat port value of 11 according to RFC 866.
The systat port value of 11 according to RFC 866.
This constructor lets you specify the terminal type.
A constant used to indicate a text file contains format vertical format
control characters.
The TelnetClient class implements the simple network virtual
terminal (NVT) for the Telnet protocol according to RFC 854.
Default TelnetClient constructor.
The TelnetCommand class cannot be instantiated and only serves as a
storehouse for telnet command constants.
The TelnetNotificationHandler interface can be used to handle
notification of options negotiation commands received on a telnet
session.
The TelnetOption class cannot be instantiated and only serves as a
storehouse for telnet option constants.
The TelnetOptionHandler class is the base class to be used
for implementing handlers for telnet options.
Constructor for the TelnetOptionHandler.
Send (for subnegotiation)
Send (for subnegotiation)
Implements the telnet terminal type option RFC 1091.
Constructor for the TerminalTypeOptionHandler.
Constructor for the TerminalTypeOptionHandler.
TFTP - class org.apache.commons.net.tftp.
TFTP
The TFTP class exposes a set of methods to allow you to deal with the TFTP
protocol directly, in case you want to write your own TFTP client or
server.
TFTP() - constructor for class org.apache.commons.net.tftp.
TFTP
Creates a TFTP instance with a default timeout of DEFAULT_TIMEOUT,
a null socket, and buffered operations disabled.
A final class derived from TFTPPacket definiing the TFTP Acknowledgement
packet type.
Creates an acknowledgement packet based from a received
datagram.
Creates an acknowledgment packet to be sent to a host at a given port
acknowledging receipt of a block.
The TFTPClient class encapsulates all the aspects of the TFTP protocol
necessary to receive and send files through TFTP.
Creates a TFTPClient instance with a default timeout of DEFAULT_TIMEOUT,
maximum timeouts value of DEFAULT_MAX_TIMEOUTS, a null socket,
and buffered operations disabled.
A final class derived from TFTPPacket definiing the TFTP Data
packet type.
Creates a data packet based from a received
datagram.
Creates a data packet to be sent to a host at a given port
with a given block number.
A final class derived from TFTPPacket definiing the TFTP Error
packet type.
Creates an error packet based from a received
datagram.
Creates an error packet to be sent to a host at a given port
with an error code and error message.
TFTPPacket is an abstract class encapsulating the functionality common
to the 5 types of TFTP packets.
This constructor is not visible outside of the package.
A class used to signify the occurrence of an error in the creation of
a TFTP packet.
Simply calls the corresponding constructor of its superclass.
Simply calls the corresponding constructor of its superclass.
A class derived from TFTPRequestPacket definiing a TFTP read request
packet type.
Creates a read request packet of based on a received
datagram and assumes the datagram has already been identified as a
read request.
Creates a read request packet to be sent to a host at a
given port with a filename and transfer mode request.
An abstract class derived from TFTPPacket definiing a TFTP Request
packet type.
Creates a request packet of a given type to be sent to a host at a
given port with a filename and transfer mode request.
Creates a request packet of a given type based on a received
datagram.
A class derived from TFTPRequestPacket definiing a TFTP write request
packet type.
Creates a write request packet of based on a received
datagram and assumes the datagram has already been identified as a
write request.
Creates a write request packet to be sent to a host at a
given port with a filename and transfer mode request.
The TimeTCPClient class is a TCP implementation of a client for the
Time protocol described in RFC 868.
The default TimeTCPClient constructor.
The TimeUDPClient class is a UDP implementation of a client for the
Time protocol described in RFC 868.
This class wraps an input stream, replacing all singly occurring
<LF> (linefeed) characters with <CR><LF> (carriage return
followed by linefeed), which is the NETASCII standard for representing
a newline.
Creates a ToNetASCIIInputStream instance that wraps an existing
InputStream.
This class wraps an output stream, replacing all singly occurring
<LF> (linefeed) characters with <CR><LF> (carriage return
followed by linefeed), which is the NETASCII standard for representing
a newline.
Creates a ToNetASCIIOutputStream instance that wraps an existing
OutputStream.
Retrieve top number lines from message.
Returns a string representation of the FTPFile information.
Return the properly formatted string representation of the relay path.
Converts the SimpleNNTPHeader to a properly formatted header in
the form of a String, including the blank line used to separate
the header from the article body.
Converts the SimpleSMTPHeader to a properly formatted header in
the form of a String, including the blank line used to separate
the header from the article body.
A constant representing the POP3 transaction state.
turn() - method in class org.apache.commons.net.smtp.
SMTP
A convenience method to send the SMTP TURN command to the server,
receive the reply, and return the reply code.
A convenience method to send the FTP TYPE command to the server,
receive the reply, and return the reply code.
A convenience method to send the FTP TYPE command for text files
to the server, receive the reply, and return the reply code.