Consists of methods to establish connection with SAP Mobile Platform.
com.sap.smp.rest
public class ClientConnection implements ISDMNetListener, INetListener
All members of ClientConnection, including inherited members.
Constructors| Modifier and Type | Constructor | Description |
|---|---|---|
| public | ClientConnection(Context, String, String, String, RequestManager) | Initialize the client connection with application context, application name, domain,security configuration and request manager. |
| public | ClientConnection(Context, String, String, String, SDMRequestManager) | Initialize the client connection with application context, application name, domain,security configuration and request manager. |
| Modifier and Type | Method | Description |
|---|---|---|
| public String | getApplicationID() | Return Application ID. |
| public RequestManager | getDefaultRequestManager() | |
| public String | getDomain() | Return Domain. |
| public SDMRequestManager | getRequestManager() | Return Request Manager object. |
| public String | getSecurityConfig() | Return Security Configuration. |
| public String | getServerHost() | Return Server host. |
| public void | onError(IRequest, IResponse, IRequestStateElement) | Request library uses this method in case of error/failure scenario during a request operation. |
| public void | onSuccess(IRequest, IResponse) | Request library uses this method in case of successful request. |
| public void | setApplicationConnectionID(String) | Set the application connection ID. |
| public void | setConnectionProfile(String) | Set the URL of the server. |
| public void | setConnectionProfile(boolean, String, String, String, String) | Set the value of host and port for the connection. |
| public void | setDefaultRequestManager(RequestManager) | |
| public void | setTraceLevel(int) | Set the end to end trace level. |
| public void | startTrace() | Start the end to end tracing. |
| public void | stopTrace() | Stop the end to end tracing. |
| public void | uploadTrace() | Upload the BTX file to solution manager for end to end tracing. |