public class LoopClient extends Object implements Client<LineOrientedRequest,LoopResponse>
LoopClient class.
Constructor and Description |
---|
LoopClient() |
Modifier and Type | Method and Description |
---|---|
void |
close()
close
|
void |
connect(InetAddress address,
int port,
int timeout)
connect
|
boolean |
isSupported()
isSupported
|
LoopResponse |
receiveBanner()
receiveBanner
|
LoopResponse |
sendRequest(LineOrientedRequest request)
sendRequest
|
void |
setSupported(boolean isSupported)
setSupported
|
public void close()
close
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Client<LineOrientedRequest,LoopResponse>
public void connect(InetAddress address, int port, int timeout) throws IOException, Exception
connect
connect
in interface Client<LineOrientedRequest,LoopResponse>
address
- a InetAddress
object.port
- a int.timeout
- a int.IOException
- if any.Exception
- if any.public LoopResponse receiveBanner() throws IOException, Exception
receiveBanner
receiveBanner
in interface Client<LineOrientedRequest,LoopResponse>
LoopResponse
object.IOException
- if any.Exception
- if any.public LoopResponse sendRequest(LineOrientedRequest request) throws IOException, Exception
sendRequest
sendRequest
in interface Client<LineOrientedRequest,LoopResponse>
request
- a LineOrientedRequest
object.LoopResponse
object.IOException
- if any.Exception
- if any.public void setSupported(boolean isSupported)
setSupported
isSupported
- a boolean.public boolean isSupported()
isSupported
Copyright © 2018. All rights reserved.