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.
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.
Add comment (error/warning) to list of comments associated
with processing of NTP parameters.
Registers a CopyStreamListener to receive CopyStreamEvents.
Add a distribution group to the query.
Adds an arbitrary header key and value to this message's header.
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.
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.
Adds a message-id to the list of messages that this message references (i.e.
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.
Method called upon reception of a subnegotiation for this option
coming from the other end.
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.
This is a class that contains the basic state needed for message retrieval and threading.
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.
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.
Compares this TimeStamp to another Object.
Compares two Timestamps numerically.
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 (
sendMessageData
)
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.
Compute and validate details of the NTP message packet.
This interface adds the aspect of configurability by means of
a supplied FTPClientConfig object to other classes in the
system, especially listing parsers.
To change the template for this generated type comment go to
Window - Preferences - Java - Code Style - Code Templates - Comments
Only constructor for this absract class.
Implementation of the Configurable
interface.
Implementation of the Configurable
interface.
Implementation of the Configurable
interface.
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 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 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 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.
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.
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.
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.
Implementation extracts a key from the supplied
FTPClientConfig
parameter and creates an object implementing the
interface FTPFileEntryParser and uses the supplied configuration
to configure it.
Implementation should be a method that extracts
a key from the supplied FTPClientConfig
parameter and creates an object implementing the
interface FTPFileEntryParser and uses the supplied configuration
to configure it.
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.
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 on a given local
address with a given maximum queue length for incoming connections.
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.
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
request packet data in the proper format.
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.
Convert NTP timestamp hexstring (e.g.
The default character encoding used for communicating over an
FTP control connection.
The default buffer size used by copyStream
and copyReader
.
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 recent date format.
the default default date format.
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.
A constant indicating an FTPFile is a directory.
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.
Disconnects the socket connection.
A constant representing the state where the client is not yet connected
to a POP3 server.
Request to use option code.
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.
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.
Return AUTH command use value.
Returns the block number of the acknowledgement.
Returns the block number of the data packet.
Retrieve the current internal buffer size.
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 FTPS 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.
Return list of comments (if any) during processing of NTP packet.
Get the underlying socket connection timeout.
Constructs a NTP timestamp object and initializes it so that
it represents the time at which it was allocated, measured to the
nearest millisecond.
Returns the byte array containing the packet data.
Returns the current data connection mode (one of the
_DATA_CONNECTION_MODE
constants.
Returns the datagram packet with the NTP details already filled in.
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.
Convert NTP timestamp to Java Date object.
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 a DateFormatSymbols object configured with short month names
as in the supplied string
Each concrete subclass must define this member to create
a default configuration to be used when that subclass is
instantiated without a FTPClientConfig
parameter being specified.
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.
Get round-trip network delay.
Return the comma separated list of distributions.
Returns the names of the cipher suites which could be enabled
for use on this connection.
Returns the names of the protocol versions which are currently
enabled for use on this connection.
Returns true if new SSL sessions may be established by this socket.
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 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.
Returns low-order 32-bits representing the fractional seconds.
Returns the address used in the From:
header field.
Returns the name of the group owning the file.
For debugging purposes - returns a string shows each match group by
number.
Return the number of hard links to this file.
Returns 32-bit integer address to IPv4 address string "%d.%d.%d.%d" format.
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.
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.
Returns leap indicator as defined in RFC-1305 which is a two-bit code:
0=no warning
1=last minute has 61 seconds
2=last minute has 59 seconds
3=alarm condition (clock not synchronized)
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.
Returns the entire message sent to or received from the server.
Returns the error message of the packet.
Returns NTP message packet.
Returns mode as defined in RFC-1305 which is a 3-bit integer
whose value is indicated by the MODE_xxx parameters.
Returns the transfer mode of the request.
Return human-readable name of message mode type as described in
RFC 1305.
Return human-readable name of message mode type (RFC 1305).
Returns the TFTP string representation of a TFTP transfer mode.
Issue the FTP MDTM command (not supported by all servers to retrieve the last
modification time of a file.
Return the name of the file.
Returns true if the socket will require client authentication.
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 object's internal iterator's current position.
Helper method to convert Java time to NTP timestamp object.
Get clock offset needed to adjust local clock to match remote clock.
Returns the string representation of the telnet protocol option
corresponding to the given option code.
Returns the option code for this option.
Returns the originate time as defined in RFC-1305.
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.
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 poll interval as defined in RFC-1305, which is an eight-bit
signed integer indicating the maximum interval between successive
messages, in seconds to the nearest power of two (e.g.
Returns the port where the packet is going to be sent
or where it came from.
Get the posting permission of the newsgroup.
Returns precision as defined in RFC-1305 encoded as an 8-bit signed
integer (seconds to nearest power of two).
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 receive timestamp as defined in RFC-1305.
Returns NTP packet reference identifier as IP address.
Get refId as reference clock string (e.g.
Returns the reference id as defined in RFC-1305, which is
a 32-bit integer whose value is dependent on several criteria.
Returns the reference id string.
Returns the MessageId references as an array of Strings
Returns the reference time as defined in RFC-1305.
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 time at which time message packet was received by local machine.
returns the root cause of this exception or null
if no root cause was specified.
Return root delay as defined in RFC-1305, which is the total roundtrip delay
to the primary reference source, in seconds.
Return root delay as defined in RFC-1305 in milliseconds, which is
the total roundtrip delay to the primary reference source, in
seconds.
Returns root dispersion as defined in RFC-1305.
Returns root dispersion (as defined in RFC-1305) in milliseconds.
Returns root dispersion (as defined in RFC-1305) in milliseconds
as double precision value.
Returns high-order 32-bits representing the seconds of this NTP timestamp.
Getter for the serverSystemKey property.
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 Stratum as defined in RFC-1305, which indicates the stratum level
of the local clock, with values defined as follows: 0=unspecified,
1=primary ref clock, and all others a secondary reference (via NTP).
Returns the size of the stream being copied.
Returns the subject used in the Subject:
header field.
Returns a Collection of all the language codes currently supported
by this class.
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.
Convert NTP timestamp to Java standard time.
Retrieves the time from the server and returns it.
Same as getTime(host, DaytimeUDPClient.DEFAULT_PORT);
**
Retrieves the time information from the specified server on the
default NTP port and returns it.
Same as getTime(host, DEFAULT_PORT);
**
Retrieves the time string from the specified server and port and
returns it.
Retrieves the time information from the specified server and port and
returns it.
Retrieves the time from the specified server and port and
returns it.
Convert 64-bit NTP timestamp to Java standard time.
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.
Returns the transmit timestamp as defined in RFC-1305.
Get the currently configured TrustManager
.
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.
Return type of time packet.
Return type of time packet.
Returns the type of the packet.
Returns true if the socket is set to use client mode
in its first handshake.
Returns the name of the user owning the file.
Returns the NTP protocol version number that client sets on request packet
that is sent to remote host (e.g.
Returns NTP version number as defined in RFC-1305.
Returns true if the socket will request client authentication.
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.
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.
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.
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.
Computes a hashcode for this Timestamp.
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.
I carry out an ftp command.
Implements the abstract method of TelnetOptionHandler.
Implements the abstract method of TelnetOptionHandler.
Implements the abstract method of TelnetOptionHandler.
Implements the abstract method of TelnetOptionHandler.
Implements the abstract method of TelnetOptionHandler.
Implements the abstract method of TelnetOptionHandler.
Implements the abstract method of TelnetOptionHandler.
Implements the abstract method of TelnetOptionHandler.
Implements the abstract method of TelnetOptionHandler.
Implements the abstract method of TelnetOptionHandler.
Implements the abstract method of TelnetOptionHandler.
Implements the abstract method of TelnetOptionHandler.
Implements the abstract method of TelnetOptionHandler.
Implements the abstract method of TelnetOptionHandler.
Implements the abstract method of TelnetOptionHandler.
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.
Return whether strict multiline parsing is enabled, as per RFX 959, section 4.2.
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.
Return an Iterator
for the EventListener
instances
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.
Implementation of FTPFileEntryParser and FTPFileListParser for Netware Systems.
The default constructor for a NetwareFTPEntryParser object.
This constructor allows the creation of an NetwareFTPEntryParser object
with something other than the default configuration.
Creates a UDP datagram containing all the TFTP 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.
NewsgroupInfo stores information pertaining to a newsgroup returned by
the NNTP GROUP, LIST, and NEWGROUPS commands, implemented by
selectNewsgroup
,
listNewsgroups
, and
listNewNewsgroups
respectively.
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.
next - field in class org.apache.commons.net.nntp.
Article 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.
This constructor allows the creation of an NTFTPEntryParser object
with something other than the default configuration.
Default NTP date string format.
The NTPUDPClient class is a UDP implementation of a client for the
Network Time Protocol (NTP) described in RFC 1305 as well as the
Simple Network Time Protocol (SNTP) in RFC-2030.
Common NtpUtils Helper class.
Implementation of NtpV3Packet with methods converting Java objects to/from
the Network Time Protocol (NTP) data message header format described in RFC-1305.
Creates a new instance of NtpV3Impl
Interface for a NtpV3Packet with get/set methods corresponding to the fields
in the NTP Data Message Header described in RFC 1305.
Returns the value of this Timestamp as a long value.
Some Linux distributions are now shipping an FTP server which formats
file listing dates in an all-numeric format:
"yyyy-MM-dd HH:mm
.
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 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.
Parses a line of an z/OS - MVS FTP server file listing and converts it
into a usable format in the form of an FTPFile
instance.
Parses a line of an NetwareFTP server file listing and converts it into a
usable format in the form of an FTPFile
instance.
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.
Parses the string argument as a NTP hexidecimal timestamp representation string
(e.g.
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.
This method is called by the concrete parsers to delegate
timestamp parsing to the timestamp parser.
Parses the supplied datestamp parameter.
Implements the one method
in the FTPTimestampParser
interface
according to this algorithm:
If the recentDateFormat member has been defined, try to parse the
supplied string with that.
Implements the one method
in the FTPTimestampParser
interface
according to this algorithm:
If the recentDateFormat member has been defined, try to parse the
supplied string with that.
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.
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.
This is a support class for some of the example programs.
Recursive method that traverses a pre-threaded graph (or tree)
of connected Article objects and prints them out.
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.
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.
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.
handle the iniitial reading and preparsing of the list returned by
the server.
handle the iniitial reading and preparsing of the list returned by
the server.
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 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 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.
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.
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.
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(null, articleId)
.
Same as selectArticle(articleNumber, null)
**
Select an article in the currently selected newsgroup by its number.
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, length, host.
Sends the specified data to the specified server at the specified port.
Same as send(host, CharGenUDPClient.DEFAULT_PORT);
**
Sends the data initiation datagram.
A convenience method to send the SMTP SEND command to the server,
receive the reply, and return the reply code.
Sends a TFTP packet to its destination.
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.
Set AUTH command use value.
Sets the block number of the acknowledgement.
Sets the block number of the data packet.
Set the internal buffer size.
Sets the connection timeout in milliseconds, which will be passed to the Socket
object's
connect() method.
Sets the character encoding used by the FTP control connection.
Sets the data for the data packet.
Set the contents of this object from source datagram packet.
Set the contents of this object from the datagram packet
Sets the DatagramSocketFactory used by the DatagramSocketClient
to open DatagramSockets.
Sets the timeout in milliseconds to use when reading from the
data connection.
setter for the defaultDateFormatStr property.
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.
Controls which particular cipher suites are enabled for use on this
connection.
Controls which particular protocol versions are enabled for use on this
connection.
Controls whether new a SSL session may be established by this socket.
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.
Set leap indicator as defined in RFC-1305.
setter for the lenientFutureDates property.
If the FTPFile is a symbolic link, use this method to set the name of the
file being pointed to by the symbolic link.
You can set this to true if you would like to get hidden files when listFiles
too.
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 mode as defined in RFC-1305.
Set mode as defined in RFC-1305
Set the name of the file.
Configures the socket to require client authentication.
Set originate timestamp given NTP TimeStamp object.
Set originate timestamp given NTP TimeStamp object.
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.
Set poll interval as defined in RFC-1305.
Set poll interval as defined in RFC-1305.
Sets the port where the packet is going to be sent.
Set precision as defined in RFC-1305.
Set the original FTP server raw listing from which the FTPFile was
created.
Sets the status of the reader thread.
Sets the underlying socket receive buffer size.
Set receive timestamp given NTP TimeStamp object.
Set receive timestamp given NTP TimeStamp object.
setter for the recentDateFormatStr property.
Set reference clock identifier field with 32-bit unsigned integer value.
Set reference clock identifier field.
Set Reference time with NTP timestamp.
Set the reference timestamp given NTP TimeStamp object.
Alter the current regular expression being utilised for entry parsing
and create a new Pattern
instance.
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 underlying socket send buffer size.
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.
setter for the serverLanguageCode property.
Sets the ServerSocketFactory used by the SocketClient to open ServerSocket
connections.
setter for the serverTimeZoneId property.
setter for the shortMonthNames property.
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.
Set stratum level as defined in RFC-1305.
Set stratum as defined in RFC-1305
Set strict multiline parsing.
Enables or disables the Nagle's algorithm (TCP_NODELAY) on the
currently opened socket.
Set transmit time with NTP timestamp.
Set the transmit timestamp given NTP TimeStamp object.
Override the default TrustManager
to use.
Set the type of the file (DIRECTORY_TYPE
,
FILE_TYPE
, etc.).
Configures the socket to use client (or server) mode in its first
handshake.
Set the name of the user owning the file.
Sets the NTP protocol version number that client sets on request packet
communicate with remote host.
Set NTP version as defined in RFC-1305.
Set version as defined in RFC-1305
Configures the socket to request client authentication,
but only if such a request is appropriate to the cipher
suite negotiated.
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.
Overloaded constructor where the user may specify a default encoding.
SMTPClient encapsulates all the functionality necessary to send files
through an SMTP server.
Default SMTPClient constructor.
Overloaded constructor that takes an encoding specification
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.
Returns a socket of the data connection.
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.
Creates a Socket connected to the given host and port and
originating from the specified local address and port.
The SocketClient provides the basic operations that are required of
client objects accessing sockets.
Default constructor for 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.
This method is invoked whenever this option is acknowledged active on
the local end (TelnetClient sent a WILL, remote side sent a DO).
This method is invoked whenever this option is acknowledged active on
the remote end (TelnetClient sent a DO, remote side sent a WILL).
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.
This is used to signal whether a block of multiline responses beginning
with xxx must be terminated by the same numeric code xxx
See section 4.2 of RFX 959 for details.
Gets the error message of ths exception.
Reads the next entry using the supplied BufferedReader object up to
whatever delemits one entry from the next.
Returns a string representation of the FTPFile information.
Returns details of NTP packet as a string.
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.
Converts this TimeStamp
object to a String
.
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.
A class that performs some subnet calculations given a network address and a subnet mask.
Constructor that takes a CIDR-notation string, e.g.
Constructor that takes two dotted decimal addresses.
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.
Identifier by which an AS/400-based ftp server is known throughout
the commons-net ftp system.
Some servers return an "UNKNOWN Type: L8" message
in response to the SYST command.
Identifier by which an MVS-based ftp server is known throughout
the commons-net ftp system.
Identifier by which an Netware-based ftp server is known throughout
the commons-net ftp system.
Identifier by which a WindowsNT-based ftp server is known throughout
the commons-net ftp system.
Identifier by which an OS/2-based ftp server is known throughout
the commons-net ftp system.
Identifier by which an OS/400-based ftp server is known throughout
the commons-net ftp system.
Identifier by which a unix-based ftp server is known throughout
the commons-net ftp system.
Identifier by which a vms-based ftp server is known throughout
the commons-net ftp system.
The systat port value of 11 according to RFC 866.
The systat port value of 11 according to RFC 866.
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 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 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 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.
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 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.
A class derived from TFTPRequestPacket definiing a TFTP write request
packet type.
Creates a write request packet to be sent to a host at a
given port with a filename and transfer mode request.
The main threader entry point - The client passes in an array of Threadable objects, and
the Threader constructs a connected 'graph' of messages
A placeholder interface for threadable message objects
Author: Rory Winston <rwinston@checkfree.com>
This is an implementation of a message threading algorithm, as originally devised by Zamie Zawinski.
Wrapper class to network time packet messages (NTP, etc) that computes
related timing info and stats.
Create TimeInfo object with raw packet message and destination time received.
Create TimeInfo object with raw packet message and destination time received.
Create TimeInfo object with raw packet message and destination time received.
Create TimeInfo object with raw packet message and destination time received.
TimeStamp class represents the Network Time Protocol (NTP) timestamp
as defined in RFC-1305 and SNTP (RFC-2030).
Constructs a newly allocated NTP timestamp object
that represents the Java Date argument.
Constructs a newly allocated NTP timestamp object
that represents the native 64-bit long argument.
Constructs a newly allocated NTP timestamp object
that represents the value represented by the string
in hexdecimal form (e.g.
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.
Converts this
TimeStamp
object to a
String
of the form:
EEE, MMM dd yyyy HH:mm:ss.SSS
See java.text.SimpleDataFormat for code descriptions.
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.
Converts Java time to 64-bit NTP time representation.
Retrieve top number lines from message.
Converts 64-bit NTP timestamp value to a String
.
Converts this
TimeStamp
object to a
String
of the form:
EEE, MMM dd yyyy HH:mm:ss.SSS UTC
See java.text.SimpleDataFormat for code descriptions.
A constant representing the POP3 transaction state.
truststore algorithm name.
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.
Verify that a username or email address is valid, i.e., that mail
can be delivered to that mailbox on the server.
Verifies that the remote end of the given socket is connected to the
the same host that the SocketClient is currently connected to.
Implementation FTPFileEntryParser and FTPFileListParser for VMS Systems.
Constructor for a VMSFTPEntryParser object.
This constructor allows the creation of a VMSFTPEntryParser object with
something other than the default configuration.
Special implementation VMSFTPEntryParser with versioning turned on.
Constructor for a VMSFTPEntryParser object.
This constructor allows the creation of a VMSVersioningFTPEntryParser
object with something other than the default configuration.
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.
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.
Handles special connection requirements.
Registers a new TelnetOptionHandler for this telnet client to use.
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.
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 specified local address and 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 specified local address and port.
Unregisters a TelnetOptionHandler.
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 telnet session, closing the input and output streams
as well as the socket.
Flushes the underlying output, writing all buffered output.
Registers a notification handler to which will be sent
notifications of received telnet option negotiation commands.
Same as send(data, data.length, host)
**
Sends the specified data to the specified server at the default echo
port.
Unregisters the current notification handler.
Writes a byte array to the stream.
Writes a byte array to the stream.
Writes a byte array to the stream.
Writes a number of bytes from a byte array to the stream starting from
a given offset.
Writes a number of bytes from a byte array to the stream starting from
a given offset.
Writes a number of bytes from a byte array to the stream starting from
a given offset.
Writes a number of bytes from a byte array to the stream starting from
a given offset.
Writes a character array to the output.
Writes a number of characters from a character array to the output
starting from a given offset.
Writes a character to the output.
Writes a byte to the stream.
Writes a byte to the stream.
Writes a byte to the stream.
Writes a String to the output.
Writes part of a String to the output starting from a given offset.
A convenience method to send the SMTP VRFY command to the server,
receive the reply, and return the reply code.