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

java.lang.Objectde.unikassel.android.sdcframework.transmission.FailSafeProtocol
public class FailSafeProtocol
Implementation of a protocol which does never fail, to be used for test purpose.
| Field Summary | |
|---|---|
private Context |
context
The context |
| Constructor Summary | |
|---|---|
FailSafeProtocol(Context context)
Constructor |
|
| Method Summary | |
|---|---|
Context |
getContext()
Getter for the application context |
String |
getFileName()
Getter for name of the file to upload |
String |
getHost()
Getter for the host |
String |
getLastError()
Getter for the last error |
URL |
getURL()
Getter for the URL |
void |
setFileName(String fileName)
Setter for the file to upload |
void |
setLastError(String lastError)
Setter for the last error |
void |
updateConfiguration(Context context,
TransmissionProtocolConfiguration config)
Method to update the component by a configuration |
boolean |
uploadFile()
Does upload the current file set |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final Context context
| Constructor Detail |
|---|
public FailSafeProtocol(Context context)
context - the application context| Method Detail |
|---|
public void updateConfiguration(Context context,
TransmissionProtocolConfiguration config)
UpdatableTransmissionComponent
updateConfiguration in interface UpdatableTransmissionComponent<TransmissionProtocolConfiguration>context - the application contextconfig - the configuration to update frompublic boolean uploadFile()
ProtocolStrategy
uploadFile in interface ProtocolStrategypublic Context getContext()
ProtocolStrategy
getContext in interface ProtocolStrategypublic URL getURL()
ProtocolStrategy
getURL in interface ProtocolStrategypublic String getLastError()
ProtocolStrategy
getLastError in interface ProtocolStrategypublic void setLastError(String lastError)
ProtocolStrategy
setLastError in interface ProtocolStrategylastError - the laste error to setpublic void setFileName(String fileName)
ProtocolStrategy
setFileName in interface ProtocolStrategyfileName - the name of the file to uploadpublic String getFileName()
ProtocolStrategy
getFileName in interface ProtocolStrategypublic String getHost()
ProtocolStrategy
getHost in interface ProtocolStrategy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||