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

Package class diagram package ConnectionStrategy
All Superinterfaces:
ChainWorker<ProtocolStrategy>
All Known Implementing Classes:
AbstractConnectionStrategy, MobileConnectionStrategy, UseAvailableConnectionStrategy, WLANConnectionStrategy

public interface ConnectionStrategy
extends ChainWorker<ProtocolStrategy>

Interface for connection strategy types.

A connection strategy is configured for the upload manager to control the kind of Internet access.
Any connection strategy is a worker in a chain of strategies. If a strategy has a successor and the strategy fails, it will call its successor to try another connection strategy.


Method Summary
 boolean isConnectionAvailable(ProtocolStrategy protocolStrategy)
          Method to test for an available connection
 
Methods inherited from interface de.unikassel.android.sdcframework.util.facade.ChainWorker
doWork, getSuccessor, setSuccessor, withSuccessor
 

Method Detail

isConnectionAvailable

boolean isConnectionAvailable(ProtocolStrategy protocolStrategy)
Method to test for an available connection

Parameters:
protocolStrategy - the upload strategy
Returns:
true if a connection is available, false otherwise