|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectde.unikassel.android.sdcframework.transmission.UploadManager
public class UploadManager
The manager responsible to handle the file upload to a remote server.
| Field Summary | |
|---|---|
protected ConnectionStrategy |
connectionStrategy
The connection strategy to prepare Internet access via URLConnection |
private Class<?> |
controlActivityClass
The control activity for notification purpose. |
protected ProtocolStrategy |
protocolStrategy
The strategy implementing the protocol |
private UUID |
uuid
The unique device identifier created by the service |
| Constructor Summary | |
|---|---|
UploadManager(Context applicationContext,
TransmissionConfiguration config,
UUID uuid,
Class<?> controlActivityClass)
Constructor |
|
| Method Summary | |
|---|---|
ConnectionStrategy |
getConnectionStrategy()
Getter for the connectionStrategy |
ProtocolStrategy |
getProtocolStrategy()
Getter for the protocolStrategy |
void |
updateConfiguration(Context context,
TransmissionConfiguration config)
Method to update the component by a configuration |
boolean |
uploadFile(String fileName)
Does upload a file to the configured remote server using the given authentication data |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ConnectionStrategy connectionStrategy
protected ProtocolStrategy protocolStrategy
private final UUID uuid
private final Class<?> controlActivityClass
| Constructor Detail |
|---|
public UploadManager(Context applicationContext,
TransmissionConfiguration config,
UUID uuid,
Class<?> controlActivityClass)
applicationContext - the application contextconfig - the current transmission configurationuuid - the unique device identifier created by the servicecontrolActivityClass - the control activity class or null| Method Detail |
|---|
public ConnectionStrategy getConnectionStrategy()
public ProtocolStrategy getProtocolStrategy()
public void updateConfiguration(Context context,
TransmissionConfiguration config)
UpdatableTransmissionComponent
updateConfiguration in interface UpdatableTransmissionComponent<TransmissionConfiguration>context - the application contextconfig - the configuration to update frompublic boolean uploadFile(String fileName)
fileName - the file to upload
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||