-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
302 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/main/java/com/brsanthu/googleanalytics/hitdebug/HitParsingResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.brsanthu.googleanalytics.hitdebug; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class HitParsingResult { | ||
private boolean valid; | ||
private String hit; | ||
private List<ParserMessage> parserMessage = new ArrayList<>(); | ||
|
||
public boolean isValid() { | ||
return valid; | ||
} | ||
|
||
public HitParsingResult setValid(boolean valid) { | ||
this.valid = valid; | ||
return this; | ||
} | ||
|
||
public String getHit() { | ||
return hit; | ||
} | ||
|
||
public HitParsingResult setHit(String hit) { | ||
this.hit = hit; | ||
return this; | ||
} | ||
|
||
public List<ParserMessage> getParserMessage() { | ||
return parserMessage; | ||
} | ||
|
||
public HitParsingResult setParserMessage(List<ParserMessage> parserMessage) { | ||
this.parserMessage = parserMessage; | ||
return this; | ||
} | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
src/main/java/com/brsanthu/googleanalytics/hitdebug/HitValidationResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.brsanthu.googleanalytics.hitdebug; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class HitValidationResponse { | ||
private List<HitParsingResult> hitParsingResult = new ArrayList<>(); | ||
private List<ParserMessage> parserMessage = new ArrayList<>(); | ||
|
||
public HitValidationResponse() { | ||
// default | ||
} | ||
|
||
public List<HitParsingResult> getHitParsingResult() { | ||
return hitParsingResult; | ||
} | ||
|
||
public HitValidationResponse setHitParsingResult(List<HitParsingResult> hitParsingResult) { | ||
this.hitParsingResult = hitParsingResult; | ||
return this; | ||
} | ||
|
||
public List<ParserMessage> getParserMessage() { | ||
return parserMessage; | ||
} | ||
|
||
public HitValidationResponse setParserMessage(List<ParserMessage> parserMessage) { | ||
this.parserMessage = parserMessage; | ||
return this; | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
src/main/java/com/brsanthu/googleanalytics/hitdebug/ParserMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package com.brsanthu.googleanalytics.hitdebug; | ||
|
||
public class ParserMessage { | ||
private String messageType; | ||
private String description; | ||
private String parameter; | ||
|
||
public String getMessageType() { | ||
return messageType; | ||
} | ||
|
||
public ParserMessage setMessageType(String messageType) { | ||
this.messageType = messageType; | ||
return this; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
public ParserMessage setDescription(String description) { | ||
this.description = description; | ||
return this; | ||
} | ||
|
||
public String getParameter() { | ||
return parameter; | ||
} | ||
|
||
public ParserMessage setParameter(String parameter) { | ||
this.parameter = parameter; | ||
return this; | ||
} | ||
|
||
public boolean isInfo() { | ||
return "info".equalsIgnoreCase(messageType); | ||
} | ||
|
||
public boolean isWarn() { | ||
return "warn".equalsIgnoreCase(messageType); | ||
} | ||
|
||
public boolean isError() { | ||
return "error".equalsIgnoreCase(messageType); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.