Data Request Broker
2-3-release

fr.gael.drb.impl.ftp
Class FtpFactory

java.lang.Object
  extended by fr.gael.drb.impl.ftp.FtpFactory
All Implemented Interfaces:
DrbFactoryImpl

public class FtpFactory
extends Object
implements DrbFactoryImpl

Factory of FTP nodes. This class implements the DrbFactoryImpl interface to create drb.impl.ftp.FtpNode nodes. This factory is not supposed to be used directly from any component but has been designed for the fr.gael.drb.Factory class.


Constructor Summary
FtpFactory()
           
 
Method Summary
 String getIdentifier()
          FTP identifier.
 String getName()
          The name of the ftp implementation.
 DrbNode open(DrbNode base_node)
          FTP root node from an existing node.
 DrbNode open(URL url)
          FTP root node matching a given URI.
 DrbNode open(URL uri, DrbNode base_node)
          FTP node matching a given URI from an existing node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FtpFactory

public FtpFactory()
Method Detail

getIdentifier

public String getIdentifier()
FTP identifier. The indentifier of this implementation is "ftp".

Specified by:
getIdentifier in interface DrbFactoryImpl
Returns:
"ftp" string.

getName

public String getName()
The name of the ftp implementation. The explicit name of the implementation is "ftp protocol"

Specified by:
getName in interface DrbFactoryImpl
Returns:
"ftp protocol".

open

public DrbNode open(URL url)
FTP root node matching a given URI. Not supported.

Specified by:
open in interface DrbFactoryImpl
Parameters:
url - considered.
Returns:
DrbNode the ftp node

open

public DrbNode open(DrbNode base_node)
FTP root node from an existing node. The provided base node shall exist and it shall be able to provide a FileInputStream implementation.

Specified by:
open in interface DrbFactoryImpl
Parameters:
base_node - The node to be considered in input.
Returns:
DrbNode the ftp node

open

public DrbNode open(URL uri,
                    DrbNode base_node)
FTP node matching a given URI from an existing node. This operation does not consider the uri parameter and delegate the node creation to the open(DrbNode baseNode) operation.

Specified by:
open in interface DrbFactoryImpl
Parameters:
uri - considered here.
base_node - The input node to be used as context or base.
Returns:
A root node or null if an error occured or if the implementation does not supports URI or the input node.

Data Request Broker - DRB API®
2-3-release

Copyright© 2001-2009 GAEL Consultant. All rights reserved. Use is subject to license terms .