| com.noelios.restlet.ClientHelper com.noelios.restlet.local.LocalClientHelper
All known Subclasses: com.noelios.restlet.local.ClapClientHelper, com.noelios.restlet.local.FileClientHelper,
LocalClientHelper | public class LocalClientHelper extends ClientHelper (Code) | | Connector to the local resources accessible via file system, class loaders
and similar mechanisms. Here is the list of parameters that are supported:
Parameter name |
Value type |
Default value |
Description |
timeToLive |
int |
600 |
Time to live for a file representation before it expires (in seconds). |
See Also: org.restlet.data.LocalReference author: Jerome Louvel (contact@noelios.com) author: Thierry Boileau |
LocalClientHelper | public LocalClientHelper(Client client)(Code) | | Constructor. Note that the common list of metadata associations based on
extensions is added, see the addCommonExtensions() method.
Parameters: client - The client to help. |
getMetadataService | public MetadataService getMetadataService(Request request)(Code) | | Returns the metadata service associated to a request.
Parameters: request - The request to lookup. The metadata service associated to a request. |
getTimeToLive | public int getTimeToLive()(Code) | | Returns the time to live for a file representation before it expires (in
seconds).
The time to live for a file representation before it expires (inseconds). |
updateMetadata | public void updateMetadata(MetadataService metadataService, String entryName, Variant variant)(Code) | | Updates some variant metadata based on a given entry name with
extensions.
Parameters: metadataService - The parent metadata service. Parameters: entryName - The entry name with extensions. Parameters: variant - The variant to update. |
|
|