001/* 002 * =========================================================================================== 003 * = COPYRIGHT 004 * PAX Computer Technology (Shenzhen) Co., Ltd. PROPRIETARY INFORMATION 005 * This software is supplied under the terms of a license agreement or nondisclosure 006 * agreement with PAX Computer Technology (Shenzhen) Co., Ltd. and may not be copied or 007 * disclosed except in accordance with the terms in that agreement. 008 * Copyright (C) 2017-2023 PAX Computer Technology (Shenzhen) Co., Ltd. All rights reserved. 009 * Description: // Detail description about the function of this module, 010 * // interfaces with the other modules, and dependencies. 011 * Revision History: 012 * Date Author Action 013 * 2017/04/01 PAX Create/Add/Modify/Delete 014 * =========================================================================================== 015 */ 016package com.pax.dal.entity; 017 018/** 019 * <div class="zh">应用的网络访问过滤规。</div> 020 * <div class="en">Apply network access filtering rules.</div> 021 */ 022public class AppNetworkFilter { 023 024 private final String operationType; 025 private final String packageName; 026 private final String address; 027 028 public AppNetworkFilter(String operationType, String packageName, String address) { 029 this.operationType = operationType; 030 this.packageName = packageName; 031 this.address = address; 032 } 033 034 /** 035 * <div class="zh">规则类型。"A":允许;"F":禁止。</div> <div class="en">Rule type. "A": allowed; "F": prohibited.</div> 036 * 037 * @return <div class="zh">"A":允许;"F":禁止。</div> <div class="en">"A": allowed; "F": prohibited.</div> 038 */ 039 public String getOperationType() { 040 return operationType; 041 } 042 043 /** 044 * <div class="zh">获取应用包名。</div> <div class="en">Get the app package name.</div> 045 * 046 * @return <div class="zh">应用包名。</div> <div class="en">App package name.</div> 047 */ 048 public String getPackageName() { 049 return packageName; 050 } 051 052 /** 053 * <div class="zh">获取过滤的IP地址。</div> <div class="en">Get the filtered IP address.</div> 054 * 055 * @return <div class="zh">IP地址。"*"表示所有的IP地址。</div> <div class="en">IP address. "*" indicates all IP addresses.</div> 056 */ 057 public String getAddress() { 058 return address; 059 } 060}