Changeset 356

Show
Ignore:
Timestamp:
03/09/07 23:49:09 (1 year ago)
Author:
schst
Message:

XMLProcessor does not store the last XML tree. This is now done by the same interceptor that retrieves the DOM tree from the session.
TODO: Think about the name of the interceptor, adjust examples and tests to be able to delete the old stubXMLPreInterceptor

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/config/xml/interceptors.xml

    r351 r356  
    55  <preInterceptors> 
    66    <preInterceptor type="net.stubbles.util.stubRegistryInitializer" /> 
     7    <postInterceptor type="net.stubbles.websites.xml.stubShowLastXMLInterceptor" /> 
    78  </preInterceptors> 
    89  <postInterceptors> 
     10    <postInterceptor type="net.stubbles.websites.xml.stubShowLastXMLInterceptor" /> 
    911    <postInterceptor type="net.stubbles.websites.xml.stubPostInterceptor" /> 
    1012  </postInterceptors> 
  • trunk/src/main/php/net/stubbles/websites/xml/stubXMLProcessor.php

    r354 r356  
    7474        $xmlStreamWriter->writeEndElement();  // end document 
    7575        $this->response->replaceData($xmlStreamWriter->asXML()); 
    76         $this->session->putValue('net.stubbles.websites.lastRequestResponseData', $this->response->getData()); 
    7776    } 
    7877