Package org.restlet.ext.osgi
Class ObapClientHelper
- java.lang.Object
-
- org.restlet.engine.Helper
-
- org.restlet.engine.RestletHelper<T>
-
- org.restlet.engine.connector.ConnectorHelper<org.restlet.Client>
-
- org.restlet.engine.connector.ClientHelper
-
- org.restlet.engine.local.LocalClientHelper
-
- org.restlet.ext.osgi.ObapClientHelper
-
public class ObapClientHelper extends org.restlet.engine.local.LocalClientHelper
Connector to the resources accessed via bundles.- Author:
- Thierry Boileau
-
-
Constructor Summary
Constructors Constructor Description ObapClientHelper(org.restlet.Client client)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
clear()
Clears the registry of bundles.protected void
handleBundle(org.restlet.Request request, org.restlet.Response response, org.osgi.framework.Bundle bundle)
/** Handles a call with a given bundle.protected void
handleLocal(org.restlet.Request request, org.restlet.Response response, java.lang.String decodedPath)
static boolean
register(org.osgi.framework.Bundle bundle)
Registers the given bundle.-
Methods inherited from class org.restlet.engine.local.LocalClientHelper
getDefaultLanguage, getTimeToLive, handle
-
Methods inherited from class org.restlet.engine.connector.ConnectorHelper
getConnectorService, getContext, getProtocols, start, stop, update
-
-
-
-
Method Detail
-
clear
public static void clear()
Clears the registry of bundles.
-
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.
-
handleBundle
protected void handleBundle(org.restlet.Request request, org.restlet.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(org.restlet.Request request, org.restlet.Response response, java.lang.String decodedPath)
- Specified by:
handleLocal
in classorg.restlet.engine.local.LocalClientHelper
-
-