Class PutMethod

    • Constructor Detail

      • PutMethod

        public PutMethod()
        Default constructor
    • Method Detail

      • parseRequestBody

        protected void parseRequestBody()
                                 throws WebDAVServerException
        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. This is needed for large content.
        Specified by:
        parseRequestBody in class WebDAVMethod
        Throws:
        WebDAVServerException
      • isCreated

        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.
        Returns:
        true if the content was newly created, false if existing.
      • getContentType

        public String getContentType()
        Retrieve the mimetype of the content sent for the PUT request. The initial value specified in the request may be updated after the file contents have been uploaded if the repository has determined a different mimetype for the content.
        Returns:
        content-type
      • getContentNodeInfo

        public org.alfresco.service.cmr.model.FileInfo getContentNodeInfo()
        The FileInfo for the uploaded file, or null if not yet uploaded.
        Returns:
        FileInfo
      • getFileSize

        public long getFileSize()
        Returns the size of the uploaded file, zero if not yet uploaded.
        Returns:
        the fileSize