ConnectionFactory class

Deprecated. since 3.0, Use com.sap.mobile.lib.request.ConnectionFactory ConnectionFactory class implementation, which is responsible to create the connection.

Package

com.sap.mobile.lib.sdmconnectivity

Syntax

public class ConnectionFactory implements ISDMPreferenceChangeListener

Implemented interfaces

Members

All members of ConnectionFactory, including inherited members.

Constructors Methods
Modifier and Type Method Description
public void clearHeaders()  
public void close()  
public static DefaultHttpClient getHttpClient(final String)  
public HttpResponse makeRequest(final String, final byte[]) Make the request.
public void onPreferenceChanged(String, Object) Callback method for preference change event.
public void setConnectionHeader(final String, final String)  
public void setRequestMethod(final int) Set the HTTP request method.

Usage

This class contains the platform related connection handling. This means, that for RIM and Android devices, the same network component can be used, only this ConnectionFactory must be different, because contains platform specific classes.