public class FileUploadCounter extends Object implements org.apache.commons.httpclient.methods.RequestEntity
Modifier and Type | Class and Description |
---|---|
static class |
FileUploadCounter.OutputStreamCounter |
static interface |
FileUploadCounter.ProgressListener |
Constructor and Description |
---|
FileUploadCounter(org.apache.commons.httpclient.methods.RequestEntity entity,
FileUploadCounter.ProgressListener listener)
Initialize class
|
Modifier and Type | Method and Description |
---|---|
long |
getContentLength() |
String |
getContentType() |
boolean |
isRepeatable() |
void |
writeRequest(OutputStream out) |
public FileUploadCounter(org.apache.commons.httpclient.methods.RequestEntity entity, FileUploadCounter.ProgressListener listener)
entity
- - request entitylistener
- - progress listenerpublic void writeRequest(OutputStream out) throws IOException
writeRequest
in interface org.apache.commons.httpclient.methods.RequestEntity
IOException
public long getContentLength()
getContentLength
in interface org.apache.commons.httpclient.methods.RequestEntity
public String getContentType()
getContentType
in interface org.apache.commons.httpclient.methods.RequestEntity
public boolean isRepeatable()
isRepeatable
in interface org.apache.commons.httpclient.methods.RequestEntity
Version: 4.4.12-ice34-b116
Copyright © 2014 The University of Dundee & Open Microscopy Environment. All Rights Reserved.