public class PutMethod extends WebDAVMethod implements ActivityPostProducer
WebDAVMethod.Condition
logger, m_childToParent, m_conditions, m_davHelper, m_depth, m_parentLockInfo, m_request, m_resourceTag, m_response, m_rootNodeRef, m_strPath, m_userAgent
Constructor and Description |
---|
PutMethod()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
executeImpl()
Execute the WebDAV request
|
FileInfo |
getContentNodeInfo()
The FileInfo for the uploaded file, or null if not yet uploaded.
|
String |
getContentType()
Retrieve the mimetype of the content sent for the PUT request.
|
long |
getFileSize()
Returns the size of the uploaded file, zero if not yet uploaded.
|
protected boolean |
isCreated()
Can be used after a successful
WebDAVMethod.execute() invocation to
check whether the resource was new (created) or over-writing existing
content. |
protected void |
parseRequestBody()
Clears the aspect added by a LOCK request for a new file, so
that the Timer started by the LOCK request will not remove the
node now that the PUT request has been received.
|
protected void |
parseRequestHeaders()
Parse the request headers
|
protected void |
postActivity()
Create an activity post.
|
void |
setActivityPoster(WebDAVActivityPoster activityPoster) |
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, isReadOnly, parseDepthHeader, parseIfHeader, setDetails, shouldFlushXMLWriter, toString
protected void parseRequestHeaders() throws WebDAVServerException
parseRequestHeaders
in class WebDAVMethod
WebDAVServerException
protected void parseRequestBody() throws WebDAVServerException
parseRequestBody
in class WebDAVMethod
WebDAVServerException
protected void executeImpl() throws WebDAVServerException, Exception
executeImpl
in class WebDAVMethod
WebDAVServerException
Exception
- any unhandled exceptionprotected boolean isCreated()
WebDAVMethod.execute()
invocation to
check whether the resource was new (created) or over-writing existing
content.public String getContentType()
public FileInfo getContentNodeInfo()
public long getFileSize()
protected void postActivity() throws WebDAVServerException
WebDAVServerException
public void setActivityPoster(WebDAVActivityPoster activityPoster)
setActivityPoster
in interface ActivityPostProducer
Copyright © 2005–2017 Alfresco Software. All rights reserved.