public interface Client<Request,Response> extends Closeable
Client interface.
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()
close 
 | 
void | 
connect(InetAddress address,
       int port,
       int timeout)
connect 
 | 
Response | 
receiveBanner()
receiveBanner 
 | 
Response | 
sendRequest(Request request)
sendRequest 
 | 
void connect(InetAddress address, int port, int timeout) throws IOException, Exception
connect
Request - a Request object.Response - a Response object.address - a InetAddress object.port - a int.timeout - a int.IOException - if any.Exception - if any.Response receiveBanner() throws IOException, Exception
receiveBanner
IOException - if any.Exception - if any.Response sendRequest(Request request) throws IOException, Exception
sendRequest
request - a Request object.IOException - if any.Exception - if any.void close()
close
close in interface AutoCloseableclose in interface CloseableCopyright © 2020. All rights reserved.