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, update
getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped
public FtpClientHelper(Client client)
client
- The client to help.public int getReadTimeout()
public int getSocketConnectTimeoutMs()
public void handle(Request request, Response response)
RestletHelper
handle
in class RestletHelper<Client>
request
- The request to handle.response
- The response to update.public boolean isAllowUserInteraction()
public boolean isUseCaches()
public void start() throws java.lang.Exception
RestletHelper
start
in class ConnectorHelper<Client>
java.lang.Exception
public void stop() throws java.lang.Exception
RestletHelper
stop
in class ConnectorHelper<Client>
java.lang.Exception
Copyright © 2005-2024 Restlet.