Package org.cyclos.impl.utils
Interface InputOutputProcessingHandler
-
- All Known Implementing Classes:
InputOutputProcessingHandlerImpl
public interface InputOutputProcessingHandlerProcesses parameters when sending data between the server and the clients
-
-
Field Summary
Fields Modifier and Type Field Description static StringFROM_CLIENT_BEAN_ATTRBean boolean attribute used to mark a bean as already processed from/to client to avoid process twice.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Pair<T,com.fasterxml.jackson.databind.JsonNode>processFromClient(T object, boolean logJson)Recursively processes the object received from a clientPair<Object[],com.fasterxml.jackson.databind.JsonNode>processMethodParameters(Method method, Object[] parameterValues, boolean logJson)Recursively processes the parameters of the given method call from a client<T> Pair<T,com.fasterxml.jackson.databind.JsonNode>processMethodResult(Method method, T result, boolean logJson)Recursively processes the result of the given method callcom.fasterxml.jackson.databind.JsonNodeprocessSensitiveMethodParameters(Method method, com.fasterxml.jackson.databind.JsonNode jsonNode)Masks any sensitive parameter value present in the given JsonNode only if it's an instance ofArrayNode.<T> Pair<T,com.fasterxml.jackson.databind.JsonNode>processToClient(T object, boolean logJson)Recursively processes the given object to send to a clientvoidrestore(Object... values)Restores each bean to the original state.
-
-
-
Field Detail
-
FROM_CLIENT_BEAN_ATTR
static final String FROM_CLIENT_BEAN_ATTR
Bean boolean attribute used to mark a bean as already processed from/to client to avoid process twice.- See Also:
- Constant Field Values
-
-
Method Detail
-
processFromClient
<T> Pair<T,com.fasterxml.jackson.databind.JsonNode> processFromClient(T object, boolean logJson)
Recursively processes the object received from a client- Parameters:
object- The object to processlogJson- If true, the second pair value will be a JsonNode to show in the log as parameter
-
processMethodParameters
Pair<Object[],com.fasterxml.jackson.databind.JsonNode> processMethodParameters(Method method, Object[] parameterValues, boolean logJson)
Recursively processes the parameters of the given method call from a client- Parameters:
result- The method's parameterslogJson- If true, the second pair value will be a JsonNode to show in the log as result
-
processMethodResult
<T> Pair<T,com.fasterxml.jackson.databind.JsonNode> processMethodResult(Method method, T result, boolean logJson)
Recursively processes the result of the given method call- Parameters:
result- The method resultlogJson- If true, the second pair value will be a JsonNode to show in the log as result
-
processSensitiveMethodParameters
com.fasterxml.jackson.databind.JsonNode processSensitiveMethodParameters(Method method, com.fasterxml.jackson.databind.JsonNode jsonNode)
Masks any sensitive parameter value present in the given JsonNode only if it's an instance ofArrayNode. Any parameter annotated withMaskValueInLogis considered a sensitive one.
The same (but modified)JsonNodeinstance is returned.
-
processToClient
<T> Pair<T,com.fasterxml.jackson.databind.JsonNode> processToClient(T object, boolean logJson)
Recursively processes the given object to send to a client- Parameters:
object- The object to processlogJson- If true, the second pair value will be a JsonNode to show in the log as result
-
restore
void restore(Object... values)
Restores each bean to the original state. This is called in case of retrying the operation.
-
-