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 client<T> Pair<T,com.fasterxml.jackson.databind.JsonNode>processMethodResult(Method method, T result, boolean logJson)Recursively processes the result of the given method call<T> Pair<T,com.fasterxml.jackson.databind.JsonNode>processToClient(T object, boolean logJson)Recursively processes the given object to send to a client
-
-
-
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
-
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
-
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
-
-