public class DefaultMessageFactory extends Object implements JMSEventMessageFactory
Messages composed entirely of headers, based entirely
on information found in the FedoraEvent that triggers publication.| Modifier and Type | Field and Description |
|---|---|
static String |
BASE_URL_HEADER_NAME |
static String |
EVENT_TYPE_HEADER_NAME |
static String |
IDENTIFIER_HEADER_NAME |
static String |
JMS_NAMESPACE |
static String |
PROPERTIES_HEADER_NAME |
static String |
TIMESTAMP_HEADER_NAME |
| Constructor and Description |
|---|
DefaultMessageFactory() |
| Modifier and Type | Method and Description |
|---|---|
javax.jms.Message |
getMessage(FedoraEvent jcrEvent,
javax.jms.Session jmsSession)
Produce a JMS message from a JCR event with the
given session
|
public static final String JMS_NAMESPACE
public static final String TIMESTAMP_HEADER_NAME
public static final String IDENTIFIER_HEADER_NAME
public static final String EVENT_TYPE_HEADER_NAME
public static final String BASE_URL_HEADER_NAME
public static final String PROPERTIES_HEADER_NAME
public DefaultMessageFactory()
public javax.jms.Message getMessage(FedoraEvent jcrEvent, javax.jms.Session jmsSession) throws javax.jcr.RepositoryException, javax.jms.JMSException
JMSEventMessageFactorygetMessage in interface JMSEventMessageFactoryjavax.jcr.RepositoryExceptionjavax.jms.JMSExceptionCopyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.