Interface Client<Request,Response>
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
BSFClient,DatagramClient,DhcpClient,DominoIIOPClient,GpClient,JDBCClient,LdapDetectorClient,LdapsDetectorClient,LineOrientedClient,LoopClient,MSExchangeDetectorClient,MultilineOrientedClient,NrpeClient,NsclientClient,NtpClient,RadiusDetectorClient,SmbClient,SshClient,SSLClient,TrivialTimeClient,WebClient
public interface Client<Request,Response> extends Closeable
Client interface.
- Version:
- $Id: $
- Author:
- brozow
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()closevoidconnect(InetAddress address, int port, int timeout)connectResponsereceiveBanner()receiveBannerResponsesendRequest(Request request)sendRequest
-
-
-
Method Detail
-
connect
void connect(InetAddress address, int port, int timeout) throws IOException, Exception
connect
- Type Parameters:
Request- a Request object.Response- a Response object.- Parameters:
address- aInetAddressobject.port- a int.timeout- a int.- Throws:
IOException- if any.Exception- if any.
-
receiveBanner
Response receiveBanner() throws IOException, Exception
receiveBanner
- Returns:
- a Response object.
- Throws:
IOException- if any.Exception- if any.
-
sendRequest
Response sendRequest(Request request) throws IOException, Exception
sendRequest
- Parameters:
request- a Request object.- Returns:
- a Response object.
- Throws:
IOException- if any.Exception- if any.
-
close
void close()
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-