public class FacebookPostActivitySerializer extends Object implements ActivitySerializer<Post>
Modifier and Type | Field and Description |
---|---|
static org.joda.time.format.DateTimeFormatter |
ACTIVITY_FORMAT |
static org.joda.time.format.DateTimeFormatter |
FACEBOOK_FORMAT |
static com.fasterxml.jackson.databind.ObjectMapper |
mapper |
static String |
PROVIDER_NAME |
Constructor and Description |
---|
FacebookPostActivitySerializer() |
Modifier and Type | Method and Description |
---|---|
Activity |
deserialize(Post post) |
List<Activity> |
deserializeAll(List<Post> serializedList) |
String |
serializationFormat() |
Post |
serialize(Activity deserialized) |
public static final org.joda.time.format.DateTimeFormatter FACEBOOK_FORMAT
public static final org.joda.time.format.DateTimeFormatter ACTIVITY_FORMAT
public static final String PROVIDER_NAME
public static com.fasterxml.jackson.databind.ObjectMapper mapper
public String serializationFormat()
serializationFormat
in interface ActivitySerializer<Post>
public Post serialize(Activity deserialized) throws ActivitySerializerException
serialize
in interface ActivitySerializer<Post>
ActivitySerializerException
public Activity deserialize(Post post) throws ActivitySerializerException
deserialize
in interface ActivitySerializer<Post>
ActivitySerializerException
public List<Activity> deserializeAll(List<Post> serializedList)
deserializeAll
in interface ActivitySerializer<Post>
Copyright © 2017 The Apache Software Foundation. All rights reserved.