-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #299 from cabinetoffice/release/11.0
Release/11.0
- Loading branch information
Showing
26 changed files
with
439 additions
and
365 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
20 changes: 0 additions & 20 deletions
20
src/main/java/gov/cabinetoffice/gap/adminbackend/config/RequestLogging.java
This file was deleted.
Oops, something went wrong.
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
4 changes: 4 additions & 0 deletions
4
src/main/java/gov/cabinetoffice/gap/adminbackend/dtos/SendAdvertToSqsDto.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,4 @@ | ||
package gov.cabinetoffice.gap.adminbackend.dtos; | ||
|
||
public record SendAdvertToSqsDto(String contentfulEntryId, String type) { | ||
} |
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
10 changes: 0 additions & 10 deletions
10
src/main/java/gov/cabinetoffice/gap/adminbackend/exceptions/IndexingException.java
This file was deleted.
Oops, something went wrong.
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
40 changes: 40 additions & 0 deletions
40
.../java/gov/cabinetoffice/gap/adminbackend/security/filters/CustomRequestLoggingFilter.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,40 @@ | ||
package gov.cabinetoffice.gap.adminbackend.security.filters; | ||
|
||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.stereotype.Component; | ||
import org.springframework.web.filter.AbstractRequestLoggingFilter; | ||
|
||
import javax.servlet.http.HttpServletRequest; | ||
import java.util.Set; | ||
|
||
@Component | ||
@Slf4j | ||
public class CustomRequestLoggingFilter extends AbstractRequestLoggingFilter { | ||
|
||
public CustomRequestLoggingFilter() { | ||
this.setIncludeHeaders(true); | ||
this.setIncludeQueryString(true); | ||
this.setMaxPayloadLength(10000); | ||
this.setIncludePayload(true); | ||
} | ||
|
||
@Override | ||
protected boolean shouldLog(HttpServletRequest request) { | ||
if (request.getRequestURI().endsWith("/health")) { | ||
return false; | ||
} | ||
|
||
return logger.isDebugEnabled(); | ||
} | ||
|
||
@Override | ||
protected void beforeRequest(HttpServletRequest request, String message) { | ||
logger.debug(message); | ||
} | ||
|
||
@Override | ||
protected void afterRequest(HttpServletRequest request, String message) { | ||
logger.debug(message); | ||
} | ||
|
||
} |
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.