Changeset 14396

Show
Ignore:
Timestamp:
03.09.2007 13:06:18 (12 years ago)
Author:
xiao
Message:

add a method getConfigParams() so that we can set the page name into style.xsl in FlaxServlet?.doGet() on the fly which will be used in FlaxPageGeneration?.xsl.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/src/java/org/greenstone/gsdl3/core/Receptionist.java

    r13270 r14396  
    6060    public void setConfigParams(HashMap params) { 
    6161    this.config_params = params; 
     62    } 
     63    public HashMap getConfigParams() { 
     64        return this.config_params; 
    6265    } 
    6366    /** sets the message router  - it should already be created and  
     
    163166    // find the  appropriate action  
    164167    Action a = (Action)this.action_map.get(action); 
     168     
    165169    String action_name=null; 
    166170    if (a==null) { // not in the map yet 
     
    182186    } 
    183187 
    184     // transform the request in some way 
     188    // transform the request in some way -- does nothing! 
    185189    preProcessRequest(request); 
    186190    // set up the page 
    187191    Element page = this.doc.createElement(GSXML.PAGE_ELEM); 
    188192    page.setAttribute(GSXML.LANG_ATT, request.getAttribute(GSXML.LANG_ATT)); 
    189      
     193    //logger.info(a+" mesa=" + this.converter.getPrettyString(message)); 
    190194    // get the page data from the action 
    191195    Element action_response = a.process(message); 
     
    213217    page.appendChild(page_response); 
    214218 
    215     logger.debug(" raw page="+this.converter.getString(page)); 
     219    //logger.info(" raw page="+this.converter.getString(page)); 
    216220    // transform the result in some way 
    217221    Element resulting_page = postProcessPage(page); 
     222    logger.debug("receptionist returned response"); 
     223    logger.debug(this.converter.getString(resulting_page)); 
     224//    logger.info("receptionist returned response"); 
     225//    logger.info(this.converter.getString(resulting_page)); 
     226 
    218227    return resulting_page; 
    219228