public class Connector extends Object
Modifier and Type | Method and Description |
---|---|
void |
disconnect() |
String[] |
getBundles() |
String[] |
getCommands() |
Reader |
getIn() |
PrintWriter |
getOut() |
Socket |
getSocket() |
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() |
public Connector(String host, int port)
public 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
IOException
public void disconnect()
public Socket getSocket()
Copyright © 2013 Nuxeo SA. All Rights Reserved.