Package org.alfresco.repo.webdav
Class GetMethod
- java.lang.Object
-
- org.alfresco.repo.webdav.WebDAVMethod
-
- org.alfresco.repo.webdav.GetMethod
-
- Direct Known Subclasses:
HeadMethod
public class GetMethod extends WebDAVMethod
Implements the WebDAV GET method- Author:
- gavinc
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.alfresco.repo.webdav.WebDAVMethod
WebDAVMethod.Condition
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
m_returnContent
-
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
Constructors Constructor Description GetMethod()
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
attemptReadContent(org.alfresco.service.cmr.model.FileInfo realNodeInfo, org.alfresco.service.cmr.repository.ContentReader reader)
protected void
executeImpl()
Exceute the WebDAV requestprotected java.lang.String
getContentDispositionHeader(org.alfresco.service.cmr.model.FileInfo nodeInfo)
protected boolean
isReadOnly()
Override and return true if the method is a query method only.protected boolean
isValidQuotedStringHeaderParamChar(char c)
protected void
parseRequestBody()
Parse the request bodyprotected void
parseRequestHeaders()
Parse the request headersprotected void
readContent(org.alfresco.service.cmr.model.FileInfo realNodeInfo, org.alfresco.service.cmr.repository.ContentReader reader)
-
Methods inherited from class org.alfresco.repo.webdav.WebDAVMethod
checkNode, checkNode, createXMLWriter, execute, flushXML, generateLockDiscoveryXML, generateLockDiscoveryXML, generateNamespaceDeclarations, generateResponseImpl, getActionService, getAuthenticationService, getContentService, getContextPath, getDAVHelper, getDAVLockService, getDepth, getFileFolderService, getMimetypeService, getNamespaceService, getNodeForPath, getNodeLockInfo, getNodeService, getPath, getPermissionService, getRequestBodyAsDocument, getRootNodeRef, getSearchService, getServiceRegistry, getServletPath, getSiteId, getStatusForAccessDeniedException, getTenantDomain, getTransactionService, getURLForPath, getWorkingCopy, getXMLOutputFormat, parseDepthHeader, parseIfHeader, setDetails, shouldFlushXMLWriter, toString
-
-
-
-
Method Detail
-
parseRequestHeaders
protected void parseRequestHeaders() throws WebDAVServerException
Parse the request headers- Specified by:
parseRequestHeaders
in classWebDAVMethod
- Throws:
WebDAVServerException
-
parseRequestBody
protected void parseRequestBody() throws WebDAVServerException
Parse the request body- Specified by:
parseRequestBody
in classWebDAVMethod
- Throws:
WebDAVServerException
-
isReadOnly
protected boolean isReadOnly()
Description copied from class:WebDAVMethod
Override and return true if the method is a query method only. The default implementation returns false.- Overrides:
isReadOnly
in classWebDAVMethod
- Returns:
- Returns true always
-
executeImpl
protected void executeImpl() throws WebDAVServerException, java.lang.Exception
Exceute the WebDAV request- Specified by:
executeImpl
in classWebDAVMethod
- Throws:
WebDAVServerException
java.lang.Exception
- any unhandled exception
-
readContent
protected void readContent(org.alfresco.service.cmr.model.FileInfo realNodeInfo, org.alfresco.service.cmr.repository.ContentReader reader) throws java.io.IOException, WebDAVServerException
- Throws:
java.io.IOException
WebDAVServerException
-
attemptReadContent
protected void attemptReadContent(org.alfresco.service.cmr.model.FileInfo realNodeInfo, org.alfresco.service.cmr.repository.ContentReader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
getContentDispositionHeader
protected java.lang.String getContentDispositionHeader(org.alfresco.service.cmr.model.FileInfo nodeInfo)
-
isValidQuotedStringHeaderParamChar
protected boolean isValidQuotedStringHeaderParamChar(char c)
-
-