9package org.udger.parser;
11import java.io.Serializable;
15 private static final long serialVersionUID = 1L;
18 private final String ip;
19 private int ipVer = 0;
20 private String ipClassification =
"";
21 private String ipClassificationCode =
"";
22 private String ipLastSeen =
"";
23 private String ipHostname =
"";
24 private String ipCountry =
"";
25 private String ipCountryCode =
"";
26 private String ipCity =
"";
27 private String crawlerName =
"";
28 private String crawlerVer =
"";
29 private String crawlerVerMajor =
"";
30 private String crawlerFamily =
"";
31 private String crawlerFamilyCode =
"";
32 private String crawlerFamilyHomepage =
"";
33 private String crawlerFamilyVendor =
"";
34 private String crawlerFamilyVendorCode =
"";
35 private String crawlerFamilyVendorHomepage =
"";
36 private String crawlerFamilyIcon =
"";
37 private String crawlerFamilyInfoUrl =
"";
38 private String crawlerLastSeen =
"";
39 private String crawlerCategory =
"";
40 private String crawlerCategoryCode =
"";
41 private String crawlerRespectRobotstxt =
"";
44 private String dataCenterName =
"";
45 private String dataCenterNameCode =
"";
46 private String dataCenterHomePage =
"";
52 public String getIp() {
56 public int getIpVer() {
59 public void setIpVer(
int ipVer) {
62 public String getIpClassification() {
63 return ipClassification;
65 public void setIpClassification(String ipClassification) {
66 this.ipClassification = ipClassification;
68 public String getIpClassificationCode() {
69 return ipClassificationCode;
71 public void setIpClassificationCode(String ipClassificationCode) {
72 this.ipClassificationCode = ipClassificationCode;
74 public String getIpLastSeen() {
77 public void setIpLastSeen(String ipLastSeen) {
78 this.ipLastSeen = ipLastSeen;
80 public String getIpHostname() {
83 public void setIpHostname(String ipHostname) {
84 this.ipHostname = ipHostname;
86 public String getIpCountry() {
89 public void setIpCountry(String ipCountry) {
90 this.ipCountry = ipCountry;
92 public String getIpCountryCode() {
95 public void setIpCountryCode(String ipCountryCode) {
96 this.ipCountryCode = ipCountryCode;
98 public String getIpCity() {
101 public void setIpCity(String ipCity) {
102 this.ipCity = ipCity;
104 public String getCrawlerName() {
107 public void setCrawlerName(String crawlerName) {
108 this.crawlerName = crawlerName;
110 public String getCrawlerVer() {
113 public void setCrawlerVer(String crawlerVer) {
114 this.crawlerVer = crawlerVer;
116 public String getCrawlerVerMajor() {
117 return crawlerVerMajor;
119 public void setCrawlerVerMajor(String crawlerVerMajor) {
120 this.crawlerVerMajor = crawlerVerMajor;
122 public String getCrawlerFamily() {
123 return crawlerFamily;
125 public void setCrawlerFamily(String crawlerFamily) {
126 this.crawlerFamily = crawlerFamily;
128 public String getCrawlerFamilyCode() {
129 return crawlerFamilyCode;
131 public void setCrawlerFamilyCode(String crawlerFamilyCode) {
132 this.crawlerFamilyCode = crawlerFamilyCode;
134 public String getCrawlerFamilyHomepage() {
135 return crawlerFamilyHomepage;
137 public void setCrawlerFamilyHomepage(String crawlerFamilyHomepage) {
138 this.crawlerFamilyHomepage = crawlerFamilyHomepage;
140 public String getCrawlerFamilyVendor() {
141 return crawlerFamilyVendor;
143 public void setCrawlerFamilyVendor(String crawlerFamilyVendor) {
144 this.crawlerFamilyVendor = crawlerFamilyVendor;
146 public String getCrawlerFamilyVendorCode() {
147 return crawlerFamilyVendorCode;
149 public void setCrawlerFamilyVendorCode(String crawlerFamilyVendorCode) {
150 this.crawlerFamilyVendorCode = crawlerFamilyVendorCode;
152 public String getCrawlerFamilyVendorHomepage() {
153 return crawlerFamilyVendorHomepage;
155 public void setCrawlerFamilyVendorHomepage(String crawlerFamilyVendorHomepage) {
156 this.crawlerFamilyVendorHomepage = crawlerFamilyVendorHomepage;
158 public String getCrawlerFamilyIcon() {
159 return crawlerFamilyIcon;
161 public void setCrawlerFamilyIcon(String crawlerFamilyIcon) {
162 this.crawlerFamilyIcon = crawlerFamilyIcon;
164 public String getCrawlerFamilyInfoUrl() {
165 return crawlerFamilyInfoUrl;
167 public void setCrawlerFamilyInfoUrl(String crawlerFamilyInfoUrl) {
168 this.crawlerFamilyInfoUrl = crawlerFamilyInfoUrl;
170 public String getCrawlerLastSeen() {
171 return crawlerLastSeen;
173 public void setCrawlerLastSeen(String crawlerLastSeen) {
174 this.crawlerLastSeen = crawlerLastSeen;
176 public String getCrawlerCategory() {
177 return crawlerCategory;
179 public void setCrawlerCategory(String crawlerCategory) {
180 this.crawlerCategory = crawlerCategory;
182 public String getCrawlerCategoryCode() {
183 return crawlerCategoryCode;
185 public void setCrawlerCategoryCode(String crawlerCategoryCode) {
186 this.crawlerCategoryCode = crawlerCategoryCode;
188 public String getCrawlerRespectRobotstxt() {
189 return crawlerRespectRobotstxt;
191 public void setCrawlerRespectRobotstxt(String crawlerRespectRobotstxt) {
192 this.crawlerRespectRobotstxt = crawlerRespectRobotstxt;
194 public String getDataCenterName() {
195 return dataCenterName;
197 public void setDataCenterName(String dataCenterName) {
198 this.dataCenterName = dataCenterName;
200 public String getDataCenterNameCode() {
201 return dataCenterNameCode;
203 public void setDataCenterNameCode(String dataCenterNameCode) {
204 this.dataCenterNameCode = dataCenterNameCode;
206 public String getDataCenterHomePage() {
207 return dataCenterHomePage;
209 public void setDataCenterHomePage(String dataCenterHomePage) {
210 this.dataCenterHomePage = dataCenterHomePage;
214 public int hashCode() {
215 final int prime = 31;
217 result = prime * result + ((crawlerCategory ==
null) ? 0 : crawlerCategory.hashCode());
218 result = prime * result + ((crawlerCategoryCode ==
null) ? 0 : crawlerCategoryCode.hashCode());
219 result = prime * result + ((crawlerFamily ==
null) ? 0 : crawlerFamily.hashCode());
220 result = prime * result + ((crawlerFamilyCode ==
null) ? 0 : crawlerFamilyCode.hashCode());
221 result = prime * result + ((crawlerFamilyHomepage ==
null) ? 0 : crawlerFamilyHomepage.hashCode());
222 result = prime * result + ((crawlerFamilyIcon ==
null) ? 0 : crawlerFamilyIcon.hashCode());
223 result = prime * result + ((crawlerFamilyInfoUrl ==
null) ? 0 : crawlerFamilyInfoUrl.hashCode());
224 result = prime * result + ((crawlerFamilyVendor ==
null) ? 0 : crawlerFamilyVendor.hashCode());
225 result = prime * result + ((crawlerFamilyVendorCode ==
null) ? 0 : crawlerFamilyVendorCode.hashCode());
226 result = prime * result + ((crawlerFamilyVendorHomepage ==
null) ? 0 : crawlerFamilyVendorHomepage.hashCode());
227 result = prime * result + ((crawlerLastSeen ==
null) ? 0 : crawlerLastSeen.hashCode());
228 result = prime * result + ((crawlerName ==
null) ? 0 : crawlerName.hashCode());
229 result = prime * result + ((crawlerRespectRobotstxt ==
null) ? 0 : crawlerRespectRobotstxt.hashCode());
230 result = prime * result + ((crawlerVer ==
null) ? 0 : crawlerVer.hashCode());
231 result = prime * result + ((crawlerVerMajor ==
null) ? 0 : crawlerVerMajor.hashCode());
232 result = prime * result + ((dataCenterHomePage ==
null) ? 0 : dataCenterHomePage.hashCode());
233 result = prime * result + ((dataCenterName ==
null) ? 0 : dataCenterName.hashCode());
234 result = prime * result + ((dataCenterNameCode ==
null) ? 0 : dataCenterNameCode.hashCode());
235 result = prime * result + ((ip ==
null) ? 0 : ip.hashCode());
236 result = prime * result + ((ipCity ==
null) ? 0 : ipCity.hashCode());
237 result = prime * result + ((ipClassification ==
null) ? 0 : ipClassification.hashCode());
238 result = prime * result + ((ipClassificationCode ==
null) ? 0 : ipClassificationCode.hashCode());
239 result = prime * result + ((ipCountry ==
null) ? 0 : ipCountry.hashCode());
240 result = prime * result + ((ipCountryCode ==
null) ? 0 : ipCountryCode.hashCode());
241 result = prime * result + ((ipHostname ==
null) ? 0 : ipHostname.hashCode());
242 result = prime * result + ((ipLastSeen ==
null) ? 0 : ipLastSeen.hashCode());
243 result = prime * result + ipVer;
248 public boolean equals(Object obj) {
253 if (getClass() != obj.getClass())
256 if (crawlerCategory ==
null) {
257 if (other.crawlerCategory !=
null)
259 }
else if (!crawlerCategory.equals(other.crawlerCategory))
261 if (crawlerCategoryCode ==
null) {
262 if (other.crawlerCategoryCode !=
null)
264 }
else if (!crawlerCategoryCode.equals(other.crawlerCategoryCode))
266 if (crawlerFamily ==
null) {
267 if (other.crawlerFamily !=
null)
269 }
else if (!crawlerFamily.equals(other.crawlerFamily))
271 if (crawlerFamilyCode ==
null) {
272 if (other.crawlerFamilyCode !=
null)
274 }
else if (!crawlerFamilyCode.equals(other.crawlerFamilyCode))
276 if (crawlerFamilyHomepage ==
null) {
277 if (other.crawlerFamilyHomepage !=
null)
279 }
else if (!crawlerFamilyHomepage.equals(other.crawlerFamilyHomepage))
281 if (crawlerFamilyIcon ==
null) {
282 if (other.crawlerFamilyIcon !=
null)
284 }
else if (!crawlerFamilyIcon.equals(other.crawlerFamilyIcon))
286 if (crawlerFamilyInfoUrl ==
null) {
287 if (other.crawlerFamilyInfoUrl !=
null)
289 }
else if (!crawlerFamilyInfoUrl.equals(other.crawlerFamilyInfoUrl))
291 if (crawlerFamilyVendor ==
null) {
292 if (other.crawlerFamilyVendor !=
null)
294 }
else if (!crawlerFamilyVendor.equals(other.crawlerFamilyVendor))
296 if (crawlerFamilyVendorCode ==
null) {
297 if (other.crawlerFamilyVendorCode !=
null)
299 }
else if (!crawlerFamilyVendorCode.equals(other.crawlerFamilyVendorCode))
301 if (crawlerFamilyVendorHomepage ==
null) {
302 if (other.crawlerFamilyVendorHomepage !=
null)
304 }
else if (!crawlerFamilyVendorHomepage.equals(other.crawlerFamilyVendorHomepage))
306 if (crawlerLastSeen ==
null) {
307 if (other.crawlerLastSeen !=
null)
309 }
else if (!crawlerLastSeen.equals(other.crawlerLastSeen))
311 if (crawlerName ==
null) {
312 if (other.crawlerName !=
null)
314 }
else if (!crawlerName.equals(other.crawlerName))
316 if (crawlerRespectRobotstxt ==
null) {
317 if (other.crawlerRespectRobotstxt !=
null)
319 }
else if (!crawlerRespectRobotstxt.equals(other.crawlerRespectRobotstxt))
321 if (crawlerVer ==
null) {
322 if (other.crawlerVer !=
null)
324 }
else if (!crawlerVer.equals(other.crawlerVer))
326 if (crawlerVerMajor ==
null) {
327 if (other.crawlerVerMajor !=
null)
329 }
else if (!crawlerVerMajor.equals(other.crawlerVerMajor))
331 if (dataCenterHomePage ==
null) {
332 if (other.dataCenterHomePage !=
null)
334 }
else if (!dataCenterHomePage.equals(other.dataCenterHomePage))
336 if (dataCenterName ==
null) {
337 if (other.dataCenterName !=
null)
339 }
else if (!dataCenterName.equals(other.dataCenterName))
341 if (dataCenterNameCode ==
null) {
342 if (other.dataCenterNameCode !=
null)
344 }
else if (!dataCenterNameCode.equals(other.dataCenterNameCode))
347 if (other.ip !=
null)
349 }
else if (!ip.equals(other.ip))
351 if (ipCity ==
null) {
352 if (other.ipCity !=
null)
354 }
else if (!ipCity.equals(other.ipCity))
356 if (ipClassification ==
null) {
357 if (other.ipClassification !=
null)
359 }
else if (!ipClassification.equals(other.ipClassification))
361 if (ipClassificationCode ==
null) {
362 if (other.ipClassificationCode !=
null)
364 }
else if (!ipClassificationCode.equals(other.ipClassificationCode))
366 if (ipCountry ==
null) {
367 if (other.ipCountry !=
null)
369 }
else if (!ipCountry.equals(other.ipCountry))
371 if (ipCountryCode ==
null) {
372 if (other.ipCountryCode !=
null)
374 }
else if (!ipCountryCode.equals(other.ipCountryCode))
376 if (ipHostname ==
null) {
377 if (other.ipHostname !=
null)
379 }
else if (!ipHostname.equals(other.ipHostname))
381 if (ipLastSeen ==
null) {
382 if (other.ipLastSeen !=
null)
384 }
else if (!ipLastSeen.equals(other.ipLastSeen))
386 if (ipVer != other.ipVer)
392 public String toString() {
393 return "UdgerIpResult [" +
396 ", ipClassification=" + ipClassification +
397 ", ipClassificationCode=" + ipClassificationCode +
398 ", ipLastSeen=" + ipLastSeen +
399 ", ipHostname=" + ipHostname +
400 ", ipCountry=" + ipCountry +
401 ", ipCountryCode=" + ipCountryCode +
402 ", ipCity=" + ipCity +
403 ", crawlerName=" + crawlerName +
404 ", crawlerVer=" + crawlerVer +
405 ", crawlerVerMajor=" + crawlerVerMajor +
406 ", crawlerFamily=" + crawlerFamily +
407 ", crawlerFamilyCode=" + crawlerFamilyCode +
408 ", crawlerFamilyHomepage=" + crawlerFamilyHomepage +
409 ", crawlerFamilyVendor=" + crawlerFamilyVendor +
410 ", crawlerFamilyVendorCode=" + crawlerFamilyVendorCode +
411 ", crawlerFamilyVendorHomepage=" + crawlerFamilyVendorHomepage +
412 ", crawlerFamilyIcon=" + crawlerFamilyIcon +
413 ", crawlerFamilyInfoUrl=" + crawlerFamilyInfoUrl +
414 ", crawlerLastSeen=" + crawlerLastSeen +
415 ", crawlerCategory=" + crawlerCategory +
416 ", crawlerCategoryCode=" + crawlerCategoryCode +
417 ", crawlerRespectRobotstxt=" + crawlerRespectRobotstxt +
418 ", dataCenterName=" + dataCenterName +
419 ", dataCenterNameCode=" + dataCenterNameCode +
420 ", dataCenterHomePage=" + dataCenterHomePage +