|
Restlet Framework 2.2.1 OSGi Environments |
|||||||||
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.connector.ConnectorHelper<Client>
org.restlet.engine.connector.ClientHelper
org.restlet.engine.connector.FtpClientHelper
public class FtpClientHelper
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 | 0 | 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 Summary | |
---|---|
FtpClientHelper(Client client)
Constructor. |
Method Summary | |
---|---|
int |
getReadTimeout()
Returns the read timeout value. |
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. |
Methods inherited from class org.restlet.engine.connector.ClientHelper |
---|
getSocketConnectTimeoutMs |
Methods inherited from class org.restlet.engine.connector.ConnectorHelper |
---|
getConnectorService, getContext, getProtocols, 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 FtpClientHelper(Client client)
client
- The client to help.Method Detail |
---|
public int getReadTimeout()
public boolean isAllowUserInteraction()
public boolean isUseCaches()
public void handle(Request request, Response response)
RestletHelper
handle
in class RestletHelper<Client>
request
- The request to handle.response
- The response to update.public void start() throws Exception
RestletHelper
start
in class ConnectorHelper<Client>
Exception
public void stop() throws Exception
RestletHelper
stop
in class ConnectorHelper<Client>
Exception
|
Restlet Framework 2.2.1 OSGi Environments |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |