Interface Client<Request,​Response>

    • Method Detail

      • connect

        void connect​(java.net.InetAddress address,
                     int port,
                     int timeout)
              throws java.io.IOException,
                     java.lang.Exception

        connect

        Type Parameters:
        Request - a Request object.
        Response - a Response object.
        Parameters:
        address - a InetAddress object.
        port - a int.
        timeout - a int.
        Throws:
        java.io.IOException - if any.
        java.lang.Exception - if any.
      • receiveBanner

        Response receiveBanner()
                        throws java.io.IOException,
                               java.lang.Exception

        receiveBanner

        Returns:
        a Response object.
        Throws:
        java.io.IOException - if any.
        java.lang.Exception - if any.
      • sendRequest

        Response sendRequest​(Request request)
                      throws java.io.IOException,
                             java.lang.Exception

        sendRequest

        Parameters:
        request - a Request object.
        Returns:
        a Response object.
        Throws:
        java.io.IOException - if any.
        java.lang.Exception - if any.
      • close

        void close()

        close

        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable