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.Closeable
Client interface.
- Version:
- $Id: $
- Author:
- brozow
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
closevoid
connect(java.net.InetAddress address, int port, int timeout)
connectResponse
receiveBanner()
receiveBannerResponse
sendRequest(Request request)
sendRequest
-
-
-
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
- aInetAddress
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 interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
-