Ignore:
Timestamp:
2003-01-06T15:23:47+13:00 (21 years ago)
Author:
kjdon
Message:

actions tidied up a bit, ResourceAction changed to DocumentAction, BuildAction removed, more general ProcessAction added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/action/Action.java

    r3568 r3645  
    1818    protected XMLConverter converter_=null;
    1919    /** cgi args converter */
    20     protected CGIArgConverter cgi_=null;
     20    protected GSCGI cgi_ = null;
    2121    /** a transformer class to transform xml using xslt */
    2222    protected XMLTransformer transformer_=null;
    23 
    2423    /** a reference to the message router that it must talk to to
    2524     * get info. it may be a communicator acting as a proxy, but it
    2625     doesn't care about that */
    2726    protected ModuleInterface mr_=null;
    28 
    2927
    3028    public Action() {
     
    4139       mr_ = m;
    4240    }
    43 
    44     public void setCGIConverter(CGIArgConverter cgi) {
     41    /** sets the GSCGI object - used to convert between short and long names
     42     * of params */
     43    public void setCGI(GSCGI cgi) {
    4544    cgi_ = cgi;
     45    // add in any action specific params
     46    addCGIParams();
    4647    }
    4748    public void configure() {
    4849    // does nothing yet
    4950    }
    50 
     51    /** any action specific cgi params should be added to the GSCGI object-
     52     * overwrite this if a new action has its own params
     53     * using cgi_.addStaticParam(param-name) */
     54    protected void addCGIParams() {
     55   
     56    }
    5157    /** process takes an xml representation of cgi args
    5258     * and returns the page of results - may be in html/xml/other
     
    6066    }
    6167   
     68    /** the main process method - must be implemented in subclass */
    6269    abstract public Element process(Element xml_in);
    6370   
    64 
     71   
    6572}
    6673
Note: See TracChangeset for help on using the changeset viewer.