org.sonatype.gshell.commands.network
Class WgetCommand

java.lang.Object
  extended by org.sonatype.gshell.command.support.CommandActionSupport
      extended by org.sonatype.gshell.commands.network.WgetCommand
All Implemented Interfaces:
Cloneable, CommandAction, NameAware

@Command(name="wget")
public class WgetCommand
extends CommandActionSupport

Fetch a file from a URL.

Since:
2.3
Author:
Jason Dillon

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.sonatype.gshell.command.CommandAction
CommandAction.Result
 
Field Summary
 
Fields inherited from class org.sonatype.gshell.command.support.CommandActionSupport
log
 
Constructor Summary
WgetCommand()
           
 
Method Summary
 Object execute(CommandContext context)
          Execute the command action.
 
Methods inherited from class org.sonatype.gshell.command.support.CommandActionSupport
clone, createMessages, getCompleters, getMessages, getName, getSimpleName, setCompleters, setCompleters, setName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WgetCommand

public WgetCommand()
Method Detail

execute

public Object execute(CommandContext context)
               throws Exception
Description copied from interface: CommandAction
Execute the command action.

Parameters:
context - The execution context of the command.
Returns:
The result of the command execution.
Throws:
Exception - Command execution failed.


Copyright © 2008-2011 Sonatype. All Rights Reserved.