public class OutputStreamRequestEntity
extends java.lang.Object
implements org.apache.commons.httpclient.methods.RequestEntity
Constructor and Description |
---|
OutputStreamRequestEntity(java.io.ByteArrayOutputStream outputStream) |
OutputStreamRequestEntity(java.io.ByteArrayOutputStream outputStream,
java.lang.String contentType) |
Modifier and Type | Method and Description |
---|---|
long |
getContentLength() |
java.lang.String |
getContentType() |
boolean |
isRepeatable() |
void |
writeRequest(java.io.OutputStream outputStream) |
public OutputStreamRequestEntity(java.io.ByteArrayOutputStream outputStream)
public OutputStreamRequestEntity(java.io.ByteArrayOutputStream outputStream, java.lang.String contentType)
public boolean isRepeatable()
isRepeatable
in interface org.apache.commons.httpclient.methods.RequestEntity
public void writeRequest(java.io.OutputStream outputStream) throws java.io.IOException
writeRequest
in interface org.apache.commons.httpclient.methods.RequestEntity
java.io.IOException
public long getContentLength()
getContentLength
in interface org.apache.commons.httpclient.methods.RequestEntity
public java.lang.String getContentType()
getContentType
in interface org.apache.commons.httpclient.methods.RequestEntity