Java Doc for CvsDAVFileFrame.java in  » Web-Server » Jigsaw » org » w3c » jigedit » webdav » frames » 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 » Web Server » Jigsaw » org.w3c.jigedit.webdav.frames 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.w3c.jigsaw.webdav.DAVFrame
   org.w3c.jigedit.webdav.frames.CvsDAVFileFrame

CvsDAVFileFrame
public class CvsDAVFileFrame extends DAVFrame (Code)
This subclass of HTTPFrame check cvs before performing a PUT request. If a CVS directory exists
    If the resource file exists
      If resource file not up to date Fail.
      Else perform PUT and commit it into cvs.
    Else perform PUT, add and commit it into cvs.
Else perform PUT.
author:
   Benoit Mahe


Field Summary
final public static  booleandebug
    
protected  FileresDirectory
    


Method Summary
protected  voidadd(Request request)
    
protected  booleancheckCvsManager()
    
protected  voidcommit(Request request)
    
protected  voidcommit(Request request, String msg)
    
public  StringcomputeETag()
    
public  Replydelete(Request request)
     The WEBDAV DELETE method, actually the resource (file, directory) is moved into the trash directory which is not accessible via HTTP.
protected synchronized  ReplydeleteFileResource(Request request)
     The DELETE method delete the file and perform a cvs remove.
protected static  Replyerror(Request request, int status, String title, String msg)
    
protected  FilegetBackupFile()
    
protected synchronized  CvsDirectorygetCvsManager()
    
protected synchronized  FilegetResourceDirectory()
    
public  booleanisAutoUpdatable()
     tell if we must always do an update.
public  ReplyInterfaceperform(RequestInterface req)
     Perform a cvs update before perform a GET,HEAD,POST request.
public  Replyput(Request request)
     The WEBDAV PUT method.
protected  ReplyputFileResource(Request request)
     Change the content of the associated FileResource.
protected  intstatus()
    
protected  StringstatusToString(int status)
    
protected  voidupdate()
    

Field Detail
debug
final public static boolean debug(Code)



resDirectory
protected File resDirectory(Code)





Method Detail
add
protected void add(Request request) throws CvsException(Code)

exception:
  CvsException - if the CVS process failed



checkCvsManager
protected boolean checkCvsManager()(Code)



commit
protected void commit(Request request) throws CvsException(Code)

exception:
  CvsException - if the CVS process failed



commit
protected void commit(Request request, String msg) throws CvsException(Code)

exception:
  CvsException - if the CVS process failed



computeETag
public String computeETag()(Code)
Get this resource Etag string, it will be computed using FileETag MTime Size directive like in Apache, this will fit some needs for our own server farm, it won't hurt anyway/ a string or null if not applicable



delete
public Reply delete(Request request) throws ProtocolException, ResourceException(Code)
The WEBDAV DELETE method, actually the resource (file, directory) is moved into the trash directory which is not accessible via HTTP.
Parameters:
  request - The request to handle.
exception:
  ProtocolException - If processsing the request failed.
exception:
  ResourceException - If the resource got a fatal error.



deleteFileResource
protected synchronized Reply deleteFileResource(Request request) throws ProtocolException, ResourceException(Code)
The DELETE method delete the file and perform a cvs remove.
Parameters:
  request - The request to handle.
exception:
  ProtocolException - if a protocol error occurs
exception:
  ResourceException - If the resource got a fatal error.



error
protected static Reply error(Request request, int status, String title, String msg)(Code)



getBackupFile
protected File getBackupFile()(Code)



getCvsManager
protected synchronized CvsDirectory getCvsManager() throws CvsException(Code)



getResourceDirectory
protected synchronized File getResourceDirectory()(Code)



isAutoUpdatable
public boolean isAutoUpdatable()(Code)
tell if we must always do an update.



perform
public ReplyInterface perform(RequestInterface req) throws ProtocolException, ResourceException(Code)
Perform a cvs update before perform a GET,HEAD,POST request.
Parameters:
  req - The request to handle.
exception:
  ProtocolException - If processsing the request failed.
exception:
  ResourceException - If the resource got a fatal error.



put
public Reply put(Request request) throws ProtocolException, ResourceException(Code)
The WEBDAV PUT method.
Parameters:
  request - The request to handle.
exception:
  ProtocolException - If processsing the request failed.
exception:
  ResourceException - If the resource got a fatal error.



putFileResource
protected Reply putFileResource(Request request) throws ProtocolException, ResourceException(Code)
Change the content of the associated FileResource. +cvs action (commit, update)
Parameters:
  request - The incomming request.
exception:
  org.w3c.tools.resources.ProtocolException - if a protocol error occurs
exception:
  org.w3c.tools.resources.ResourceException - if a server error occurs



status
protected int status() throws CvsException(Code)

exception:
  CvsException - if the CVS process failed



statusToString
protected String statusToString(int status)(Code)



update
protected void update() throws CvsException(Code)

exception:
  CvsException - if the CVS process failed



Fields inherited from org.w3c.jigsaw.webdav.DAVFrame
protected static int ATTR_CREATION_DATE(Code)(Java Doc)
protected static int ATTR_DEAD_PROPERTIES(Code)(Java Doc)
protected static int ATTR_LOCK_DATE(Code)(Java Doc)
protected static int ATTR_LOCK_DEPTH(Code)(Java Doc)
protected static int ATTR_LOCK_OWNER(Code)(Java Doc)
protected static int ATTR_LOCK_TIMEOUT(Code)(Java Doc)
protected static int ATTR_LOCK_TOKEN(Code)(Java Doc)
protected static int ATTR_LOCK_USERNAME(Code)(Java Doc)
final public static int COND_OK_LOCK(Code)(Java Doc)
final public static Long DEFAULT_LOCK_TIMEOUT(Code)(Java Doc)
final public static String LOCKED_REREFENCE(Code)(Java Doc)
final public static String LOCK_EXPIRE(Code)(Java Doc)
final public static String LOCK_OWNER(Code)(Java Doc)
final public static String LOCK_TIMEOUT(Code)(Java Doc)
final public static String LOCK_TOKEN(Code)(Java Doc)
final public static String LOCK_USERNAME(Code)(Java Doc)
final public static Long MAX_LOCK_TIMEOUT(Code)(Java Doc)
final public static String REMAINING_PATH(Code)(Java Doc)
protected static HttpMimeType collectioncontenttype(Code)(Java Doc)
protected Hashtable deadindex(Code)(Java Doc)
protected boolean deadpropmodified(Code)(Java Doc)
final public static boolean debug(Code)(Java Doc)
final public static boolean debugxml(Code)(Java Doc)
protected org.w3c.www.protocol.webdav.DAVManager manager(Code)(Java Doc)
protected Node ownerNode(Code)(Java Doc)
protected static HttpMimeType xmlcontenttype(Code)(Java Doc)

Methods inherited from org.w3c.jigsaw.webdav.DAVFrame
protected static boolean acceptRedirect(DAVRequest request)(Code)(Java Doc)
protected void addContentLanguage(DAVProperties props)(Code)(Java Doc)
protected void addContentLength(DAVProperties props)(Code)(Java Doc)
protected void addContentType(DAVProperties props)(Code)(Java Doc)
protected void addCreationDate(DAVProperties props)(Code)(Java Doc)
protected void addDisplayName(DAVProperties props)(Code)(Java Doc)
protected void addETag(DAVProperties props)(Code)(Java Doc)
protected void addIsCollection(DAVProperties props)(Code)(Java Doc)
protected void addLastModified(DAVProperties props)(Code)(Java Doc)
protected void addLockDiscovery(DAVRequest request, DAVProperties prop)(Code)(Java Doc)
protected void addLockDiscovery(DAVRequest request, Node parent)(Code)(Java Doc)
protected void addResourceType(DAVProperties props)(Code)(Java Doc)
protected void addSupportedLock(DAVProperties prop)(Code)(Java Doc)
protected int checkIf(DAVRequest request) throws HTTPException(Code)(Java Doc)
protected boolean checkLockOwner(DAVRequest request)(Code)(Java Doc)
protected void closeInternalReply(DAVReply reply)(Code)(Java Doc)
protected URL computeDestURL(URL parent, DAVFrame df) throws MalformedURLException(Code)(Java Doc)
public Reply copy(DAVRequest request) throws ProtocolException, ResourceException(Code)(Java Doc)
protected Reply copyCollection(URL destination, DAVRequest request, boolean overwrite) throws ProtocolException, ResourceException(Code)(Java Doc)
protected Reply copyCollection(URL destination, DAVRequest request, boolean overwrite, DAVBody body, Document document) throws ProtocolException, ResourceException, MultiStatusException(Code)(Java Doc)
protected org.w3c.www.protocol.webdav.DAVReply copyDAVResource(DAVRequest req, URL source, URL destination, DAVBody body) throws MultiStatusException(Code)(Java Doc)
protected void copyProperties(DAVRequest req, URL destination, DAVBody body) throws MultiStatusException(Code)(Java Doc)
protected Reply copyResource(URL dst, DAVRequest request, boolean overwrite) throws ProtocolException, ResourceException(Code)(Java Doc)
protected Reply createDAVReply(DAVRequest request, int status, Document document)(Code)(Java Doc)
protected DAVRequest createInternalRequest(DAVRequest request, String mtd, URL url, Hashtable headers, Document document)(Code)(Java Doc)
protected DAVRequest createInternalRequest(DAVRequest req, String mtd, URL url, Hashtable headers, InputStream in)(Code)(Java Doc)
protected DAVRequest createInternalRequest(DAVRequest req, String mtd, URL url, Hashtable headers)(Code)(Java Doc)
protected org.w3c.www.protocol.webdav.DAVRequest createRequest(DAVRequest req, String mtd, URL url, Hashtable headers, InputStream in)(Code)(Java Doc)
protected org.w3c.www.protocol.webdav.DAVRequest createRequest(DAVRequest request, String mtd, URL url, Hashtable headers)(Code)(Java Doc)
protected org.w3c.www.protocol.webdav.DAVRequest createRequest(DAVRequest request, String mtd, URL url, Hashtable headers, Document document)(Code)(Java Doc)
public Reply davextended(DAVRequest request) throws ProtocolException, ResourceException(Code)(Java Doc)
protected String decodeURL(DAVRequest request, String encoded) throws HTTPException(Code)(Java Doc)
public Reply delete(Request request) throws ProtocolException, ResourceException(Code)(Java Doc)
protected Reply dupReply(DAVRequest request, org.w3c.www.protocol.webdav.DAVReply rep, boolean created)(Code)(Java Doc)
public Reply extended(Request request) throws ProtocolException, ResourceException(Code)(Java Doc)
public Reply get(Request request) throws ProtocolException, ResourceException(Code)(Java Doc)
protected HttpTokenList getAllow()(Code)(Java Doc)
protected DAVBody getBody(DAVRequest request) throws HTTPException(Code)(Java Doc)
protected DAVResponse[] getChildResponses(DAVRequest request, DAVPropFind dpf, Document document, boolean deep)(Code)(Java Doc)
public long getCreationDate()(Code)(Java Doc)
protected int getCurrentLockDepth()(Code)(Java Doc)
protected Node getCurrentLockOwner(DAVRequest request)(Code)(Java Doc)
protected long getCurrentLockTimeout(DAVRequest request)(Code)(Java Doc)
protected String getCurrentLockToken(DAVRequest request)(Code)(Java Doc)
protected String getCurrentLockUsername(DAVRequest request)(Code)(Java Doc)
public ArrayDictionary getDeadProperties()(Code)(Java Doc)
protected synchronized Hashtable getDeadPropertiesIndex()(Code)(Java Doc)
protected synchronized String getNewLockToken()(Code)(Java Doc)
protected DAVProperties getPropNames(DAVRequest request, Document doc)(Code)(Java Doc)
protected DAVPropStat[] getPropStat(DAVRequest request, Document doc, DAVProperties dp)(Code)(Java Doc)
protected DAVProperties getProperties(DAVRequest request, Document doc, DAVProperties dp)(Code)(Java Doc)
protected DAVProperties getProperties(DAVRequest request, Document doc)(Code)(Java Doc)
protected DAVProperties getPropertiesForCopy(Document doc)(Code)(Java Doc)
protected DAVResponse getResponse(DAVRequest request, DAVPropFind dpf, Document document)(Code)(Java Doc)
protected String getStatusLine(int status)(Code)(Java Doc)
protected long getTokenExpirationDate(DAVRequest request)(Code)(Java Doc)
protected boolean hasIntProperty(int idx)(Code)(Java Doc)
protected boolean hasLongProperty(int idx)(Code)(Java Doc)
protected boolean hasProperty(int idx)(Code)(Java Doc)
protected boolean hasStringProperty(int idx)(Code)(Java Doc)
public void initialize(Object values)(Code)(Java Doc)
protected Reply internalCopyCollection(URL destination, DAVRequest request, boolean overwrite, DAVBody body, Document document) throws ProtocolException, ResourceException, MultiStatusException(Code)(Java Doc)
protected DAVReply internalCopyDAVResource(DAVRequest req, URL source, URL destination, DAVBody body) throws MultiStatusException(Code)(Java Doc)
protected void internalCopyProperties(DAVRequest req, URL destination, DAVBody body) throws MultiStatusException(Code)(Java Doc)
protected Reply internalCopyResource(URL dst, DAVRequest request, boolean overwrite) throws ProtocolException, ResourceException(Code)(Java Doc)
public boolean isCollection()(Code)(Java Doc)
protected boolean isLockable(DAVRequest request)(Code)(Java Doc)
protected boolean isLocked(DAVRequest request)(Code)(Java Doc)
protected static boolean isReadOnly(String propname)(Code)(Java Doc)
protected synchronized void lock(String token, int depth, String timeouts, String username, Node owner) throws HTTPException(Code)(Java Doc)
public synchronized Reply lock(DAVRequest request) throws ProtocolException, ResourceException(Code)(Java Doc)
protected boolean lookupDirectory(LookupState ls, LookupResult lr) throws ProtocolException(Code)(Java Doc)
protected boolean lookupResource(LookupState ls, LookupResult lr) throws ProtocolException(Code)(Java Doc)
protected boolean matchETag(HttpEntityTag retag)(Code)(Java Doc)
protected boolean matchLockToken(DAVRequest request, String locktoken)(Code)(Java Doc)
public Reply mkcol(DAVRequest request) throws ProtocolException, ResourceException(Code)(Java Doc)
public Reply move(DAVRequest request) throws ProtocolException, ResourceException(Code)(Java Doc)
public Reply options(Request request) throws ProtocolException, ResourceException(Code)(Java Doc)
public ReplyInterface perform(RequestInterface req) throws ProtocolException, ResourceException(Code)(Java Doc)
public Reply post(Request request) throws ProtocolException, ResourceException(Code)(Java Doc)
public Reply propfind(DAVRequest request) throws ProtocolException, ResourceException(Code)(Java Doc)
public Reply proppatch(DAVRequest request) throws ProtocolException, ResourceException(Code)(Java Doc)
public Reply put(Request request) throws ProtocolException, ResourceException(Code)(Java Doc)
protected synchronized void refreshLock(String timeouts)(Code)(Java Doc)
public void registerResource(FramedResource resource)(Code)(Java Doc)
protected synchronized void reloadDeadProperties()(Code)(Java Doc)
protected DAVPropStat removeDAVProperties(DAVProperties props, Document document) throws DAVPropertyException(Code)(Java Doc)
protected synchronized void removeDeadProperty(Element el) throws DOMException(Code)(Java Doc)
protected void removeDeadProperty(DAVNode node, DAVProperties okdp, Document document) throws DAVPropertyException(Code)(Java Doc)
protected void removeLiveProperty(DAVNode node, DAVProperties okdp, Document document) throws DAVPropertyException(Code)(Java Doc)
protected synchronized void saveDeadProperties()(Code)(Java Doc)
protected DAVPropStat setDAVProperties(DAVProperties props, Document document) throws DAVPropertyException(Code)(Java Doc)
protected synchronized void setDeadProperty(Element el) throws DOMException(Code)(Java Doc)
protected void setDeadProperty(DAVNode node, DAVProperties okdp, Document document) throws DAVPropertyException(Code)(Java Doc)
protected void setLiveProperty(DAVNode node, DAVProperties okdp, Document document) throws DAVPropertyException(Code)(Java Doc)
protected void setLockOwner(Node owner)(Code)(Java Doc)
protected void setTimeout(String timeouts)(Code)(Java Doc)
protected void skipBody(org.w3c.www.protocol.webdav.DAVReply reply)(Code)(Java Doc)
protected void unlock()(Code)(Java Doc)
public synchronized Reply unlock(DAVRequest request) throws ProtocolException, ResourceException(Code)(Java Doc)
protected void updateLockDate(DAVRequest request)(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.