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