Class TFTPRequestPacket

    • Method Detail

      • getFilename

        public final java.lang.String getFilename()
        Gets the requested file name.
        Returns:
        The requested file name.
      • getMode

        public final int getMode()
        Gets the transfer mode of the request.
        Returns:
        The transfer mode of the request.
      • getOptions

        public final java.util.Map<java.lang.String,​java.lang.String> getOptions()
        Gets the options extensions of the request as a map. The keys are the option names and the values are the option values.
        Returns:
        The options extensions of the request as a map.
        Since:
        3.12.0
      • newDatagram

        public final java.net.DatagramPacket newDatagram()
        Creates a UDP datagram containing all the TFTP request packet data in the proper format. This is a method exposed to the programmer in case he wants to implement his own TFTP client instead of using the TFTPClient class. Under normal circumstances, you should not have a need to call this method.
        Specified by:
        newDatagram in class TFTPPacket
        Returns:
        A UDP datagram containing the TFTP request packet.