Interface Client<Request,Response>
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.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 java.io.CloseableClient interface.
- Version:
- $Id: $
- Author:
- brozow
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()closevoidconnect(java.net.InetAddress address, int port, int timeout)connectResponsereceiveBanner()receiveBannerResponsesendRequest(Request request)sendRequest
-
-
-
Method Detail
-
connect
void connect(java.net.InetAddress address, int port, int timeout) throws java.io.IOException, java.lang.Exceptionconnect
- Type Parameters:
Request- a Request object.Response- a Response object.- Parameters:
address- aInetAddressobject.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:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
-