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 void
close()
closevoid
connect(InetAddress address, int port, int timeout)
connectResponse
receiveBanner()
receiveBannerResponse
sendRequest(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
- aInetAddress
object.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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
-