org.tranche.clc
Class ServerItem

java.lang.Object
  extended by org.tranche.clc.TrancheServerCommandLineClientItem
      extended by org.tranche.clc.ServerItem
All Implemented Interfaces:
java.lang.Comparable

public class ServerItem
extends TrancheServerCommandLineClientItem

Used for interaction with the Tranche server through a command-line interface.

Author:
Jayson Falkner - jfalkner@umich.edu, James "Augie" Hill - augman85@gmail.com, Bryan Smith - bryanesmith@gmail.com

Constructor Summary
ServerItem(TrancheServer wrappedServer, TrancheServerCommandLineClient dfsclc)
           
 
Method Summary
 void doAction(java.io.BufferedReader in, java.io.PrintStream out)
          Abstract class for doAction.
static Server getServer()
          Returns the Server object (socket server) to which this item belongs.
 
Methods inherited from class org.tranche.clc.TrancheServerCommandLineClientItem
addAttribute, addAttribute, compareTo, getAttributes, getDescription, getName, getParameter, getTrancheServer, getTrancheServerCommandLineClient, preDoAction, splitCommandLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerItem

public ServerItem(TrancheServer wrappedServer,
                  TrancheServerCommandLineClient dfsclc)
Parameters:
wrappedServer - the tranche server
dfsclc - the tranche server command line client
Method Detail

getServer

public static Server getServer()

Returns the Server object (socket server) to which this item belongs.

Returns:
the server

doAction

public void doAction(java.io.BufferedReader in,
                     java.io.PrintStream out)
Description copied from class: TrancheServerCommandLineClientItem
Abstract class for doAction.

Specified by:
doAction in class TrancheServerCommandLineClientItem
Parameters:
in - the input stream
out - the output stream


This code is free for use both commercially and non-commercially as stated in the project's license