|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.webdav.WebDAVMethod
org.alfresco.repo.webdav.PropFindMethod
public class PropFindMethod
Implements the WebDAV PROPFIND method
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.alfresco.repo.webdav.WebDAVMethod |
---|
WebDAVMethod.Condition |
Field Summary | |
---|---|
protected static int |
FIND_PROPS
|
protected static int |
GET_ALL_PROPS
|
protected static int |
GET_NAMED_PROPS
|
protected int |
m_mode
|
protected java.util.HashMap |
m_namespaces
|
protected java.util.ArrayList |
m_properties
|
Fields inherited from class org.alfresco.repo.webdav.WebDAVMethod |
---|
logger, m_childToParent, m_conditions, m_davHelper, m_depth, m_parentLockInfo, m_request, m_resourceTag, m_response, m_rootNodeRef, m_strPath, m_userAgent |
Constructor Summary | |
---|---|
PropFindMethod()
Default constructor |
Method Summary | |
---|---|
protected WebDAVProperty |
createProperty(org.w3c.dom.Node node)
Creates a WebDAVProperty from the given XML node |
protected org.dom4j.io.XMLWriter |
createXMLWriter()
Create an XML writer for the response |
protected void |
executeImpl()
Execute the main WebDAV request processing |
protected void |
generateAllPropertiesResponse(org.dom4j.io.XMLWriter xml,
org.alfresco.service.cmr.model.FileInfo nodeInfo,
boolean isDir)
Generates the XML response for a PROPFIND request that asks for all known properties |
protected void |
generateFindPropertiesResponse(org.dom4j.io.XMLWriter xml,
org.alfresco.service.cmr.model.FileInfo nodeInfo,
boolean isDir)
Generates the XML response for a PROPFIND request that asks for a list of all known properties |
protected void |
generateLockDiscoveryResponse(org.dom4j.io.XMLWriter xml,
org.alfresco.service.cmr.model.FileInfo nodeInfo,
boolean isDir)
Generates the XML response snippet showing the lock information for the given path |
protected void |
generateResponseForNode(org.dom4j.io.XMLWriter xml,
org.alfresco.service.cmr.model.FileInfo nodeInfo,
java.lang.String path)
Generates the required response XML for the current node |
int |
getMode()
Return the find mode |
protected boolean |
isReadOnly()
Override and return true if the method is a query method only. |
protected void |
parseRequestBody()
Parse the request body |
protected void |
parseRequestHeaders()
Parse the request headers |
protected void |
writeLockTypes(org.dom4j.io.XMLWriter xml)
Output the supported lock types XML element |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final int GET_ALL_PROPS
protected static final int GET_NAMED_PROPS
protected static final int FIND_PROPS
protected int m_mode
protected java.util.ArrayList m_properties
protected java.util.HashMap m_namespaces
Constructor Detail |
---|
public PropFindMethod()
Method Detail |
---|
public final int getMode()
protected void parseRequestHeaders() throws WebDAVServerException
parseRequestHeaders
in class WebDAVMethod
WebDAVServerException
protected void parseRequestBody() throws WebDAVServerException
parseRequestBody
in class WebDAVMethod
WebDAVServerException
protected boolean isReadOnly()
WebDAVMethod
isReadOnly
in class WebDAVMethod
protected void executeImpl() throws WebDAVServerException, java.lang.Exception
executeImpl
in class WebDAVMethod
WebDAVServerException
java.lang.Exception
- any unhandled exceptionprotected org.dom4j.io.XMLWriter createXMLWriter() throws java.io.IOException
WebDAVMethod
createXMLWriter
in class WebDAVMethod
java.io.IOException
protected WebDAVProperty createProperty(org.w3c.dom.Node node)
protected void generateResponseForNode(org.dom4j.io.XMLWriter xml, org.alfresco.service.cmr.model.FileInfo nodeInfo, java.lang.String path) throws java.lang.Exception
xml
- XMLWriternode
- NodeRefpath
- String
java.lang.Exception
protected void generateAllPropertiesResponse(org.dom4j.io.XMLWriter xml, org.alfresco.service.cmr.model.FileInfo nodeInfo, boolean isDir) throws java.lang.Exception
xml
- XMLWriternode
- NodeRefisDir
- boolean
java.lang.Exception
protected void generateFindPropertiesResponse(org.dom4j.io.XMLWriter xml, org.alfresco.service.cmr.model.FileInfo nodeInfo, boolean isDir)
xml
- XMLWriternode
- NodeRefisDir
- booleanprotected void generateLockDiscoveryResponse(org.dom4j.io.XMLWriter xml, org.alfresco.service.cmr.model.FileInfo nodeInfo, boolean isDir) throws java.lang.Exception
xml
- XMLWriternode
- NodeRefisDir
- boolean
java.lang.Exception
protected void writeLockTypes(org.dom4j.io.XMLWriter xml)
xml
- XMLWriter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |