Package org.alfresco.repo.webdav
Class GetMethod
java.lang.Object
org.alfresco.repo.webdav.WebDAVMethod
org.alfresco.repo.webdav.GetMethod
- Direct Known Subclasses:
HeadMethod
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
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidattemptReadContent(FileInfo realNodeInfo, ContentReader reader) protected voidExceute the WebDAV requestprotected StringgetContentDispositionHeader(FileInfo nodeInfo) protected booleanOverride and return true if the method is a query method only.protected booleanprotected voidParse the request bodyprotected voidParse the request headersprotected voidreadContent(FileInfo realNodeInfo, 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
-
Field Details
-
m_returnContent
protected boolean m_returnContent
-
-
Constructor Details
-
GetMethod
public GetMethod()Default constructor
-
-
Method Details
-
parseRequestHeaders
Parse the request headers- Specified by:
parseRequestHeadersin classWebDAVMethod- Throws:
WebDAVServerException
-
parseRequestBody
Parse the request body- Specified by:
parseRequestBodyin classWebDAVMethod- Throws:
WebDAVServerException
-
isReadOnly
protected boolean isReadOnly()Description copied from class:WebDAVMethodOverride and return true if the method is a query method only. The default implementation returns false.- Overrides:
isReadOnlyin classWebDAVMethod- Returns:
- Returns true always
-
executeImpl
Exceute the WebDAV request- Specified by:
executeImplin classWebDAVMethod- Throws:
WebDAVServerExceptionException- any unhandled exception
-
readContent
protected void readContent(FileInfo realNodeInfo, ContentReader reader) throws IOException, WebDAVServerException - Throws:
IOExceptionWebDAVServerException
-
attemptReadContent
- Throws:
IOException
-
getContentDispositionHeader
-
isValidQuotedStringHeaderParamChar
protected boolean isValidQuotedStringHeaderParamChar(char c)
-