org.apache.commons.httpclient.methods
Interface RequestEntity
- ByteArrayRequestEntity, InputStreamRequestEntity, MultipartRequestEntity, StringRequestEntity
public interface RequestEntity
- 3.0
getContentLength
public long getContentLength()
- either a number >= 0 or
getContentType
public String getContentType()
Gets the entity's content type. This content type will be used as the value for the
"Content-Type" header.
- the entity's content type
HttpMethod.setRequestHeader(String,String)
isRepeatable
public boolean isRepeatable()
- true if the entity can be written to
OutputStream
more than once,
false otherwise.
writeRequest
public void writeRequest(OutputStream out)
throws IOException
Writes the request entity to the given stream.
out
-
Copyright (c) 1999-2005 - Apache Software Foundation