@@ -922,7 +922,6 @@ public PropertyRowFilter(FilterProperty filterProp) {
922922 @ Override
923923 public boolean include (RowFilter .Entry <? extends Object , ? extends Object > entry ) {
924924 boolean allFilter = false ;
925-
926925 try {
927926 ProxyHttpRequestResponse item = (ProxyHttpRequestResponse ) entry .getValue (0 );
928927 boolean showOnlyScopFilter = true ;
@@ -967,15 +966,13 @@ public boolean include(RowFilter.Entry<? extends Object, ? extends Object> entry
967966 }
968967 }
969968 // Highlight Color
970- boolean colorFilter = false ;
969+ boolean colorFilter = true ;
971970 if (statusFilter && showOnlyScopFilter ) {
972971 // cololr
973972 if (this .filterProp .getShowOnlyHighlightColors ()) {
974973 EnumSet <MessageHighlightColor > colors = this .filterProp .getHighlightColors ();
975974 MessageHighlightColor hc = MessageHighlightColor .valueOf (item .annotations ().highlightColor ());
976- if (colors .contains (hc )) {
977- colorFilter = true ;
978- }
975+ colorFilter = colors .contains (hc );
979976 }
980977 }
981978 // Comment Filter
@@ -1036,8 +1033,13 @@ public boolean include(RowFilter.Entry<? extends Object, ? extends Object> entry
10361033 response = item .response ().contains (Pattern .compile (this .filterProp .getResponse (), this .filterProp .isResponseIgnoreCase () ? Pattern .DOTALL : Pattern .DOTALL | Pattern .CASE_INSENSITIVE ));
10371034 }
10381035 }
1036+ // ListenerPort
1037+ boolean listenerPort = true ;
1038+ if (this .filterProp .getListenerPort () > -1 ) {
1039+ listenerPort = this .filterProp .getListenerPort () == item .listenerPort ();
1040+ }
10391041 // 条件のAND
1040- allFilter = (statusFilter && colorFilter && commentFilter && matchFilter && showOnlyScopFilter && hideItemsWithoutResponses && parameterizedRequests && editedMessage && requestMethod && requestURL && request && response );
1042+ allFilter = (statusFilter && colorFilter && commentFilter && matchFilter && showOnlyScopFilter && hideItemsWithoutResponses && parameterizedRequests && editedMessage && requestMethod && requestURL && request && response && listenerPort );
10411043 } catch (Exception ex ) {
10421044 logger .log (Level .SEVERE , ex .getMessage (), ex );
10431045 }
0 commit comments