- Timestamp:
- 2003-01-06T15:23:47+13:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/action/Action.java
r3568 r3645 18 18 protected XMLConverter converter_=null; 19 19 /** cgi args converter */ 20 protected CGIArgConverter cgi_=null;20 protected GSCGI cgi_ = null; 21 21 /** a transformer class to transform xml using xslt */ 22 22 protected XMLTransformer transformer_=null; 23 24 23 /** a reference to the message router that it must talk to to 25 24 * get info. it may be a communicator acting as a proxy, but it 26 25 doesn't care about that */ 27 26 protected ModuleInterface mr_=null; 28 29 27 30 28 public Action() { … … 41 39 mr_ = m; 42 40 } 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) { 45 44 cgi_ = cgi; 45 // add in any action specific params 46 addCGIParams(); 46 47 } 47 48 public void configure() { 48 49 // does nothing yet 49 50 } 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 } 51 57 /** process takes an xml representation of cgi args 52 58 * and returns the page of results - may be in html/xml/other … … 60 66 } 61 67 68 /** the main process method - must be implemented in subclass */ 62 69 abstract public Element process(Element xml_in); 63 70 64 71 65 72 } 66 73
Note:
See TracChangeset
for help on using the changeset viewer.