FTP Directory Listing Parsers

Identifier:
org.eclipse.rse.subsystems.files.ftp.ftpListingParsers

Since:
RSE 2.0

Description:
Extension point that allows providing extra parsers for the FTP LIST command output. Apache commons net provides some APIs and factories to costumize the parser and this extension provides an easy way to setup a custom parser and integrate it into RSE. The provided extension points will be available as a list in the property "FTP Settings", allowing the user to select them overriding the default parser. The string attributes defaultDateFormatStr recentDateFormatStr serverLanguageCode serverTimeZoneId shortMonthNames have to follow the format described by org.apache.commons.net.ftp.FTPClientConfig Each parser can also specify one or more FTP commands to be sent after establishing the connection in the initCommands attribute.

Configuration Markup:

<!ELEMENT extension (parser)+>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED

>


<!ELEMENT parser (initCommand)*>

<!ATTLIST parser

id                   CDATA #REQUIRED

label                CDATA #REQUIRED

class                CDATA #REQUIRED

defaultDateFormatStr CDATA #IMPLIED

recentDateFormatStr  CDATA #IMPLIED

serverLanguageCode   CDATA #IMPLIED

shortMonthNames      CDATA #IMPLIED

serverTimeZoneId     CDATA #IMPLIED

systemTypeRegex      CDATA #IMPLIED

priority             CDATA #IMPLIED

listCommandModifiers CDATA #IMPLIED

>


<!ELEMENT initCommand EMPTY>

<!ATTLIST initCommand

cmd CDATA #REQUIRED

>

FTP initialization command to perform after connecting to the remote server, when the server's system type is detected to match the current listing parser.



Examples:

Supplied Implementation:
Customized VMS and WinNT implementations are supplied in the org.eclipse.rse.subsystems.files.ftp plug-in.


Copyright (c) 2007, 2008 Symbian Software Ltd. and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: Javier Montalvo Orus (Symbian) - initial API and implementation Javier Montalvo Orus (Symbian) - added ftpSystemTypes and priority Javier Montalvo Orus (Symbian) - [212382] additional "initCommands" slot for ftpListingParsers extension point