List of usage examples for org.apache.commons.httpclient HttpConstants getContentBytes
public static byte[] getContentBytes(String paramString1, String paramString2)
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())); }