public class FtpClientHelper extends ClientHelper
URLConnection. 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 |
|---|---|---|---|
| allowUserInteraction | boolean | false | If true, this URL is being examined in a context in which it makes sense to allow user interactions such as popping up an authentication dialog. |
| readTimeout | int | 60000 | Sets the read timeout to a specified timeout, in milliseconds. A timeout of zero is interpreted as an infinite timeout. |
| useCaches | boolean | false | If true, the protocol is allowed to use caching whenever it can. |
| Constructor and Description |
|---|
FtpClientHelper(Client client)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getReadTimeout()
Returns the read timeout value.
|
int |
getSocketConnectTimeoutMs()
Returns the connection timeout.
|
void |
handle(Request request,
Response response)
Handles a call.
|
boolean |
isAllowUserInteraction()
Indicates if this URL is being examined in a context in which it makes sense
to allow user interactions such as popping up an authentication dialog.
|
boolean |
isUseCaches()
Indicates if the protocol is allowed to use caching whenever it can.
|
void |
start()
Start callback.
|
void |
stop()
Stop callback.
|
getConnectorService, getContext, getProtocols, updategetAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelpedpublic FtpClientHelper(Client client)
client - The client to help.public int getReadTimeout()
public int getSocketConnectTimeoutMs()
public void handle(Request request, Response response)
RestletHelperhandle in class RestletHelper<Client>request - The request to handle.response - The response to update.public boolean isAllowUserInteraction()
public boolean isUseCaches()
public void start()
throws Exception
RestletHelperstart in class ConnectorHelper<Client>Exceptionpublic void stop()
throws Exception
RestletHelperstop in class ConnectorHelper<Client>ExceptionCopyright © 2005–2025. All rights reserved.