Example usage for com.liferay.portal.kernel.webdav.methods Method PUT

List of usage examples for com.liferay.portal.kernel.webdav.methods Method PUT

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.webdav.methods Method PUT.

Prototype

String PUT

To view the source code for com.liferay.portal.kernel.webdav.methods Method PUT.

Click Source Link

Usage

From source file:com.liferay.document.library.webdav.test.BaseWebDAVTestCase.java

License:Open Source License

public Tuple servicePut(String name, byte[] data, String lock) {
    Map<String, String> headers = null;

    if (Validator.isNotNull(lock)) {
        headers = new HashMap<>();

        headers.put("If", "<opaquelocktoken:" + lock + ">");
    }/* w ww  . j av  a 2 s.  c  o m*/

    return service(Method.PUT, name, headers, data);
}