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 PrintWriter out
public static Connector newConnector(String address)
protected void initConnection() throws IOException
IOExceptionpublic String[] getBundles()
public String[] getCommands()
public PrintWriter getOut()
public void println()
public String sendCurrentCommand()
public String readAll() throws IOException
IOExceptionpublic void disconnect()
Copyright © 2019 Nuxeo. All rights reserved.