    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class w3c.jigsaw.ssi.ExecCommand

    java.lang.Object
       |
       +----w3c.jigsaw.ssi.BasicCommand
               |
               +----w3c.jigsaw.ssi.ExecCommand

public class ExecCommand
extends BasicCommand

Implementation of the SSI `exec` command. It inserts the output from a CGI script or a shell command in the document. Note that in the Jigsaw architecture CGI scripts are just another resource class, so that no distinction is made between executing a CGI script or including a file. Relies on variables set by DefaultCommandRegistry.

##

ExecCommand()

##

execute(SSIResource, Request, ArrayDictionary, Dictionary)
  Executes this command.
getName()
  Returns the name of this command.
getValue(Dictionary, String)
  Returns the (String) value of the given variable.

##

ExecCommand

     public ExecCommand()

##

execute

     public Reply execute(SSIResource resource,
                          Request request,
                          ArrayDictionary parameters,
                          Dictionary variables)

  Executes this command.

  Overrides:
    execute in class BasicCommand

getName

     public String getName()

  Returns the name of this command.

  Overrides:
    getName in class BasicCommand

getValue

     public String getValue(Dictionary variables,
                            String variable)

  Returns the (String) value of the given variable.

  Overrides:
    getValue in class BasicCommand

    All Packages  Class Hierarchy  This Package  Previous  Next  Index