Rio Project 4.2 API Documentation



org.rioproject.tools.cli
Class CLI.HttpHandler

java.lang.Object
  extended by org.rioproject.tools.cli.CLI.HttpHandler
All Implemented Interfaces:
OptionHandler
Enclosing class:
CLI

public static class CLI.HttpHandler
extends Object
implements OptionHandler

Handle http command


Constructor Summary
CLI.HttpHandler()
           
 
Method Summary
static boolean createWebster(int port, String roots, boolean quiet, PrintStream out)
          Create a Webster instance
 boolean createWebster(int port, String roots, PrintStream out)
          Create a Webster instance
static String debugGetDefaultRoots()
           
 String getUsage()
          Get the usage of the command
 String process(String input, BufferedReader br, PrintStream out)
          Process the option.
static void stopWebster()
          Stop the webster instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CLI.HttpHandler

public CLI.HttpHandler()
Method Detail

process

public String process(String input,
                      BufferedReader br,
                      PrintStream out)
Description copied from interface: OptionHandler
Process the option.

Specified by:
process in interface OptionHandler
Parameters:
input - Parameters for the option, may be null
br - An optional BufferdReader, used if the option requires input. if this is null, the option handler may create a BufferedReader to handle the input
out - The PrintStream to use if the option prints results or choices for the user. Must not be null
Returns:
The result of the action.

getUsage

public String getUsage()
Description copied from interface: OptionHandler
Get the usage of the command

Specified by:
getUsage in interface OptionHandler
Returns:
Command usage

createWebster

public boolean createWebster(int port,
                             String roots,
                             PrintStream out)
Create a Webster instance

Parameters:
port - The port to use
roots - Webster's roots
out - A printstream for output
Returns:
True if created

debugGetDefaultRoots

public static String debugGetDefaultRoots()

createWebster

public static boolean createWebster(int port,
                                    String roots,
                                    boolean quiet,
                                    PrintStream out)
Create a Webster instance

Parameters:
port - The port to use
roots - Webster's roots
quiet - Run without output
out - A printstream for output
Returns:
True if created

stopWebster

public static void stopWebster()
Stop the webster instance


Copyright © Rio Project.

Copyright © 2006-2011 Rio Project. All Rights Reserved.