1 package test.util; 2 3 import org.bitbucket.jrsofty.parser.logging.api.LogElementMapping; 4 import org.bitbucket.jrsofty.parser.logging.api.LogEntry; 5 6 public class Squid3TestElement implements LogEntry { 7 8 @LogElementMapping(logToken = "%ip4") 9 private String ip; 10 @LogElementMapping(logToken = "%dtm") 11 private String dateString; 12 @LogElementMapping(logToken = "%opt") 13 private String method; 14 @LogElementMapping(logToken = "%url") 15 private String requestedUrl; 16 @LogElementMapping(logToken = "%str") 17 private String httpType; 18 @LogElementMapping(logToken = "%int") 19 private String status; 20 @LogElementMapping(logToken = "%int") 21 private String dataSize; 22 @LogElementMapping(logToken = "%url") 23 private String referringUrl; 24 @LogElementMapping(logToken = "%msg") 25 private String userAgent; 26 @LogElementMapping(logToken = "%str") 27 private String value1; 28 29 public String getIp() { 30 return this.ip; 31 } 32 33 public void setIp(final String ip) { 34 this.ip = ip; 35 } 36 37 public String getDateString() { 38 return this.dateString; 39 } 40 41 public void setDateString(final String dateString) { 42 this.dateString = dateString; 43 } 44 45 public String getMethod() { 46 return this.method; 47 } 48 49 public void setMethod(final String method) { 50 this.method = method; 51 } 52 53 public String getRequestedUrl() { 54 return this.requestedUrl; 55 } 56 57 public void setRequestedUrl(final String requestedUrl) { 58 this.requestedUrl = requestedUrl; 59 } 60 61 public String getHttpType() { 62 return this.httpType; 63 } 64 65 public void setHttpType(final String httpType) { 66 this.httpType = httpType; 67 } 68 69 public String getStatus() { 70 return this.status; 71 } 72 73 public void setStatus(final String status) { 74 this.status = status; 75 } 76 77 public String getDataSize() { 78 return this.dataSize; 79 } 80 81 public void setDataSize(final String dataSize) { 82 this.dataSize = dataSize; 83 } 84 85 public String getReferringUrl() { 86 return this.referringUrl; 87 } 88 89 public void setReferringUrl(final String referringUrl) { 90 this.referringUrl = referringUrl; 91 } 92 93 public String getUserAgent() { 94 return this.userAgent; 95 } 96 97 public void setUserAgent(final String userAgent) { 98 this.userAgent = userAgent; 99 } 100 101 public String getValue1() { 102 return this.value1; 103 } 104 105 public void setValue1(final String value1) { 106 this.value1 = value1; 107 } 108 109 }