ByteArrayRequestEntity
, FileRequestEntity
, InputStreamRequestEntity
, MultipartRequestEntity
, StringRequestEntity
public interface RequestEntity
Modifier and Type | Method | Description |
---|---|---|
long |
getContentLength() |
Gets the request entity's length.
|
java.lang.String |
getContentType() |
Gets the entity's content type.
|
boolean |
isRepeatable() |
Tests if
writeRequest(OutputStream) can be called more than once. |
void |
writeRequest(java.io.OutputStream out) |
Writes the request entity to the given stream.
|
boolean isRepeatable()
writeRequest(OutputStream)
can be called more than once.OutputStream
more than once,
false otherwise.void writeRequest(java.io.OutputStream out) throws java.io.IOException
out
- java.io.IOException
long getContentLength()
EntityEnclosingMethod
will use chunk encoding to
transmit the request entity.java.lang.String getContentType()
HttpMethod.setRequestHeader(String, String)
Copyright (c) 1999-2005 - Apache Software Foundation