public abstract class LocalClientHelper extends ClientHelper
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 and Description |
---|
LocalClientHelper(Client client)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.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,
java.lang.String decodedPath)
Handles a local call.
|
getConnectorService, getContext, getProtocols, start, stop, update
getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped
public LocalClientHelper(Client client)
client
- The client to help.public java.lang.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.Copyright © 2005-2020 Restlet.