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 */ 016 017package com.pax.dal.entity; 018 019/** 020 * <div class="zh"> 以太网参数 </div> <div class="en"> Lan Param </div> 021 * 022 * @author Steven.W 023 * 024 */ 025public class LanParam { 026 027 private boolean dhcp; 028 private String localIp; 029 private String subnetMask; 030 private String gateway; 031 private String dns1; 032 private String dns2; 033 034 /** 035 * @return <div class="zh"> 是否是DHCP </div> <div class="en"> is DHCP </div> 036 */ 037 public boolean isDhcp() { 038 return dhcp; 039 } 040 041 /** 042 * <div class="zh"> 设置DHCP </div> <div class="en"> set DHCP </div> 043 * 044 * @param dhcp 045 */ 046 public void setDhcp(boolean dhcp) { 047 this.dhcp = dhcp; 048 } 049 050 /** 051 * @return <div class="zh"> 获取本机IP </div> <div class="en"> get local IP </div> 052 */ 053 public String getLocalIp() { 054 return localIp; 055 } 056 057 /** 058 * <div class="zh"> 设置本机IP </div> <div class="en"> set local IP </div> 059 * 060 * @param localIp 061 */ 062 public void setLocalIp(String localIp) { 063 this.localIp = localIp; 064 } 065 066 /** 067 * <div class="zh"> 获取子网掩码 </div> <div class="en"> get netmask </div> 068 * 069 * @return 070 */ 071 public String getSubnetMask() { 072 return subnetMask; 073 } 074 075 /** 076 * <div class="zh"> 设置子网掩码 </div> <div class="en"> set netmask </div> 077 * 078 * @param subnetMask 079 */ 080 public void setSubnetMask(String subnetMask) { 081 this.subnetMask = subnetMask; 082 } 083 084 /** 085 * <div class="zh"> 获取网关 </div> <div class="en"> get gateway </div> 086 * 087 * @return 088 */ 089 public String getGateway() { 090 return gateway; 091 } 092 093 /** 094 * <div class="zh"> 设置网关 </div> <div class="en"> set gateway </div> 095 * 096 * @param gateway 097 */ 098 public void setGateway(String gateway) { 099 this.gateway = gateway; 100 } 101 102 /** 103 * <div class="zh"> 获取DSN1 </div> <div class="en"> get DSN1 </div> 104 * 105 * @return 106 */ 107 public String getDns1() { 108 return dns1; 109 } 110 111 /** 112 * <div class="zh"> 设置DSN1 </div> <div class="en"> set DSN1 </div> 113 * 114 * @param dns1 115 */ 116 public void setDns1(String dns1) { 117 this.dns1 = dns1; 118 } 119 120 /** 121 * <div class="zh"> 获取DSN2 </div> <div class="en"> get DSN2 </div> 122 * 123 * @return 124 */ 125 public String getDns2() { 126 return dns2; 127 } 128 129 /** 130 * <div class="zh"> 设置DNS2 </div> <div class="en"> set DNS2 </div> 131 * 132 * @param dns2 133 */ 134 public void setDns2(String dns2) { 135 this.dns2 = dns2; 136 } 137 138 public LanParam() { 139 this.dhcp = true; 140 this.localIp = ""; 141 this.subnetMask = ""; 142 this.gateway = ""; 143 this.dns1 = ""; 144 this.dns2 = ""; 145 } 146 147}