|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sling.testing.tools.osgi.WebconsoleClient
public class WebconsoleClient
HTTP Client for the Felix webconsole - simplistic for now
| Field Summary | |
|---|---|
static String |
CONSOLE_BUNDLES_PATH
|
static String |
JSON_KEY_DATA
|
static String |
JSON_KEY_STATE
|
| Constructor Summary | |
|---|---|
WebconsoleClient(String slingServerUrl,
String username,
String password)
|
|
| Method Summary | |
|---|---|
void |
checkBundleInstalled(String symbolicName,
int timeoutSeconds)
Check that specified bundle is installed - must be called before other methods that take a symbolicName parameter, in case installBundle was just called and the actual installation hasn't happened yet. |
String |
getBundleState(String symbolicName)
Get specified bundle state |
void |
installBundle(File f,
boolean startBundle)
Install a bundle using the Felix webconsole HTTP interface |
void |
startBundle(String symbolicName)
Start specified bundle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String JSON_KEY_DATA
public static final String JSON_KEY_STATE
public static final String CONSOLE_BUNDLES_PATH
| Constructor Detail |
|---|
public WebconsoleClient(String slingServerUrl,
String username,
String password)
| Method Detail |
|---|
public void installBundle(File f,
boolean startBundle)
throws Exception
Exception
public void checkBundleInstalled(String symbolicName,
int timeoutSeconds)
public String getBundleState(String symbolicName)
throws Exception
Exception
public void startBundle(String symbolicName)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||