Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#40 add header filters to trace dialog
- Loading branch information
Showing
6 changed files
with
425 additions
and
155 deletions.
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
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
63 changes: 63 additions & 0 deletions
63
src/main/java/at/esque/kafka/topics/model/KafkaHeaderFilterOption.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,63 @@ | ||
package at.esque.kafka.topics.model; | ||
|
||
import java.util.Objects; | ||
|
||
public class KafkaHeaderFilterOption { | ||
private String header; | ||
private String filterString; | ||
private boolean exactMatch; | ||
|
||
public KafkaHeaderFilterOption(String header, String filterString, boolean exactMatch) { | ||
this.header = header; | ||
this.filterString = filterString; | ||
this.exactMatch = exactMatch; | ||
} | ||
|
||
public String getHeader() { | ||
return header; | ||
} | ||
|
||
public void setHeader(String header) { | ||
this.header = header; | ||
} | ||
|
||
public String getFilterString() { | ||
return filterString; | ||
} | ||
|
||
public void setFilterString(String filterString) { | ||
this.filterString = filterString; | ||
} | ||
|
||
public boolean isExactMatch() { | ||
return exactMatch; | ||
} | ||
|
||
public void setExactMatch(boolean exactMatch) { | ||
this.exactMatch = exactMatch; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object obj) { | ||
if (obj == this) return true; | ||
if (obj == null || obj.getClass() != this.getClass()) return false; | ||
var that = (KafkaHeaderFilterOption) obj; | ||
return Objects.equals(this.header, that.header) && | ||
Objects.equals(this.filterString, that.filterString) && | ||
this.exactMatch == that.exactMatch; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(header, filterString, exactMatch); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "KafkaHeaderFilterOption[" + | ||
"header=" + header + ", " + | ||
"filterString=" + filterString + ", " + | ||
"exactMatch=" + exactMatch + ']'; | ||
} | ||
|
||
} |
Oops, something went wrong.