Class InputOutputProcessingHandlerImpl

    • Constructor Detail

      • InputOutputProcessingHandlerImpl

        public InputOutputProcessingHandlerImpl()
    • Method Detail

      • processFromClient

        public <T> Pair<T,​com.fasterxml.jackson.databind.JsonNode> processFromClient​(T object,
                                                                                           boolean logJson)
        Description copied from interface: InputOutputProcessingHandler
        Recursively processes the object received from a client
        Specified by:
        processFromClient in interface InputOutputProcessingHandler
        Parameters:
        object - The object to process
        logJson - If true, the second pair value will be a JsonNode to show in the log as parameter
      • processMethodResult

        public <T> Pair<T,​com.fasterxml.jackson.databind.JsonNode> processMethodResult​(Method method,
                                                                                             T result,
                                                                                             boolean logJson)
        Description copied from interface: InputOutputProcessingHandler
        Recursively processes the result of the given method call
        Specified by:
        processMethodResult in interface InputOutputProcessingHandler
        result - The method result
        logJson - If true, the second pair value will be a JsonNode to show in the log as result
      • processSensitiveMethodParameters

        public com.fasterxml.jackson.databind.JsonNode processSensitiveMethodParameters​(Method method,
                                                                                        com.fasterxml.jackson.databind.JsonNode jsonNode)
        Description copied from interface: InputOutputProcessingHandler
        Masks any sensitive parameter value present in the given JsonNode only if it's an instance of ArrayNode. Any parameter annotated with MaskValueInLog is considered a sensitive one.
        The same (but modified) JsonNode instance is returned.
        Specified by:
        processSensitiveMethodParameters in interface InputOutputProcessingHandler
      • processToClient

        public <T> Pair<T,​com.fasterxml.jackson.databind.JsonNode> processToClient​(T object,
                                                                                         boolean logJson)
        Description copied from interface: InputOutputProcessingHandler
        Recursively processes the given object to send to a client
        Specified by:
        processToClient in interface InputOutputProcessingHandler
        Parameters:
        object - The object to process
        logJson - If true, the second pair value will be a JsonNode to show in the log as result