org.apache.sling.testing.tools.osgi
Class WebconsoleClient

java.lang.Object
  extended by org.apache.sling.testing.tools.osgi.WebconsoleClient

public class WebconsoleClient
extends Object

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

JSON_KEY_DATA

public static final String JSON_KEY_DATA
See Also:
Constant Field Values

JSON_KEY_STATE

public static final String JSON_KEY_STATE
See Also:
Constant Field Values

CONSOLE_BUNDLES_PATH

public static final String CONSOLE_BUNDLES_PATH
See Also:
Constant Field Values
Constructor Detail

WebconsoleClient

public WebconsoleClient(String slingServerUrl,
                        String username,
                        String password)
Method Detail

installBundle

public void installBundle(File f,
                          boolean startBundle)
                   throws Exception
Install a bundle using the Felix webconsole HTTP interface

Throws:
Exception

checkBundleInstalled

public 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.


getBundleState

public String getBundleState(String symbolicName)
                      throws Exception
Get specified bundle state

Throws:
Exception

startBundle

public void startBundle(String symbolicName)
                 throws Exception
Start specified bundle

Throws:
Exception


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.