Class ApiLogging

java.lang.Object
tech.corefinance.common.aop.MethodDataLoging
tech.corefinance.common.aop.ApiLogging

@Component @ConditionalOnProperty(name="tech.corefinance.log.enabled.api", havingValue="true", matchIfMissing=true) public class ApiLogging extends MethodDataLoging
  • Constructor Details

    • ApiLogging

      public ApiLogging()
  • Method Details

    • logGetRequest

      public Object logGetRequest(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws Throwable
      Throws:
      Throwable
    • logPostRequest

      public Object logPostRequest(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws Throwable
      Throws:
      Throwable
    • logPutRequest

      public Object logPutRequest(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws Throwable
      Throws:
      Throwable
    • verifyPatchRequest

      public Object verifyPatchRequest(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws Throwable
      Throws:
      Throwable
    • verifyDeleteRequest

      public Object verifyDeleteRequest(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws Throwable
      Throws:
      Throwable
    • logAround

      public Object logAround(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws Throwable
      Logging.
      Parameters:
      joinPoint - This is param of AOP. Just ignore it
      Returns:
      result of the wrapped services method
      Throws:
      Throwable - when target method have exception
    • doAdditionalInputLog

      protected void doAdditionalInputLog(org.aspectj.lang.ProceedingJoinPoint joinPoint, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      Overrides:
      doAdditionalInputLog in class MethodDataLoging