Class ActivityStreamMessage


  • public class ActivityStreamMessage
    extends Object
    A structure used for serializing an Event into an ActivityStream 2.0 JSON object.
    See Also:
    Activity Streams 2.0
    • Constructor Detail

      • ActivityStreamMessage

        public ActivityStreamMessage()
    • Method Detail

      • getId

        public String getId()
        Returns:
        the event identifier
      • getInbox

        public String getInbox()
        Returns:
        the inbox assocated with the resource
      • getPublished

        public String getPublished()
        Returns:
        the created date
      • getContext

        public String getContext()
        Returns:
        the JSON-LD context
      • getType

        public List<String> getType()
        Returns:
        the event types
      • getActor

        public List<String> getActor()
        Returns:
        the actors associated with this event
      • from

        public static ActivityStreamMessage from​(Event event)
        Populate a ActivityStreamMessage from an Event.
        Parameters:
        event - The event
        Returns:
        an ActivityStreamMessage