Skip to main content

FTPConfig

Definição da configuração do FTP.


getConnectTimeout


getConnectTimeout() : int

Description

Returns the conection timeout of the current object.

Return

( int )

conection timeout of the current object.


getHost


getHost() : string

Description

Returns host of the current object.

Return

( string )

Host of the current object.


getPassword


getPassword() : string

Description

Returns the password of the current object.

Return

( string )

Password of the current object.


getPort


getPort() : int

Description

Returns the port of the current object.

Return

( int )

Port of the current object.


getUsername


getUsername() : string

Description

Returns the username of the current object.

Return

( string )

Username of the current object.


isDebug


isDebug() : boolean

Description

Returns whether debugging is active or not.

Return

( boolean )

Whether debugging is active or not.


isEnabled


isEnabled() : boolean

Description

Returns the state of the object, whether it is not activated.

Return

( boolean )

Results whether the object is active or not.


isPassiveMode


isPassiveMode() : boolean

Description

Returns whether modo passivo is active on the current object.

Return

( boolean )

Whether it is active or inactive on the current object.


isSSL


isSSL() : boolean

Description

Returns whether SSL is active on the current object.

Return

( boolean )

Whether it is active or inactive on the current object.


isSecureImplicit


isSecureImplicit() : boolean

Description

Returns whether FTPS implícito is active on the current object.

Return

( boolean )

Whether it is active or inactive on the current object.


isTLS


isTLS() : boolean

Description

Returns whether TSL is active on the current object.

Return

( boolean )

Whether it is active or inactive on the current object.


setConnectTimeout


setConnectTimeout(conectionTimeout: int) : FTPConfig

Description

Defines the conection timeout of the current object.

Attributes
NAMETYPEDESCRIPTION
conectionTimeoutintConection timeout to be defined.
Return

( FTPConfig )

Returns the current object.


setDebug


setDebug(enabled: boolean) : FTPConfig

Description

Defines whether it is activated or not.

Attributes
NAMETYPEDESCRIPTION
enabledbooleanWhether it is active or inactive.
Return

( FTPConfig )

Current object.


setEnabled


setEnabled(enabled: boolean) : FTPConfig

Description

Defines the state of the object, whether it is activated or not.

Attributes
NAMETYPEDESCRIPTION
enabledbooleanWhether it is active or inactive.
Return

( FTPConfig )

Current object.


setHost


setHost(host: string) : FTPConfig

Description

Defines the host of the current object.

Attributes
NAMETYPEDESCRIPTION
hoststringHost to be defined.
Return

( FTPConfig )

Returns the current object.


setPassiveMode


setPassiveMode(enabled: boolean) : FTPConfig

Description

Defines whether modo passivo is active or inactive on the current object.

Attributes
NAMETYPEDESCRIPTION
enabledbooleanWhether it is active or inactive.
Return

( FTPConfig )

Returns the current object.


setPassword


setPassword(password: string) : FTPConfig

Description

Defines the password of the current object.

Attributes
NAMETYPEDESCRIPTION
passwordstringPassword to be defined.
Return

( FTPConfig )

Returns the current object.


setPort


setPort(port: int) : FTPConfig

Description

Defines the port of the current object.

Attributes
NAMETYPEDESCRIPTION
portintPort to be defined.
Return

( FTPConfig )

Returns the current object.


setSSL


setSSL(enabled: boolean) : FTPConfig

Description

Defines whether SSL is active or inactive on the current object.

Attributes
NAMETYPEDESCRIPTION
enabledbooleanWhether it is active or inactive.
Return

( FTPConfig )

Returns the current object.


setSecureImplicit


setSecureImplicit(enabled: boolean) : FTPConfig

Description

Defines whether FTPS implícito is active or inactive on the current object.

Attributes
NAMETYPEDESCRIPTION
enabledbooleanWhether it is active or inactive.
Return

( FTPConfig )

Returns the current object.


setTLS


setTLS(enabled: boolean) : FTPConfig

Description

Defines whether TSL is active or inactive on the current object.

Attributes
NAMETYPEDESCRIPTION
enabledbooleanWhether it is active or inactive.
Return

( FTPConfig )

Returns the current object.


setUsername


setUsername(username: string) : FTPConfig

Description

Defines the username of the current object.

Attributes
NAMETYPEDESCRIPTION
usernamestringUsername to be defined.
Return

( FTPConfig )

Returns the current object.