de.unikassel.android.sdcframework.transmission
Class BasicAuthHttpProtocol
java.lang.Object
de.unikassel.android.sdcframework.transmission.AbstractProtocol
de.unikassel.android.sdcframework.transmission.SimpleHttpProtocol
de.unikassel.android.sdcframework.transmission.BasicAuthHttpProtocol
- All Implemented Interfaces:
- ProtocolStrategy, UpdatableTransmissionComponent<TransmissionProtocolConfiguration>
public final class BasicAuthHttpProtocol
- extends SimpleHttpProtocol
Implementation of the HTTP protocol with basic authentication.
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 |
BasicAuthHttpProtocol
public BasicAuthHttpProtocol(Context context,
UUID uuid,
TransmissionProtocolConfiguration config)
- Constructor
- Parameters:
context
- the contextuuid
- the unique SDC installation identifier for this deviceconfig
- the current transmission configuration
configureForAuthentication
protected final void configureForAuthentication(DefaultHttpClient client,
URL url)
- Description copied from class:
SimpleHttpProtocol
- Method to configure the client for authentication
- Overrides:
configureForAuthentication
in class SimpleHttpProtocol
- Parameters:
client
- the default http client instance to configureurl
- the upload url