org.restlet.ext.osgi
Class ObapClientHelper
java.lang.Object
org.restlet.engine.Helper
org.restlet.engine.RestletHelper<T>
org.restlet.engine.connector.ConnectorHelper<Client>
org.restlet.engine.connector.ClientHelper
org.restlet.engine.local.LocalClientHelper
org.restlet.ext.osgi.ObapClientHelper
public class ObapClientHelper
- extends LocalClientHelper
Connector to the resources accessed via bundles.
- Author:
- Thierry Boileau
Method Summary |
static void |
clear()
Clears the registry of bundles. |
protected void |
handleBundle(Request request,
Response response,
org.osgi.framework.Bundle bundle)
/** Handles a call with a given bundle. |
protected void |
handleLocal(Request request,
Response response,
String decodedPath)
|
static boolean |
register(org.osgi.framework.Bundle bundle)
Registers the given bundle. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObapClientHelper
public ObapClientHelper(Client client)
- Constructor.
- Parameters:
client
- The client to help.
register
public static boolean register(org.osgi.framework.Bundle bundle)
- Registers the given bundle.
- Parameters:
bundle
- The bundle to register.
- Returns:
- True if the bundle was successfully registered.
clear
public static void clear()
- Clears the registry of bundles.
handleBundle
protected void handleBundle(Request request,
Response response,
org.osgi.framework.Bundle bundle)
- /** Handles a call with a given bundle.
- Parameters:
request
- The request to handle.response
- The response to update.bundle
- The bundle to look for representations from.
handleLocal
protected void handleLocal(Request request,
Response response,
String decodedPath)
- Specified by:
handleLocal
in class LocalClientHelper
Copyright © 2005-2014 Restlet.