HubDistributionContent

public class HubDistributionContent implements java.io.Serializable

Stores the content and content type received from the publisher when there is an update in a topic.

Constructors

HubDistributionContent

public HubDistributionContent()

Creates a new instance of HubDistributionContent, with all fields set to null.

HubDistributionContent

public HubDistributionContent(String content, String contentType)

Creates a new instance of HubDistributionContent, with all fields set to the values specified in the parameters.

Parameters:
  • content – the content which will be stored
  • contentType – the type of stored content

Methods

getContent

public String getContent()

Gets the stored content.

Returns:the stored content

getContentType

public String getContentType()

Gets the type of stored content.

Returns:the type of stored content

setContent

public void setContent(String content)

Sets the content to store.

Parameters:
  • content – the content to be set

setContentType

public void setContentType(String contentType)

Sets the type of stored content to the value passed as a parameter.

Parameters:
  • contentType – the type to be set