public class GpClient extends Object implements Client<GpRequest,GpResponse>
GpClient class.
Constructor and Description |
---|
GpClient() |
Modifier and Type | Method and Description |
---|---|
void |
close()
close
|
void |
connect(InetAddress address,
int port,
int timeout)
connect
|
String |
getArgs()
getArgs
|
String |
getBanner()
getBanner
|
String |
getError()
getError
|
int |
getExitStatus()
getExitStatus
|
String |
getHoption()
getHoption
|
String |
getMatch()
getMatch
|
String |
getResponse()
getResponse
|
String |
getScript()
getScript
|
String |
getToption()
getToption
|
GpResponse |
receiveBanner()
receiveBanner
|
GpResponse |
sendRequest(GpRequest request)
sendRequest
|
void |
setArgs(String args)
setArgs
|
void |
setBanner(String banner)
setBanner
|
void |
setError(String error)
setError
|
void |
setExitStatus(int exitStatus)
setExitStatus
|
void |
setHoption(String hoption)
setHoption
|
void |
setMatch(String match)
setMatch
|
void |
setResponse(String response)
setResponse
|
void |
setScript(String script)
setScript
|
void |
setToption(String toption)
setToption
|
public void close()
close
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Client<GpRequest,GpResponse>
public void connect(InetAddress address, int port, int timeout) throws IOException, Exception
connect
connect
in interface Client<GpRequest,GpResponse>
address
- a InetAddress
object.port
- a int.timeout
- a int.IOException
- if any.Exception
- if any.public GpResponse receiveBanner() throws IOException, Exception
receiveBanner
receiveBanner
in interface Client<GpRequest,GpResponse>
GpResponse
object.IOException
- if any.Exception
- if any.public GpResponse sendRequest(GpRequest request) throws IOException, Exception
sendRequest
sendRequest
in interface Client<GpRequest,GpResponse>
request
- a GpRequest
object.GpResponse
object.IOException
- if any.Exception
- if any.public void setExitStatus(int exitStatus)
setExitStatus
exitStatus
- a int.public int getExitStatus()
getExitStatus
public void setResponse(String response)
setResponse
response
- a String
object.Copyright © 2018. All rights reserved.