Package io.vertx.up.runtime
Class ZeroSerializer
- java.lang.Object
-
- io.vertx.up.runtime.ZeroSerializer
-
public class ZeroSerializer extends Object
ZeroSerializer the request by different type. 1. String -> T 2. T -> JsonObject ( Envelop request ) 3. T -> String ( Generate resonse ) 4. Checking the request type to see where support serialization
-
-
Constructor Summary
Constructors Constructor Description ZeroSerializer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectgetValue(Class<?> paramType, String literal)String -> Tstatic <T> booleanisDirect(T input)static <T> ObjecttoSupport(T input)T -> JsonObject
-
-
-
Method Detail
-
getValue
public static Object getValue(Class<?> paramType, String literal)
String -> T- Parameters:
paramType- argument typesliteral- literal values- Returns:
- deserialized object.
-
isDirect
public static <T> boolean isDirect(T input)
-
toSupport
public static <T> Object toSupport(T input)
T -> JsonObject- Type Parameters:
T- Generic Types- Parameters:
input- Checked object- Returns:
- returned values.
-
-