de.unikassel.android.sdcframework.transmission.facade
Interface ProtocolStrategy

Package class diagram package ProtocolStrategy
All Superinterfaces:
UpdatableTransmissionComponent<TransmissionProtocolConfiguration>
All Known Implementing Classes:
AbstractProtocol, BasicAuthHttpProtocol, FailSafeProtocol, SimpleHttpProtocol, UnknownProtocol

public interface ProtocolStrategy
extends UpdatableTransmissionComponent<TransmissionProtocolConfiguration>

Interface for protocol strategy types which do implement a special transfer protocol.

See Also:
BasicAuthHttpProtocol

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
 boolean uploadFile()
          Does upload the current file set
 
Methods inherited from interface de.unikassel.android.sdcframework.transmission.facade.UpdatableTransmissionComponent
updateConfiguration
 

Method Detail

uploadFile

boolean uploadFile()
Does upload the current file set

Returns:
true if successful, flase otherwise

getContext

Context getContext()
Getter for the application context

Returns:
the application context

getURL

URL getURL()
Getter for the URL

Returns:
the URL

getLastError

String getLastError()
Getter for the last error

Returns:
the last error description or null if no error did occur

setLastError

void setLastError(String lastError)
Setter for the last error

Parameters:
lastError - the laste error to set

setFileName

void setFileName(String fileName)
Setter for the file to upload

Parameters:
fileName - the name of the file to upload

getFileName

String getFileName()
Getter for name of the file to upload

Returns:
the file to upload

getHost

String getHost()
Getter for the host

Returns:
the host if url is valid, otherwise null