Skip to content

Commit

Permalink
Removed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcolon021 committed Mar 8, 2024
1 parent d09afde commit 52da03d
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,7 @@ public ResourceInfo info(UUID resourceId, QueryRequest credentialsQueryRequest,
public Map<UUID, String> resources(HttpHeaders headers) {
logger.info("path=/info/resources, requestSource={}", Utilities.getRequestSourceFromHeader(headers));

// We need a way to only return resources for this stack.
// Going to create an optional property in the standalone.xml
if (StringUtils.isNotBlank(JAXRSConfiguration.application_stack)) {
// The resource resourceRSPath will contain the stack value
// http://dictionary.b.${env_private_dns_name}:8080/dictionary/pic-sure
// The application stack is a, b, c, etc.
// I will look for %.${application_stack}.% in the url
// Or the resource domain is localhost.
return resourceRepo.list().stream()
.filter(
resource -> resource.getResourceRSPath().contains("." + JAXRSConfiguration.application_stack + ".")
Expand Down

0 comments on commit 52da03d

Please sign in to comment.