Java Doc for AbstractXMLServlet.java in  » J2EE » Pustefix » de » schlund » pfixxml » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » Pustefix » de.schlund.pfixxml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


de.schlund.pfixxml.ServletManager
   de.schlund.pfixxml.AbstractXMLServlet

All known Subclasses:   de.schlund.pfixxml.ContextXMLServlet,
AbstractXMLServlet
abstract public class AbstractXMLServlet extends ServletManager (Code)
This class is at the top of the XML/XSLT System. It serves as an abstract parent class for all servlets needing access to the XML/XSL cache system povided by de.schlund.pfixxml.TargetGenerator.


Servlets inheriting from this class need to implement getDom(HttpServletRequest req, HttpServletResponse res) which returns a SPDocument.


Inner Class :public class RegisterFrameHelper

Field Summary
final public static  StringDEF_PROP_TMPDIR
    
final public static  StringGETDOMTIME
    
final public static  StringPARAM_ANCHOR
    
final public static  StringPARAM_XMLONLY
    
final public static  StringPARAM_XMLONLY_FONTIFY
    
final public static  StringPARAM_XMLONLY_XMLONLY
    
final public static  StringPREPROCTIME
    
final protected static  StringPROP_ADD_TRAIL_INFO
    
final protected static  StringPROP_CLEANER_TO
    
final protected static  StringPROP_MAX_STORED_DOMS
    
final protected static  StringPROP_NAME
    
final protected static  StringPROP_NOEDIT
    
final protected static  StringPROP_PROHIBITDEBUG
    
final protected static  StringPROP_PROHIBITINFO
    
final protected static  StringPROP_RENDER_EXT
    
final protected static  StringPROP_SKIP_GETMODTIME_MU
    
final public static  StringSESS_CLEANUP_FLAG_STAGE1
    
final public static  StringSESS_CLEANUP_FLAG_STAGE2
    
final public static  StringSESS_LANG
    
final public static  StringTRAFOTIME
    
protected  TargetGeneratorgenerator
     Holds the TargetGenerator which is the XML/XSL Cache for this class of servlets.
protected  Stringservletname
     The unique Name of this servlet, needed to create a Namespace in the HttpSession Session.


Method Summary
abstract protected  AbstractXMLServletConfiggetAbstractXMLServletConfig()
    
abstract protected  SPDocumentgetDom(PfixServletRequest preq)
     A child of AbstractXMLServlet must implement this method.
protected  ServletManagerConfiggetServletManagerConfig()
    
protected  voidhandleDocument(PfixServletRequest preq, HttpServletResponse res, SPDocument spdoc, Properties params, boolean doreuse)
    
protected  voidhookAfterRender(PfixServletRequest preq, SPDocument spdoc, TreeMap<String, Object> paramhash, String stylesheet)
     Called after the XML result tree is rendered.
protected  voidhookBeforeRender(PfixServletRequest preq, SPDocument spdoc, TreeMap<String, Object> paramhash, String stylesheet)
     Called before the XML result tree is rendered.
public  voidinit(ServletConfig config)
     Init method of all servlets inheriting from AbstractXMLServlets. It calls super.init(Config) as a first step.
Parameters:
  ContextXMLServletConfig - config.
protected  voidprocess(PfixServletRequest preq, HttpServletResponse res)
     This is the method that is called for any servlet that inherits from ServletManager.
protected  booleantryReloadProperties(PfixServletRequest preq)
    

Field Detail
DEF_PROP_TMPDIR
final public static String DEF_PROP_TMPDIR(Code)



GETDOMTIME
final public static String GETDOMTIME(Code)



PARAM_ANCHOR
final public static String PARAM_ANCHOR(Code)



PARAM_XMLONLY
final public static String PARAM_XMLONLY(Code)



PARAM_XMLONLY_FONTIFY
final public static String PARAM_XMLONLY_FONTIFY(Code)



PARAM_XMLONLY_XMLONLY
final public static String PARAM_XMLONLY_XMLONLY(Code)



PREPROCTIME
final public static String PREPROCTIME(Code)



PROP_ADD_TRAIL_INFO
final protected static String PROP_ADD_TRAIL_INFO(Code)



PROP_CLEANER_TO
final protected static String PROP_CLEANER_TO(Code)



PROP_MAX_STORED_DOMS
final protected static String PROP_MAX_STORED_DOMS(Code)



PROP_NAME
final protected static String PROP_NAME(Code)



PROP_NOEDIT
final protected static String PROP_NOEDIT(Code)



PROP_PROHIBITDEBUG
final protected static String PROP_PROHIBITDEBUG(Code)



PROP_PROHIBITINFO
final protected static String PROP_PROHIBITINFO(Code)



PROP_RENDER_EXT
final protected static String PROP_RENDER_EXT(Code)



PROP_SKIP_GETMODTIME_MU
final protected static String PROP_SKIP_GETMODTIME_MU(Code)



SESS_CLEANUP_FLAG_STAGE1
final public static String SESS_CLEANUP_FLAG_STAGE1(Code)



SESS_CLEANUP_FLAG_STAGE2
final public static String SESS_CLEANUP_FLAG_STAGE2(Code)



SESS_LANG
final public static String SESS_LANG(Code)



TRAFOTIME
final public static String TRAFOTIME(Code)



generator
protected TargetGenerator generator(Code)
Holds the TargetGenerator which is the XML/XSL Cache for this class of servlets.



servletname
protected String servletname(Code)
The unique Name of this servlet, needed to create a Namespace in the HttpSession Session.





Method Detail
getAbstractXMLServletConfig
abstract protected AbstractXMLServletConfig getAbstractXMLServletConfig()(Code)



getDom
abstract protected SPDocument getDom(PfixServletRequest preq) throws PustefixApplicationException, PustefixCoreException(Code)
A child of AbstractXMLServlet must implement this method. It is here where the final Dom tree and parameters for applying to the stylesheet are put into SPDocument.
Parameters:
  HttpServletRequest - req: the current request SPDocument: The result Dom tree and parameters
exception:
  Exception - Anything that can go wrong when constructing the resultingSPDocument object



getServletManagerConfig
protected ServletManagerConfig getServletManagerConfig()(Code)



handleDocument
protected void handleDocument(PfixServletRequest preq, HttpServletResponse res, SPDocument spdoc, Properties params, boolean doreuse) throws PustefixCoreException(Code)



hookAfterRender
protected void hookAfterRender(PfixServletRequest preq, SPDocument spdoc, TreeMap<String, Object> paramhash, String stylesheet)(Code)
Called after the XML result tree is rendered. This method can be overidden in sub-implementations to do de-initializiation stuff. This method is guaranteed to be always called, when the corresponding before method has been called - even if an error occurs.
Parameters:
  preq - current servlet request
Parameters:
  spdoc - XML document going to be rendered
Parameters:
  paramhash - parameters supplied to XSLT code
Parameters:
  stylesheet - name of the stylesheet being used



hookBeforeRender
protected void hookBeforeRender(PfixServletRequest preq, SPDocument spdoc, TreeMap<String, Object> paramhash, String stylesheet)(Code)
Called before the XML result tree is rendered. This method can be overidden in sub-implementations to do initializiation stuff, which might be needed for XSLT callback methods.
Parameters:
  preq - current servlet request
Parameters:
  spdoc - XML document going to be rendered
Parameters:
  paramhash - parameters supplied to XSLT code
Parameters:
  stylesheet - name of the stylesheet being used



init
public void init(ServletConfig config) throws ServletException(Code)
Init method of all servlets inheriting from AbstractXMLServlets. It calls super.init(Config) as a first step.
Parameters:
  ContextXMLServletConfig - config. Passed in from the servlet container. void
exception:
  ServletException - thrown when the initialisation goes havoc somehow



process
protected void process(PfixServletRequest preq, HttpServletResponse res) throws Exception(Code)
This is the method that is called for any servlet that inherits from ServletManager. It calls getDom(req, res) to get the SPDocument doc. This SPDocument is stored in the HttpSession so it can be reused if the request parameter __reuse is set to a timestamp matching the timestamp of the saved SPDocument. In other words, if the request parameter __reuse is there and it is set to a matching timestamp, getDom(req,res) will not be called, instead the saved Dom tree from the previous request to this servlet will be used. Request parameters that are put into the gen_params Hash:
__frame

__uri

__sessid

__editmode

__reusestamp

lang


Parameters:
  PfixServletRequest - req
Parameters:
  HttpServletResponse - res
exception:
  Exception -



tryReloadProperties
protected boolean tryReloadProperties(PfixServletRequest preq) throws ServletException(Code)



Fields inherited from de.schlund.pfixxml.ServletManager
final protected static String DEF_CONTENT_TYPE(Code)(Java Doc)
final public static int HTTPS_PORT(Code)(Java Doc)
final public static int HTTP_PORT(Code)(Java Doc)
final public static String PROP_COOKIE_SEC_NOT_ENFORCED(Code)(Java Doc)
final public static String PROP_LOADINDEX(Code)(Java Doc)
final public static String PROP_P3PHEADER(Code)(Java Doc)
final public static String PROP_SSL_REDIRECT_PORT(Code)(Java Doc)
final public static String VISIT_ID(Code)(Java Doc)

Methods inherited from de.schlund.pfixxml.ServletManager
abstract protected boolean allowSessionCreate()(Code)(Java Doc)
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException(Code)(Java Doc)
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException(Code)(Java Doc)
public static String getServerName(HttpServletRequest req)(Code)(Java Doc)
abstract protected ServletManagerConfig getServletManagerConfig()(Code)(Java Doc)
public void init(ServletConfig config) throws ServletException(Code)(Java Doc)
public static boolean isDefault(String scheme, int port)(Code)(Java Doc)
protected boolean needsSSL(PfixServletRequest preq) throws ServletException(Code)(Java Doc)
abstract protected boolean needsSession()(Code)(Java Doc)
abstract protected void process(PfixServletRequest preq, HttpServletResponse res) throws Exception(Code)(Java Doc)
abstract protected void reloadServletConfig(FileResource configFile, Properties globalProperties) throws ServletException(Code)(Java Doc)
protected void relocate(HttpServletResponse res, String reloc_url)(Code)(Java Doc)
protected boolean runningUnderSSL(HttpServletRequest req)(Code)(Java Doc)
protected boolean tryReloadProperties(PfixServletRequest preq) throws ServletException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.