Class Get


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

      • Get

        public Get​(String url,
                   int connectTimeout,
                   int readTimeout)
        Constructor for making GET requests.
        Parameters:
        url - URL of resource.
        connectTimeout - connection timeout.
        readTimeout - read timeout.
    • Method Detail

      • doConnect

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

        public static void main​(String[] args)