Java Doc for AbstractHandler.java in  » J2EE » Enhydra-Demos » org » enhydra » dm » api » handler » 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 » Enhydra Demos » org.enhydra.dm.api.handler 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.enhydra.dm.api.handler.AbstractHandler

All known Subclasses:   org.enhydra.dm.handler.DefaultLockHandler,  org.enhydra.dm.handler.DefaultMkcolHandler,  org.enhydra.dm.handler.DefaultCheckoutHandler,  org.enhydra.dm.handler.DefaultOptionsHandler,  org.enhydra.dm.handler.DefaultGetHandler,  org.enhydra.dm.handler.DefaultPutHandler,  org.enhydra.dm.handler.DefaultPostHandler,  org.enhydra.dm.handler.DefaultPropfindHandler,  org.enhydra.dm.handler.DefaultReportHandler,  org.enhydra.dm.handler.DefaultVersionHandler,  org.enhydra.dm.handler.DefaultHeadHandler,  org.enhydra.dm.handler.DefaultProppatchHandler,  org.enhydra.dm.handler.DefaultCheckinHandler,  org.enhydra.dm.handler.DefaultDeleteHandler,  org.enhydra.dm.handler.DefaultUncheckoutHandler,  org.enhydra.dm.handler.DefaultUnlockHandler,  org.enhydra.dm.handler.DefaultCopyHandler,  org.enhydra.dm.handler.DefaultMoveHandler,
AbstractHandler
abstract public class AbstractHandler implements MethodHandler(Code)
An abstract implementation of the MethodHandler interface. This class serves as a convenient basis for building method handlers. In addition to providing basic init and destroy methods, several useful utility methods are supplied.
author:
   Slobodan Vujasinovic


Field Summary
final public static  StringDEFAULT_LOCK_TIMEOUT
    
final public static  StringREQUEST_URI_CHARSET
    
final public static  StringSESSION_ATT_LOCKED
    


Method Summary
protected  intcheckConditionalRequest(HttpServletRequest request, Document document)
     Checks if a conditional request should apply.
public  voiddestroy()
    
protected  StringgetAllowedMethods()
    
protected  DocumentManagergetDocumentManager()
    
protected  DocumentStoregetDocumentStore()
    
public  StringgetLockRequestTimeout()
    
public  LoggetLogger()
    
protected  ServletConfiggetServletConfig()
     Returns the ServletConfig object that was provided to the init method.
public  StringgetUser(HttpServletRequest request)
    
public  voidinit(ServletConfig config, DocumentManager documentManager, DocumentStore documentStore, DesEncription desEncription, Log logger)
     Initializes the method handler.
public  MapreadParameters(HttpServletRequest request)
    
abstract public  voidservice(HttpServletRequest request, HttpServletResponse response)
    
public  voidsetLogger(Log logger)
    

Field Detail
DEFAULT_LOCK_TIMEOUT
final public static String DEFAULT_LOCK_TIMEOUT(Code)



REQUEST_URI_CHARSET
final public static String REQUEST_URI_CHARSET(Code)



SESSION_ATT_LOCKED
final public static String SESSION_ATT_LOCKED(Code)





Method Detail
checkConditionalRequest
protected int checkConditionalRequest(HttpServletRequest request, Document document) throws IOException(Code)
Checks if a conditional request should apply. If the client specifies one or more conditional cache headers ("If-Match", "If-None-Match", "If-Modified-Since", or "If-Unmodified-Since" -- "If-Range" is not currently supported), this method will indicate whether the request should be processed.
Parameters:
  request - The servlet request whose conditional cache headerswill be examined.
Parameters:
  file - The resource that is being examined. An HTTP status code indicating the result. This will be one of:
  • 200 (HttpServletResponse.SC_OK) --if the request should be serviced normally
  • 304 (HttpServletResponse.SC_NOT_MODIFIED)-- if the resource has not been modified
  • 400(HttpServletResponse.SC_BAD_REQUEST) --if the client has submitted a malformed conditional header
  • 412(HttpServletResponse.SC_PRECONDITION_FAILED) --if no matching entity was found, or the request should not proceedbased on the current lock status

throws:
  IOException - If an error occurs while examining the resource.



destroy
public void destroy()(Code)
Destroy method



getAllowedMethods
protected String getAllowedMethods()(Code)



getDocumentManager
protected DocumentManager getDocumentManager()(Code)
documentManager



getDocumentStore
protected DocumentStore getDocumentStore()(Code)
documentStore



getLockRequestTimeout
public String getLockRequestTimeout()(Code)



getLogger
public Log getLogger()(Code)
logger



getServletConfig
protected ServletConfig getServletConfig()(Code)
Returns the ServletConfig object that was provided to the init method. A ServletConfig object containing the servlet's configurationand initialization parameters.



getUser
public String getUser(HttpServletRequest request)(Code)
user



init
public void init(ServletConfig config, DocumentManager documentManager, DocumentStore documentStore, DesEncription desEncription, Log logger) throws ServletException(Code)
Initializes the method handler. This implementation stores the provided ServletConfig object and makes it available via the getServletConfig method. Subclasses overriding this method should start by invoking

super.init(config);
Parameters:
  config - a ServletConfig object containing the servlet'sconfiguration and initialization parameters.
throws:
  ServletException - If an error occurs during initialization.




readParameters
public Map readParameters(HttpServletRequest request) throws ServletException(Code)
method that reads parameters from request, decode them and returns parameter Map
Parameters:
  request -
throws:
  ServletException -



service
abstract public void service(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)



setLogger
public void setLogger(Log logger)(Code)

Parameters:
  logger -



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.