HubTopic

public class HubTopic implements java.io.Serializable

Stores the topic URLs. Topic URL is is an URL with content that can be subscribed to.

Constructors

HubTopic

public HubTopic()

Creates a new HubTopic instance with topic URL set to null.

HubTopic

public HubTopic(String topicUrl)

Creates a new HubTopic instance with topic URL set to the value passed as a parameter.

Parameters:
  • topicUrl – the topic URL to be set

Methods

getTopicUrl

public String getTopicUrl()

Gets the URL of this topic.

Returns:the topic URL

setTopicUrl

public void setTopicUrl(String topicUrl)

Sets the URL of this topic.

Parameters:
  • topicUrl – the topic URL to be set