Class Put


  • public class Put
    extends Request<Put>
    Executes a PUT request.
    Author:
    Igor Polevoy
    • Constructor Detail

      • Put

        public Put​(String url,
                   byte[] content,
                   int connectTimeout,
                   int readTimeout)
        Constructor for making PUT requests.
        Parameters:
        url - URL of resource.
        content - content to be "put" into a resource.
        connectTimeout - connection timeout.
        readTimeout - read timeout.
    • Method Detail

      • doConnect

        public Put doConnect()
        Description copied from class: Request
        Makes a connection to the remote resource.
        Specified by:
        doConnect in class Request<Put>
        Returns:
        self.
      • main

        public static void main​(String[] args)