Since: API level 19
public class

DomainFilterReport

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

Class Overview

This class encapsulates a Domain Filter Report that will be manipulated by the firewall policies.

A report is represented by the following fields:

Application's package name

The package name of the application which attempted to access a blocked domain name URL.

URL of blocked domain name

The URL of the domain which is black listed (blocked) by a domain filter rule (see DomainFilterRule).

Time Stamp

The time when the attempt to access the blocked URL occurred. It represents the number of seconds between this attempt and the Unix Epoch on January 1st, 1970 at UTC.

Since
API level 19
MDM 5.6

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Constructors
DomainFilterReport(String packageName, long timeStamp, String domainUrl)
Creates an instance of Domain filter Report class.
Public Methods
String getDomainUrl()
Retrieve the URL of the blocked domain name.
String getPackageName()
Retrieve the package name of the application which tried to access the blocked domain.
long getTimeStamp()
Retrieve the time when the attempt of access the blocked URL occurred.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Public Constructors

public DomainFilterReport (String packageName, long timeStamp, String domainUrl)

Since: API level 19

Creates an instance of Domain filter Report class.

Parameters
packageName The application's package name which attempted to access the URL.
timeStamp The time when the URL was blocked, in milliseconds.
domainUrl The blocked URL.
Since
API level 19
MDM 5.6

Public Methods

public String getDomainUrl ()

Since: API level 19

Retrieve the URL of the blocked domain name.

Returns
  • The URL.
Since
API level 19
MDM 5.6

public String getPackageName ()

Since: API level 19

Retrieve the package name of the application which tried to access the blocked domain.

Returns
  • The application's package name.
Since
API level 19
MDM 5.6

public long getTimeStamp ()

Since: API level 19

Retrieve the time when the attempt of access the blocked URL occurred.

Returns
  • The time in milliseconds.
Since
API level 19
MDM 5.6