public class JDBCClient extends Object implements Client<JDBCRequest,JDBCResponse>
JDBCClient class.
Constructor and Description |
---|
JDBCClient() |
Modifier and Type | Method and Description |
---|---|
void |
close()
close
|
void |
connect(InetAddress address,
int port,
int timeout)
connect
|
String |
getDbDriver()
getDbDriver
|
String |
getPassword()
getPassword
|
String |
getUrl()
getUrl
|
String |
getUser()
getUser
|
JDBCResponse |
receiveBanner()
receiveBanner
|
JDBCResponse |
sendRequest(JDBCRequest request)
sendRequest
|
void |
setDbDriver(String dbDriver)
setDbDriver
|
void |
setPassword(String password)
setPassword
|
void |
setUrl(String url)
setUrl
|
void |
setUser(String user)
setUser
|
public void close()
close
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Client<JDBCRequest,JDBCResponse>
public void connect(InetAddress address, int port, int timeout) throws IOException, Exception
connect
connect
in interface Client<JDBCRequest,JDBCResponse>
address
- a InetAddress
object.port
- a int.timeout
- a int.IOException
- if any.Exception
- if any.public JDBCResponse receiveBanner() throws IOException, Exception
receiveBanner
receiveBanner
in interface Client<JDBCRequest,JDBCResponse>
JDBCResponse
object.IOException
- if any.Exception
- if any.public JDBCResponse sendRequest(JDBCRequest request) throws IOException, Exception
sendRequest
sendRequest
in interface Client<JDBCRequest,JDBCResponse>
request
- a JDBCRequest
object.JDBCResponse
object.IOException
- if any.Exception
- if any.public void setDbDriver(String dbDriver)
setDbDriver
dbDriver
- a String
object.public void setPassword(String password)
setPassword
password
- a String
object.Copyright © 2020. All rights reserved.