|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.engine.Helper
org.restlet.engine.RestletHelper<T>
org.restlet.engine.ConnectorHelper<Client>
org.restlet.engine.ClientHelper
org.restlet.engine.local.LocalClientHelper
public abstract 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. They should be set in the Client's context before it is started:
Parameter name | Value type | Default value | Description |
---|---|---|---|
timeToLive | int | 600 | Time to live for a representation before it expires (in seconds). If you set the value to '0', the representation will never expire. |
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, "" can be used. |
LocalReference
Constructor Summary | |
---|---|
LocalClientHelper(Client client)
Constructor. |
Method Summary | |
---|---|
String |
getDefaultLanguage()
Returns the default language. |
int |
getTimeToLive()
Returns the time to live for a file representation before it expires (in seconds). |
void |
handle(Request request,
Response response)
Handles a call. |
protected abstract void |
handleLocal(Request request,
Response response,
String decodedPath)
Handles a local call. |
Methods inherited from class org.restlet.engine.ClientHelper |
---|
getSocketConnectTimeoutMs |
Methods inherited from class org.restlet.engine.ConnectorHelper |
---|
getConnectorService, getContext, getProtocols, start, stop, update |
Methods inherited from class org.restlet.engine.RestletHelper |
---|
getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, 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 int getTimeToLive()
public final void handle(Request request, Response response)
handle
in class RestletHelper<Client>
request
- The request to handle.response
- The response to update.protected abstract void handleLocal(Request request, Response response, String decodedPath)
request
- The request to handle.response
- The response to update.decodedPath
- The decoded local path.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |