Java Doc for LoadQuartzServlet.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » lenya » cms » scheduler » 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 » Content Management System » apache lenya 2.0 » org.apache.lenya.cms.scheduler 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.servlet.http.HttpServlet
   org.apache.lenya.cms.scheduler.LoadQuartzServlet

LoadQuartzServlet
public class LoadQuartzServlet extends HttpServlet (Code)
A simple servlet that starts an instance of a Quartz scheduler.


Field Summary
final protected static  StringADD
    
final public static  StringCONFIGURATION_ELEMENT
    
final protected static  StringDELETE
    
final protected static  StringDOCUMENT_DELETED
    
final protected static  StringMODIFY
    
final public static  StringPARAMETER_ACTION
    
final public static  StringPARAMETER_DOCUMENT_URL
    
final public static  StringPARAMETER_PUBLICATION_ID
    
final public static  StringPREFIX
    
final public static  StringSERVLET_URL
    


Method Summary
public  voiddeleteDocumentJobs(org.apache.lenya.cms.publication.Document document)
    
public  voiddestroy()
     Shuts down the scheduler.
public static  voiddestroyScheduler()
     Shuts down the scheduler.
public  voiddoGet(HttpServletRequest request, HttpServletResponse response)
     Handles a GET request.
public  voiddoPost(HttpServletRequest req, HttpServletResponse resp)
     Handles a POST request.
public static  StringgetDeleteDocumentRequestURI(String port, String servletContextPath, org.apache.lenya.cms.publication.Document document)
     Generates the request URI needed to delete the jobs for a certain document.
Parameters:
  port - The port of the servlet
Parameters:
  servletContextPath - The context path of the servlet
Parameters:
  document - The document.
protected  StringgetJobId(NamespaceMap schedulerParameters)
     Extracts the job ID from the scheduler parameters.
Parameters:
  schedulerParameters - A namespace map.
public static  SchedulerWrappergetScheduler()
     Returns the scheduler wrapper.
public static  NamespaceMapgetSchedulerParameters(HttpServletRequest request)
     Extracts the scheduler parameters from a request.
Parameters:
  request - The request.
public static  LoadQuartzServletgetServlet(String contextPath)
     Returns the servlet for a certain canonical servlet context path.
Parameters:
  contextPath - The canonical servlet context path.
public  FilegetServletContextDirectory()
     Returns the servlet context path.
protected  voidhandleRequest(HttpServletRequest request, HttpServletResponse response)
     Handles a servlet request.
public  voidinit(ServletConfig config)
     Initializes the servlet.
protected  voidlogSessionAttributes(HttpServletRequest request)
     Logs the session attributes of a request.
public  voidprocess()
     Process.
public  voidrestoreJobs()
     Restores the jobs.
public static  voidshutdownHook()
     This method sets a ShutdownHook to the system This traps the CTRL+C or kill signal and shutdows Correctly the system.

Field Detail
ADD
final protected static String ADD(Code)



CONFIGURATION_ELEMENT
final public static String CONFIGURATION_ELEMENT(Code)
CONFIGURATION_ELEMENT The configuration element



DELETE
final protected static String DELETE(Code)



DOCUMENT_DELETED
final protected static String DOCUMENT_DELETED(Code)



MODIFY
final protected static String MODIFY(Code)



PARAMETER_ACTION
final public static String PARAMETER_ACTION(Code)
PARAMETER_ACTION The action parameter



PARAMETER_DOCUMENT_URL
final public static String PARAMETER_DOCUMENT_URL(Code)
PARAMETER_DOCUMENT_URL The document URL parameter



PARAMETER_PUBLICATION_ID
final public static String PARAMETER_PUBLICATION_ID(Code)
PARAMETER_PUBLICATION_ID The publication id parameter



PREFIX
final public static String PREFIX(Code)
PREFIX Scheduler namespace prefix



SERVLET_URL
final public static String SERVLET_URL(Code)
SERVLET_URL The scheduler servlet URL





Method Detail
deleteDocumentJobs
public void deleteDocumentJobs(org.apache.lenya.cms.publication.Document document) throws DocumentBuildException, SchedulerException, PublicationException(Code)
Deletes
Parameters:
  document -
throws:
  DocumentBuildException -
throws:
  SchedulerException -
throws:
  PublicationException -



destroy
public void destroy()(Code)
Shuts down the scheduler.



destroyScheduler
public static void destroyScheduler()(Code)
Shuts down the scheduler.



doGet
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)
Handles a GET request.
Parameters:
  request - The request.
Parameters:
  response - The response.
throws:
  IOException - when an error occured.
throws:
  ServletException - when an error occured.



doPost
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)
Handles a POST request.
Parameters:
  req - The requust.
Parameters:
  resp - The response.
throws:
  ServletException - when an error occured.
throws:
  IOException - when an error occured.



getDeleteDocumentRequestURI
public static String getDeleteDocumentRequestURI(String port, String servletContextPath, org.apache.lenya.cms.publication.Document document)(Code)
Generates the request URI needed to delete the jobs for a certain document.
Parameters:
  port - The port of the servlet
Parameters:
  servletContextPath - The context path of the servlet
Parameters:
  document - The document. A string.



getJobId
protected String getJobId(NamespaceMap schedulerParameters)(Code)
Extracts the job ID from the scheduler parameters.
Parameters:
  schedulerParameters - A namespace map. A string.



getScheduler
public static SchedulerWrapper getScheduler()(Code)
Returns the scheduler wrapper. A scheduler wrapper.



getSchedulerParameters
public static NamespaceMap getSchedulerParameters(HttpServletRequest request)(Code)
Extracts the scheduler parameters from a request.
Parameters:
  request - The request. A namespace map.



getServlet
public static LoadQuartzServlet getServlet(String contextPath)(Code)
Returns the servlet for a certain canonical servlet context path.
Parameters:
  contextPath - The canonical servlet context path. A LoadQuartzServlet.



getServletContextDirectory
public File getServletContextDirectory()(Code)
Returns the servlet context path. A string.



handleRequest
protected void handleRequest(HttpServletRequest request, HttpServletResponse response) throws IOException(Code)
Handles a servlet request.
Parameters:
  request - The request.
Parameters:
  response - The response.
throws:
  IOException - when something went wrong.



init
public void init(ServletConfig config) throws ServletException(Code)
Initializes the servlet.
Parameters:
  config - The servlet configuration.
throws:
  ServletException - when something went wrong.



logSessionAttributes
protected void logSessionAttributes(HttpServletRequest request)(Code)
Logs the session attributes of a request.
Parameters:
  request - The request.



process
public void process() throws ServletException, SchedulerException(Code)
Process.
throws:
  ServletException - when an error occurs.
throws:
  SchedulerException - when an error occurs.



restoreJobs
public void restoreJobs() throws SchedulerException(Code)
Restores the jobs.
throws:
  SchedulerException - when something went wrong.



shutdownHook
public static void shutdownHook() throws Exception(Code)
This method sets a ShutdownHook to the system This traps the CTRL+C or kill signal and shutdows Correctly the system.
throws:
  Exception - when something went wrong.



Methods inherited from javax.servlet.http.HttpServlet
protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
protected long getLastModified(HttpServletRequest req)(Code)(Java Doc)
protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc)
public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException(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.