Example usage for org.apache.commons.httpclient HttpConstants getContentBytes

List of usage examples for org.apache.commons.httpclient HttpConstants getContentBytes

Introduction

In this page you can find the example usage for org.apache.commons.httpclient HttpConstants getContentBytes.

Prototype

public static byte[] getContentBytes(String paramString1, String paramString2) 

Source Link

Usage

From source file:org.apache.webdav.lib.methods.HttpRequestBodyMethodBase.java

/**
 * Set my request body content to the contents of a string.
 *
 * @since 2.0/*  www.  java2 s  .  c o m*/
 */
public void setRequestBody(String bodydata) {
    checkNotUsed();
    setRequestBody(HttpConstants.getContentBytes(bodydata, getRequestCharSet()));
}