public class PutMethod extends WebDAVMethod implements ActivityPostProducer
WebDAVMethod.Conditionlogger, 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
|
org.alfresco.service.cmr.model.FileInfo |
getContentNodeInfo()
The FileInfo for the uploaded file, or null if not yet uploaded.
|
java.lang.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(ActivityPoster 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, toStringprotected void parseRequestHeaders()
throws WebDAVServerException
parseRequestHeaders in class WebDAVMethodWebDAVServerExceptionprotected void parseRequestBody()
throws WebDAVServerException
parseRequestBody in class WebDAVMethodWebDAVServerExceptionprotected void executeImpl()
throws WebDAVServerException,
java.lang.Exception
executeImpl in class WebDAVMethodWebDAVServerExceptionjava.lang.Exception - any unhandled exceptionprotected boolean isCreated()
WebDAVMethod.execute() invocation to
check whether the resource was new (created) or over-writing existing
content.public java.lang.String getContentType()
public org.alfresco.service.cmr.model.FileInfo getContentNodeInfo()
public long getFileSize()
protected void postActivity()
throws WebDAVServerException
WebDAVServerExceptionpublic void setActivityPoster(ActivityPoster activityPoster)
setActivityPoster in interface ActivityPostProducerCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.