|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restlet.util.Helper<T>
com.noelios.restlet.ConnectorHelper<Client>
com.noelios.restlet.ClientHelper
com.noelios.restlet.local.LocalClientHelper
public class LocalClientHelper
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). |
| defaultLanguage | String | When no metadata service is available (simple client connector with no parent application), falls back on this default language. To indicate that no default language should be set, "*" or "" can be used. |
LocalReference| Constructor Summary | |
|---|---|
LocalClientHelper(Client client)
Constructor. |
|
| Method Summary | |
|---|---|
String |
getDefaultLanguage()
Returns the default language. |
MetadataService |
getMetadataService(Request request)
Returns the metadata service associated to a request. |
int |
getTimeToLive()
Returns the time to live for a file representation before it expires (in seconds). |
void |
updateMetadata(MetadataService metadataService,
String entryName,
Variant variant)
Updates some variant metadata based on a given entry name with extensions. |
| Methods inherited from class com.noelios.restlet.ClientHelper |
|---|
getConnectTimeout, setConnectTimeout |
| Methods inherited from class com.noelios.restlet.ConnectorHelper |
|---|
getProtocols, start, stop, update |
| Methods inherited from class org.restlet.util.Helper |
|---|
getAttributes, getContext, getHelped, getHelpedParameters, getLogger, handle, setHelped |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalClientHelper(Client client)
client - The client to help.| Method Detail |
|---|
public String getDefaultLanguage()
public MetadataService getMetadataService(Request request)
request - The request to lookup.
public int getTimeToLive()
public void updateMetadata(MetadataService metadataService,
String entryName,
Variant variant)
metadataService - The parent metadata service.entryName - The entry name with extensions.variant - The variant to update.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||