Class GenericResultSerializerImpl
- java.lang.Object
-
- com.adobe.acs.commons.quickly.results.impl.serializers.AbstractResultSerializer
-
- com.adobe.acs.commons.quickly.results.impl.serializers.GenericResultSerializerImpl
-
- All Implemented Interfaces:
ResultSerializer
@Property(name="type", value="GENERIC") @Service(ResultSerializer.class) public class GenericResultSerializerImpl extends AbstractResultSerializer implements ResultSerializerACS AEM Commons - Quickly - Generic Result Serializer
-
-
Field Summary
Fields Modifier and Type Field Description static StringTYPE-
Fields inherited from interface com.adobe.acs.commons.quickly.results.ResultSerializer
PROP_TYPE
-
-
Constructor Summary
Constructors Constructor Description GenericResultSerializerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gson.JsonObjecttoJSON(Result result, org.apache.sling.api.resource.ValueMap config)Turns a Result object into a JSON object-
Methods inherited from class com.adobe.acs.commons.quickly.results.impl.serializers.AbstractResultSerializer
toJSON, toJSON
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
toJSON
public com.google.gson.JsonObject toJSON(Result result, org.apache.sling.api.resource.ValueMap config)
Description copied from interface:ResultSerializerTurns a Result object into a JSON object- Specified by:
toJSONin interfaceResultSerializer- Parameters:
result- the Resultconfig- configuration used by ResultSerializer implementations- Returns:
- the JSON representation of the result
-
-