public class FXBlotterMessageFactory extends Object
Instances of this class should be obtained from FXBlotterPublisher.getMessageFactory()
This class has the capability to create the FXBlotterMessage
, which represents the
Container message, with its constituent items, but not the data for those items.
Modifier and Type | Field and Description |
---|---|
protected FXBlotter |
blotter |
protected com.caplin.datasource.messaging.MessageFactory |
factory |
Constructor and Description |
---|
FXBlotterMessageFactory(FXBlotter blotter,
com.caplin.datasource.messaging.MessageFactory factory)
Deprecated.
You should not need to create instances of this class yourself. Instead instances should
be obtained from
FXBlotterPublisher.getMessageFactory() . |
Modifier and Type | Method and Description |
---|---|
FXBlotterMessage |
createBlotterMessage(FXBlotterSubjectInfo subjectInfo)
Creates the
FXBlotterMessage which represents the Container for the
blotter belonging to the user and blotter subject defined in the FXBlotterSubjectInfo
specified. |
FXBlotterMessage |
createBlotterMessage(String username)
Creates the
FXBlotterMessage which represents the Container for the
blotter belonging to the specified user. |
com.caplin.datasource.messaging.MessageFactory |
getMessageFactory()
Returns the standard DataSource
MessageFactory which allows you to
create ContainerMessage and RecordMessage should you need to. |
protected final FXBlotter blotter
protected final com.caplin.datasource.messaging.MessageFactory factory
@Deprecated public FXBlotterMessageFactory(FXBlotter blotter, com.caplin.datasource.messaging.MessageFactory factory)
FXBlotterPublisher.getMessageFactory()
.blotter
- The object containing the Container subject regex, and the Record Item subject regex for that container.factory
- The standard DataSource message factory.public com.caplin.datasource.messaging.MessageFactory getMessageFactory()
MessageFactory
which allows you to
create ContainerMessage
and RecordMessage
should you need to.
In most cases using createBlotterMessage(String)
and
createBlotterMessage(FXBlotterSubjectInfo)
should suffice.public FXBlotterMessage createBlotterMessage(String username)
Creates the FXBlotterMessage
which represents the Container for the
blotter belonging to the specified user.
After creating the item FXBlotterMessage.addItem(String)
or FXBlotterMessage.addItem(FXBlotter, String)
should be called to add the subjects for the records that are the constituents of the Blotter.
If the request was for a container with filter parameters use createBlotterMessage(FXBlotterSubjectInfo)
instead
username
- The username for which the blotter belongs topublic FXBlotterMessage createBlotterMessage(FXBlotterSubjectInfo subjectInfo)
Creates the FXBlotterMessage
which represents the Container for the
blotter belonging to the user and blotter subject defined in the FXBlotterSubjectInfo
specified.
After creating the item FXBlotterMessage.addItem(String)
or FXBlotterMessage.addItem(FXBlotter, String)
should be called to add the subjects for the records that are the constituents of the Blotter.
Use this callback if you are servicing a request containing filter parameters.
subjectInfo
- The object representing the blotter request and its parameters.Copyright © 2015 Caplin Systems.