Package org.restlet.engine.connector
Class FtpClientHelper
java.lang.Object
org.restlet.engine.Helper
org.restlet.engine.RestletHelper<T>
org.restlet.engine.connector.ConnectorHelper<Client>
org.restlet.engine.connector.ClientHelper
org.restlet.engine.connector.FtpClientHelper
Deprecated.
Will be removed in the next 2.7/3.0 release.
FTP client connector using the
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. |
- Author:
- Jerome Louvel
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.Returns the read timeout value.intDeprecated.Returns the connection timeout.voidDeprecated.Handles a call.booleanDeprecated.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.booleanDeprecated.Indicates if the protocol is allowed to use caching whenever it can.voidstart()Deprecated.Start callback.voidstop()Deprecated.Stop callback.Methods inherited from class org.restlet.engine.connector.ConnectorHelper
getConnectorService, getContext, getProtocols, updateMethods inherited from class org.restlet.engine.RestletHelper
getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped
-
Constructor Details
-
FtpClientHelper
Deprecated.Constructor.- Parameters:
client- The client to help.
-
-
Method Details
-
getReadTimeout
public int getReadTimeout()Deprecated.Returns the read timeout value. A timeout of zero is interpreted as an infinite timeout.- Returns:
- The read timeout value.
-
getSocketConnectTimeoutMs
public int getSocketConnectTimeoutMs()Deprecated.Returns the connection timeout. Defaults to 15000.- Returns:
- The connection timeout.
-
handle
Deprecated.Description copied from class:RestletHelperHandles a call.- Overrides:
handlein classRestletHelper<Client>- Parameters:
request- The request to handle.response- The response to update.
-
isAllowUserInteraction
public boolean isAllowUserInteraction()Deprecated.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.- Returns:
- True if it makes sense to allow user interactions.
-
isUseCaches
public boolean isUseCaches()Deprecated.Indicates if the protocol is allowed to use caching whenever it can.- Returns:
- True if the protocol is allowed to use caching whenever it can.
-
start
Deprecated.Description copied from class:RestletHelperStart callback.- Overrides:
startin classConnectorHelper<Client>- Throws:
Exception
-
stop
Deprecated.Description copied from class:RestletHelperStop callback.- Overrides:
stopin classConnectorHelper<Client>- Throws:
Exception
-