org.apache.commons.net.tftp

Class TFTPRequestPacket

public abstract class TFTPRequestPacket extends TFTPPacket

An abstract class derived from TFTPPacket definiing a TFTP Request packet type. It is subclassed by the TFTPReadRequestPacket and TFTPWriteRequestPacket classes.

Details regarding the TFTP protocol and the format of TFTP packets can be found in RFC 783. But the point of these classes is to keep you from having to worry about the internals. Additionally, only very few people should have to care about any of the TFTPPacket classes or derived classes. Almost all users should only be concerned with the TFTPClient class receiveFile() and sendFile() methods.

Author: Daniel F. Savarese

See Also: TFTPPacket TFTPReadRequestPacket TFTPWriteRequestPacket TFTPPacketException

Method Summary
StringgetFilename()
Returns the requested filename.
intgetMode()
Returns the transfer mode of the request.

Method Detail

getFilename

public final String getFilename()
Returns the requested filename.

Returns: The requested filename.

getMode

public final int getMode()
Returns the transfer mode of the request.

Returns: The transfer mode of the request.