Skip to content

Commit

Permalink
Add http.block_service_list property to MI
Browse files Browse the repository at this point in the history
  • Loading branch information
malakaganga committed Dec 22, 2021
1 parent 369c4d6 commit 05e83a8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,9 @@ public interface PassThroughConfigPNames {
* Defines the header name set for correlation logs
*/
public String CORRELATION_HEADER_NAME_PROPERTY = "correlation_header_name";

/**
* Defines whether viewing services are enabled or not
*/
public String BLOCK_SERVICE_LIST = "http.block_service_list";
}
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ public String getResponsePreseveHttpHeaders() {
return getStringProperty(PassThroughConfigPNames.HTTP_RESPONSE_HEADERS_PRESERVE, "");
}

public boolean isServiceListBlocked() {
return getBooleanProperty(PassThroughConfigPNames.BLOCK_SERVICE_LIST, true);
}

public int getConnectionIdleTime() {

int idleTime;
Expand Down

0 comments on commit 05e83a8

Please sign in to comment.