|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.httpclient.methods.ByteArrayRequestEntity
A RequestEntity that contains an array of bytes.
| Constructor Summary | |
ByteArrayRequestEntity(byte[] content)
Creates a new entity with the given content. |
|
ByteArrayRequestEntity(byte[] content,
java.lang.String contentType)
Creates a new entity with the given content and content type. |
|
| Method Summary | |
byte[] |
getContent()
|
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ByteArrayRequestEntity(byte[] content)
content - The content to set.
public ByteArrayRequestEntity(byte[] content,
java.lang.String contentType)
content - The content to set.contentType - The content type to set or null.| Method Detail |
public boolean isRepeatable()
RequestEntityRequestEntity.writeRequest(OutputStream) can be called more than once.
isRepeatable in interface RequestEntitytruepublic java.lang.String getContentType()
RequestEntity
getContentType in interface RequestEntityHttpMethod.setRequestHeader(String, String)
public void writeRequest(java.io.OutputStream out)
throws java.io.IOException
RequestEntity
writeRequest in interface RequestEntityout -
java.io.IOExceptionpublic long getContentLength()
RequestEntity
getContentLength in interface RequestEntitypublic byte[] getContent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||