|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.commons.httpclient.methods.FileRequestEntity
public class FileRequestEntity
A RequestEntity that represents a File.
| Constructor Summary | |
|---|---|
FileRequestEntity(java.io.File file,
java.lang.String contentType)
|
|
| Method Summary | |
|---|---|
long |
getContentLength()
Gets the request entity's length. |
java.lang.String |
getContentType()
Gets the entity's content type. |
boolean |
isRepeatable()
Tests if RequestEntity.writeRequest(OutputStream) can be called more than once. |
void |
writeRequest(java.io.OutputStream out)
Writes the request entity to the given stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileRequestEntity(java.io.File file,
java.lang.String contentType)
| Method Detail |
|---|
public long getContentLength()
RequestEntityEntityEnclosingMethod will use chunk encoding to
transmit the request entity.
getContentLength in interface RequestEntitypublic java.lang.String getContentType()
RequestEntity
getContentType in interface RequestEntityHttpMethod.setRequestHeader(String, String)public boolean isRepeatable()
RequestEntityRequestEntity.writeRequest(OutputStream) can be called more than once.
isRepeatable in interface RequestEntityOutputStream more than once,
false otherwise.
public void writeRequest(java.io.OutputStream out)
throws java.io.IOException
RequestEntity
writeRequest in interface RequestEntityjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||