| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.net.tftp.TFTPPacket
org.apache.commons.net.tftp.TFTPRequestPacket
public abstract class TFTPRequestPacket
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.
 
TFTPPacket, 
TFTPReadRequestPacket, 
TFTPWriteRequestPacket, 
TFTPPacketException, 
TFTP| Field Summary | 
|---|
| Fields inherited from class org.apache.commons.net.tftp.TFTPPacket | 
|---|
| ACKNOWLEDGEMENT, DATA, ERROR, READ_REQUEST, SEGMENT_SIZE, WRITE_REQUEST | 
| Method Summary | |
|---|---|
|  String | getFilename()Returns the requested filename. | 
|  int | getMode()Returns the transfer mode of the request. | 
|  DatagramPacket | newDatagram()Creates a UDP datagram containing all the TFTP request packet data in the proper format. | 
| Methods inherited from class org.apache.commons.net.tftp.TFTPPacket | 
|---|
| getAddress, getPort, getType, newTFTPPacket, setAddress, setPort | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public final DatagramPacket newDatagram()
TFTPClient
 class.  Under normal circumstances, you should not have a need to call
 this method.
 
newDatagram in class TFTPPacketpublic final int getMode()
public final String getFilename()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||