cgl.narada.gridapps.nbgridftp.gridftpext
Class NBGridFTPControlChannel

java.lang.Object
  extended by org.globus.ftp.vanilla.BasicClientControlChannel
      extended by org.globus.ftp.vanilla.FTPControlChannel
          extended by org.globus.ftp.extended.GridFTPControlChannel
              extended by cgl.narada.gridapps.nbgridftp.gridftpext.NBGridFTPControlChannel

public class NBGridFTPControlChannel
extends org.globus.ftp.extended.GridFTPControlChannel


Field Summary
 
Fields inherited from class org.globus.ftp.extended.GridFTPControlChannel
authorization, credentials, TIMEOUT
 
Fields inherited from class org.globus.ftp.vanilla.FTPControlChannel
CRLF, ftpIn, ftpOut, hasBeenOpened, host, port, rawFtpIn, socket
 
Constructor Summary
NBGridFTPControlChannel(InputStream in, OutputStream out)
           
NBGridFTPControlChannel(String host, int port)
           
 
Method Summary
 void authenticate(GSSCredential credential)
          Performs authentication with specified user credentials.
 org.globus.ftp.HostPort readFromProxy()
           
 void write2Proxy(String msg, boolean finish)
           
 
Methods inherited from class org.globus.ftp.extended.GridFTPControlChannel
getAuthorization, getCredentials, setAuthorization, setCredentials
 
Methods inherited from class org.globus.ftp.vanilla.FTPControlChannel
close, exchange, execute, finalize, getBufferedReader, getHost, getOutputStream, getPort, hasBeenOpened, haveStreams, open, read, readInitialReplies, setInputStream, setOutputStream, waitFor, write, writeln, writeStr
 
Methods inherited from class org.globus.ftp.vanilla.BasicClientControlChannel
waitFor
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NBGridFTPControlChannel

public NBGridFTPControlChannel(String host,
                               int port)

NBGridFTPControlChannel

public NBGridFTPControlChannel(InputStream in,
                               OutputStream out)
Method Detail

write2Proxy

public void write2Proxy(String msg,
                        boolean finish)

readFromProxy

public org.globus.ftp.HostPort readFromProxy()

authenticate

public void authenticate(GSSCredential credential)
                  throws IOException,
                         org.globus.ftp.exception.ServerException
Performs authentication with specified user credentials.

Overrides:
authenticate in class org.globus.ftp.extended.GridFTPControlChannel
Parameters:
credential - user credentials to use.
Throws:
IOException - on i/o error
org.globus.ftp.exception.ServerException - on server refusal or faulty server behavior


For comments and suggestions please send e-mail to The NaradaBrokering Project