org.apache.maven.wagon.providers.ssh
Class ScpCommandFactory

java.lang.Object
  extended by org.apache.maven.wagon.providers.ssh.ScpCommandFactory
All Implemented Interfaces:
org.apache.sshd.server.CommandFactory

public class ScpCommandFactory
extends Object
implements org.apache.sshd.server.CommandFactory

This CommandFactory can be used as a standalone command factory or can be used to augment another CommandFactory and provides SCP support.

Author:
Apache MINA SSHD Project
See Also:
ScpCommand

Constructor Summary
ScpCommandFactory()
           
ScpCommandFactory(org.apache.sshd.server.CommandFactory delegate)
           
 
Method Summary
 org.apache.sshd.server.Command createCommand(String command)
          Parses a command string and verifies that the basic syntax is correct.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScpCommandFactory

public ScpCommandFactory()

ScpCommandFactory

public ScpCommandFactory(org.apache.sshd.server.CommandFactory delegate)
Method Detail

createCommand

public org.apache.sshd.server.Command createCommand(String command)
Parses a command string and verifies that the basic syntax is correct. If parsing fails the responsibility is delegated to the configured CommandFactory instance; if one exist.

Specified by:
createCommand in interface org.apache.sshd.server.CommandFactory
Parameters:
command - command to parse
Returns:
configured Command instance
Throws:
IllegalArgumentException


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.