eXo JCR :: Component :: Webdav Service 1.15.11-GA

org.exoplatform.services.jcr.webdav.command
Class PutCommand

java.lang.Object
  extended by org.exoplatform.services.jcr.webdav.command.PutCommand

public class PutCommand
extends Object

Created by The eXo Platform SAS Author : Vitaly Guly.

Version:
$Id: $

Constructor Summary
PutCommand(NullResourceLocksHolder nullResourceLocks, javax.ws.rs.core.UriBuilder uriBuilder, MimeTypeRecognizer mimeTypeRecognizer)
          Constructor.
 
Method Summary
 javax.ws.rs.core.Response put(javax.jcr.Session session, String path, InputStream inputStream, String fileNodeType, String contentNodeType, List<String> mixins, String updatePolicyType, String autoVersion, List<String> tokens)
          Webdav Put method implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PutCommand

public PutCommand(NullResourceLocksHolder nullResourceLocks,
                  javax.ws.rs.core.UriBuilder uriBuilder,
                  MimeTypeRecognizer mimeTypeRecognizer)
Constructor.

Parameters:
nullResourceLocks - resource locks.
uriBuilder - - provides data used in 'location' header
mimeTypeRecognizer - - provides mime-type recognizer
Method Detail

put

public javax.ws.rs.core.Response put(javax.jcr.Session session,
                                     String path,
                                     InputStream inputStream,
                                     String fileNodeType,
                                     String contentNodeType,
                                     List<String> mixins,
                                     String updatePolicyType,
                                     String autoVersion,
                                     List<String> tokens)
Webdav Put method implementation.

Parameters:
session - current session
path - resource path
inputStream - stream that contains resource content
fileNodeType - the node type of file node
contentNodeType - the node type of content
mixins - the list of mixins
updatePolicyType - update policy
tokens - tokens
Returns:
the instance of javax.ws.rs.core.Response

eXo JCR :: Component :: Webdav Service 1.15.11-GA

Copyright © 2014 eXo Platform SAS. All Rights Reserved.