public class TwitterJsonUserstreameventActivityConverter extends Object implements ActivityConverter<UserstreamEvent>
Modifier and Type | Field and Description |
---|---|
static Class |
requiredClass |
Constructor and Description |
---|
TwitterJsonUserstreameventActivityConverter() |
Modifier and Type | Method and Description |
---|---|
ActivityObject |
buildActivityObject(UserstreamEvent event)
build ActivityObject from UserstreamEvent
|
ActivityObject |
buildActor(UserstreamEvent event)
build ActivityObject from UserstreamEvent
|
ActivityObject |
buildTarget(UserstreamEvent event) |
Activity |
convert(UserstreamEvent event)
convert UserstreamEvent to Activity.
|
String |
detectVerb(UserstreamEvent event) |
UserstreamEvent |
fromActivity(Activity deserialized) |
List<UserstreamEvent> |
fromActivityList(List<Activity> list) |
static TwitterJsonUserstreameventActivityConverter |
getInstance() |
Class |
requiredClass() |
String |
serializationFormat() |
List<Activity> |
toActivityList(List<UserstreamEvent> serializedList) |
List<Activity> |
toActivityList(UserstreamEvent userstreamEvent) |
public static Class requiredClass
public TwitterJsonUserstreameventActivityConverter()
public Class requiredClass()
requiredClass
in interface ActivityConverter<UserstreamEvent>
public static TwitterJsonUserstreameventActivityConverter getInstance()
public String serializationFormat()
serializationFormat
in interface ActivityConverter<UserstreamEvent>
public UserstreamEvent fromActivity(Activity deserialized) throws ActivityConversionException
fromActivity
in interface ActivityConverter<UserstreamEvent>
ActivityConversionException
public List<UserstreamEvent> fromActivityList(List<Activity> list)
fromActivityList
in interface ActivityConverter<UserstreamEvent>
public List<Activity> toActivityList(UserstreamEvent userstreamEvent) throws ActivityConversionException
toActivityList
in interface ActivityConverter<UserstreamEvent>
ActivityConversionException
public List<Activity> toActivityList(List<UserstreamEvent> serializedList)
toActivityList
in interface ActivityConverter<UserstreamEvent>
public Activity convert(UserstreamEvent event) throws ActivityConversionException
event
- UserstreamEventActivityConversionException
- ActivityConversionExceptionpublic ActivityObject buildActor(UserstreamEvent event)
event
- UserstreamEventpublic ActivityObject buildActivityObject(UserstreamEvent event)
event
- UserstreamEventpublic String detectVerb(UserstreamEvent event)
public ActivityObject buildTarget(UserstreamEvent event)
Copyright © 2018 The Apache Software Foundation. All rights reserved.