Enum ResponseStatusCode

java.lang.Object
    com.citrix.mvpn.api.ResponseStatusCode

All Implemented Interfaces:

    java.io.Serializable, java.lang.Comparable<ResponseStatusCode>
<!--NeedCopy-->
public enum ResponseStatusCode
extends java.lang.Enum<ResponseStatusCode>
<!--NeedCopy-->

ResponseStatusCode.java - This enum class provides a list of expected response codes from mVPNSDK to an app when the app tries to call MicroVPNSDK.startTunnel() method.

Response codes are defined as follows:

  • 0 = Tunnel started successfully.
  • 1 = Tunnel failed to start.
  • 2 = Tunnel is already running.
  • 3 = Session is expired. Start tunnel is required.
  • 4 = App is wrapped in MDX mode.
  • 5 = Network Access mode is not Tunneled - Web SSO. Tunnel can be started only in Tunneled - Web SSO mode for explicit SDK app.
  • 6 = App is not managed. Unable to retrieve policies.
  • 7 = No network connection.
  • 8 = Invalid app configuration data.
  • 9 = Invalid OAuth token.
  • 10 = App is in locked state.

Enum Constant Summary

Enum Constant and Description
FOUND_LEGACY_MODE
FOUND_NON_MANAGED_APP
FOUND_NON_WEBSSO_MODE
INVALID_APP_CONFIGURATION_DATA
INVALID_OAUTH_TOKEN
NO_NETWORK_CONNECTION
SESSION_EXPIRED
START_TUNNEL_FAILED
START_TUNNEL_SUCCESS
TUNNEL_ALREADY_RUNNING
APP_LOCKED

Method Summary

Modifier and Type Method and Description
static ResponseStatusCode fromId(int id)
int getValue()
static ResponseStatusCode valueOf(java.lang.String name) Returns the enum constant of this type with the specified name.
static ResponseStatusCode[] values() Returns an array containing the constants of this enum type, in the order they are declared.

Enum Constant Detail

START_TUNNEL_SUCCESS

public static final ResponseStatusCode START_TUNNEL_SUCCESS
<!--NeedCopy-->

START_TUNNEL_FAILED

public static final ResponseStatusCode START_TUNNEL_FAILED
<!--NeedCopy-->

TUNNEL_ALREADY_RUNNING

public static final ResponseStatusCode TUNNEL_ALREADY_RUNNING
<!--NeedCopy-->

SESSION_EXPIRED

public static final ResponseStatusCode SESSION_EXPIRED
<!--NeedCopy-->

FOUND_LEGACY_MODE

public static final ResponseStatusCode FOUND_LEGACY_MODE
<!--NeedCopy-->

FOUND_NON_WEBSSO_MODE

public static final ResponseStatusCode FOUND_NON_WEBSSO_MODE
<!--NeedCopy-->

FOUND_NON_MANAGED_APP

public static final ResponseStatusCode FOUND_NON_MANAGED_APP
<!--NeedCopy-->

NO_NETWORK_CONNECTION

public static final ResponseStatusCode NO_NETWORK_CONNECTION
<!--NeedCopy-->

INVALID_APP_CONFIGURATION_DATA

public static final ResponseStatusCode INVALID_APP_CONFIGURATION_DATA
<!--NeedCopy-->

INVALID_OAUTH_TOKEN

public static final ResponseStatusCode INVALID_OAUTH_TOKEN
<!--NeedCopy-->

APP_LOCKED

public static final ResponseStatusCode APP_LOCKED
<!--NeedCopy-->

Method Detail

values

public static ResponseStatusCode[] values()
<!--NeedCopy-->

Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:

    for (ResponseStatusCode c : ResponseStatusCode.values())
    {
        System.out.println(c);
    }
<!--NeedCopy-->

Returns

Returns an array containing the constants of this enum type, in the order they are declared.


valueOf

public static ResponseStatusCode valueOf(java.lang.String name)
<!--NeedCopy-->

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extra whitespace characters are not permitted.)

Parameters

name - the name of the enum constant to be returned.

Returns

Returns the enum constant with the specified name.

Throws

Exception Description
java.lang.IllegalArgumentException Throws this exception if this enum type has no constant with the specified name.
java.lang.NullPointerException Throws this exception if the argument is null.

getValue

public int getValue()
<!--NeedCopy-->

fromId

public static ResponseStatusCode fromId(int id)
<!--NeedCopy-->
Enum ResponseStatusCode