public class Connector extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String[] |
commands |
protected Reader |
in |
protected PrintWriter |
out |
protected Socket |
socket |
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect() |
String[] |
getBundles() |
String[] |
getCommands() |
Reader |
getIn() |
PrintWriter |
getOut() |
Socket |
getSocket() |
protected void |
initConnection() |
static Connector |
newConnector(String address) |
void |
println() |
void |
println(String text) |
String |
readAll()
Get the response and remove the ending "osgi>" if present - also trim the
string before returning.
|
String |
send(String command) |
String |
sendCurrentCommand() |
protected String[] commands
protected Socket socket
protected Reader in
protected PrintWriter out
public Connector(String host, int port)
protected void initConnection()
throws IOException
IOExceptionpublic String[] getBundles()
public String[] getCommands()
public Reader getIn()
public PrintWriter getOut()
public void println(String text)
public void println()
public String sendCurrentCommand()
public String readAll() throws IOException
IOExceptionpublic void disconnect()
public Socket getSocket()
Copyright © 2020 Nuxeo SA. All rights reserved.