|
||||||||||
| 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_ID
|
static String |
JSON_KEY_STATE
|
static String |
JSON_KEY_VERSION
|
| 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. |
long |
getBundleId(String symbolicName)
Get bundle id |
String |
getBundleState(String symbolicName)
Get specified bundle state |
String |
getBundleVersion(String symbolicName)
Get bundle version |
void |
installBundle(File f,
boolean startBundle)
Install a bundle using the Felix webconsole HTTP interface, with a specific start level |
void |
installBundle(File f,
boolean startBundle,
int startLevel)
Install a bundle using the Felix webconsole HTTP interface, with a specific start level |
void |
startBundle(String symbolicName)
Start specified bundle |
void |
uninstallBundle(String symbolicName,
File f)
|
| 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_ID
public static final String JSON_KEY_VERSION
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 uninstallBundle(String symbolicName,
File f)
throws Exception
Exception
public void installBundle(File f,
boolean startBundle)
throws Exception
Exception
public void installBundle(File f,
boolean startBundle,
int startLevel)
throws Exception
Exception
public void checkBundleInstalled(String symbolicName,
int timeoutSeconds)
public long getBundleId(String symbolicName)
throws Exception
Exception
public String getBundleVersion(String symbolicName)
throws Exception
Exception
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 | |||||||||