Package org.restlet.engine.local
Class ClapClientHelper
- 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.engine.local.ClapClientHelper
-
public class ClapClientHelper extends LocalClientHelper
Connector to the resources accessed via class loaders. Note that if you use the class authority for your CLAP URIs, you can provide a custom classloader instead of the one of the connector. For this, your requests need to have a "org.restlet.clap.classLoader" attribute set with the instance of your classloader and use theLocalReference.CLAP_CLASSauthority.
-
-
Constructor Summary
Constructors Constructor Description ClapClientHelper(Client client)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidhandleClassLoader(Request request, Response response, java.lang.ClassLoader classLoader)Handles a call with a given class loader.protected voidhandleLocal(Request request, Response response, java.lang.String decodedPath)Handles a local call.-
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
-
Methods inherited from class org.restlet.engine.RestletHelper
getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped
-
-
-
-
Constructor Detail
-
ClapClientHelper
public ClapClientHelper(Client client)
Constructor.- Parameters:
client- The client to help.
-
-
Method Detail
-
handleClassLoader
protected void handleClassLoader(Request request, Response response, java.lang.ClassLoader classLoader)
Handles a call with a given class loader.- Parameters:
request- The request to handle.response- The response to update.
-
handleLocal
protected void handleLocal(Request request, Response response, java.lang.String decodedPath)
Description copied from class:LocalClientHelperHandles a local call.- Specified by:
handleLocalin classLocalClientHelper- Parameters:
request- The request to handle.response- The response to update.decodedPath- The decoded local path.
-
-