de.unikassel.android.sdcframework.transmission
Class UnknownProtocol
java.lang.Object
de.unikassel.android.sdcframework.transmission.AbstractProtocol
de.unikassel.android.sdcframework.transmission.UnknownProtocol
- All Implemented Interfaces:
- ProtocolStrategy, UpdatableTransmissionComponent<TransmissionProtocolConfiguration>
public class UnknownProtocol
- extends AbstractProtocol
Implementation of a default behavior for unknown protocol types.
This protocol will just raise an URL error.
Method Summary |
protected boolean |
doUploadFile(File file)
Does upload a file according to the concrete protocol |
Methods inherited from class de.unikassel.android.sdcframework.transmission.AbstractProtocol |
doHandleError, getAuthPassword, getContext, getFileName, getHost, getLastError, getMd5Password, getURL, getUserName, getUuid, setFileName, setLastError, setURL, updateConfiguration, uploadFile |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnknownProtocol
public UnknownProtocol(Context context,
UUID uuid,
TransmissionProtocolConfiguration config)
- Constructor
- Parameters:
context
- the contextuuid
- the unique SDC installation identifier for this deviceconfig
- the current transmission configuration
doUploadFile
protected boolean doUploadFile(File file)
- Description copied from class:
AbstractProtocol
- Does upload a file according to the concrete protocol
- Specified by:
doUploadFile
in class AbstractProtocol
- Parameters:
file
- the file for upload
- Returns:
- true if successful, false otherwise ( last error will be set in
this case )