public class

FirewallResponse

extends Object
implements Parcelable
java.lang.Object
   ↳ com.samsung.android.knox.net.firewall.FirewallResponse

Class Overview

This class is an object class that will hold the information about the execution of an operation.

The getResult() method will inform if the operation has failed, succeeded or if no changes were required.

To have more details about the operation result, use the method getMessage(), that will return a specific string describing the operation result, and getErrorCode(), that will return the related error code.

Since
API level 17
MDM 5.5

Summary

Nested Classes
enum FirewallResponse.ErrorCode These constants indicate the possible error code related to an operation. 
enum FirewallResponse.Result These constants indicate the possible results of an operation. 
[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Constructors
FirewallResponse()
Creates a FirewallResponse instance.
Public Methods
FirewallResponse.ErrorCode getErrorCode()
API to get the error code of the executed operation.
String getMessage()
API to get a specific message about the executed operation.
FirewallResponse.Result getResult()
API to get the result of the executed operation.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Public Constructors

public FirewallResponse ()

Since: API level 17

Creates a FirewallResponse instance.

Since
API level 17
MDM 5.5

Public Methods

public FirewallResponse.ErrorCode getErrorCode ()

Since: API level 19

API to get the error code of the executed operation.

Returns
  • The error code of the operation.
Usage
An administrator can use this API to get the error code of the executed operation. For more information about the error codes see FirewallResponse.ErrorCode.
Since
API level 19
MDM 5.6

public String getMessage ()

Since: API level 17

API to get a specific message about the executed operation.

Returns
Usage
An administrator can use this API to get a specific message about the executed operation.
Since
API level 17
MDM 5.5
See Also

public FirewallResponse.Result getResult ()

Since: API level 17

API to get the result of the executed operation.

Returns
  • The result of the operation.
Usage
An administrator can use this API to get the result of the executed operation.
Since
API level 17
MDM 5.5
See Also