public class FileRequestEntity extends Object implements RequestEntity
| Constructor and Description |
|---|
FileRequestEntity(File file,
String contentType) |
| Modifier and Type | Method and Description |
|---|---|
long |
getContentLength()
Gets the request entity's length.
|
String |
getContentType()
Gets the entity's content type.
|
boolean |
isRepeatable()
Tests if
RequestEntity.writeRequest(OutputStream) can be called more than once. |
void |
writeRequest(OutputStream out)
Writes the request entity to the given stream.
|
public long getContentLength()
RequestEntityEntityEnclosingMethod will use chunk encoding to
transmit the request entity.getContentLength in interface RequestEntitypublic String getContentType()
RequestEntitygetContentType 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(OutputStream out) throws IOException
RequestEntitywriteRequest in interface RequestEntityIOExceptionCopyright © 2021 Internet2. All rights reserved.