org.kuali.common.util.channel.api
Interface SecureChannel

All Known Implementing Classes:
DefaultSecureChannel

public interface SecureChannel


Method Summary
 void close()
           
 void createDirectory(RemoteFile dir)
           
 void deleteFile(String absolutePath)
           
 List<CommandResult> exec(CommandContext... contexts)
           
 CommandResult exec(CommandContext context)
           
 List<CommandResult> exec(String... commands)
          Pass each command to a remote server as a sequence of bytes encoded using UTF-8
 CommandResult exec(String command)
          Pass this command to a remote server as a sequence of bytes encoded using UTF-8
 void execNoWait(byte[] command)
           
 void execNoWait(String command)
          Pass this command to a remote server as a sequence of bytes encoded using UTF-8
 boolean exists(String absolutePath)
           
 RemoteFile getMetaData(String absolutePath)
           
 RemoteFile getWorkingDirectory()
           
 boolean isDirectory(String absolutePath)
           
 CopyResult scp(File source, RemoteFile destination)
           
 CopyResult scp(InputStream source, RemoteFile destination)
           
 CopyResult scp(RemoteFile source, File destination)
           
 CopyResult scp(RemoteFile source, OutputStream out)
           
 CopyResult scp(String absolutePath, OutputStream out)
           
 CopyResult scp(String location, RemoteFile destination)
           
 CopyResult scpString(String string, RemoteFile destination)
          Copy the contents of string to destination
 CopyResult scpToDir(File source, RemoteFile directory)
           
 CopyResult scpToDir(RemoteFile source, File directory)
           
 CopyResult scpToDir(String location, RemoteFile directory)
           
 String toString(RemoteFile source)
           
 

Method Detail

exec

CommandResult exec(CommandContext context)

exec

List<CommandResult> exec(CommandContext... contexts)

exec

CommandResult exec(String command)
Pass this command to a remote server as a sequence of bytes encoded using UTF-8


exec

List<CommandResult> exec(String... commands)
Pass each command to a remote server as a sequence of bytes encoded using UTF-8


execNoWait

void execNoWait(String command)
Pass this command to a remote server as a sequence of bytes encoded using UTF-8


execNoWait

void execNoWait(byte[] command)

scp

CopyResult scp(File source,
               RemoteFile destination)

scp

CopyResult scp(String location,
               RemoteFile destination)

scp

CopyResult scp(InputStream source,
               RemoteFile destination)

scpString

CopyResult scpString(String string,
                     RemoteFile destination)
Copy the contents of string to destination


scpToDir

CopyResult scpToDir(String location,
                    RemoteFile directory)

scpToDir

CopyResult scpToDir(File source,
                    RemoteFile directory)

scp

CopyResult scp(RemoteFile source,
               File destination)

scpToDir

CopyResult scpToDir(RemoteFile source,
                    File directory)

getMetaData

RemoteFile getMetaData(String absolutePath)

exists

boolean exists(String absolutePath)

isDirectory

boolean isDirectory(String absolutePath)

deleteFile

void deleteFile(String absolutePath)

createDirectory

void createDirectory(RemoteFile dir)

getWorkingDirectory

RemoteFile getWorkingDirectory()

scp

CopyResult scp(String absolutePath,
               OutputStream out)
               throws IOException
Throws:
IOException

scp

CopyResult scp(RemoteFile source,
               OutputStream out)
               throws IOException
Throws:
IOException

toString

String toString(RemoteFile source)

close

void close()


Copyright © 2010–2014 The Kuali Foundation. All rights reserved.