org.apache.cocoon.components.slide.impl
Class JMSContentInterceptor
java.lang.Object
org.apache.slide.content.AbstractContentInterceptor
org.apache.cocoon.components.slide.impl.JMSContentInterceptor
- All Implemented Interfaces:
- org.apache.slide.content.ContentInterceptor
public class JMSContentInterceptor
- extends org.apache.slide.content.AbstractContentInterceptor
A ContentInterceptor for Slide that publishes
invalidation events to a JMS topic.
Method Summary |
void |
postRemoveContent(org.apache.slide.common.SlideToken slideToken,
org.apache.slide.content.NodeRevisionDescriptors revisions,
org.apache.slide.content.NodeRevisionDescriptor revision)
|
void |
postStoreContent(org.apache.slide.common.SlideToken slideToken,
org.apache.slide.content.NodeRevisionDescriptors revisions,
org.apache.slide.content.NodeRevisionDescriptor revision,
org.apache.slide.content.NodeRevisionContent content)
|
void |
setNamespace(org.apache.slide.common.NamespaceAccessToken nat)
Sets up the JMS connection. |
void |
setParameters(Hashtable params)
Configure the interceptor. |
Methods inherited from class org.apache.slide.content.AbstractContentInterceptor |
getNamespace, getParameter, getParameters, postRetrieveContent, preRemoveContent, preRetrieveContent, preStoreContent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JMSContentInterceptor
public JMSContentInterceptor()
setParameters
public void setParameters(Hashtable params)
- Configure the interceptor.
The following parameters are recognized:
-
java.naming.factory.initial
[org.exolab.jms.jndi.InitialContextFactory
]
- initial jndi context factory.
-
java.naming.provider.url
[rmi://localhost:1099/
] - jndi provider url.
-
topic-factory [JmsTopicConnectionFactory
] - the JNDI lookup name
of the JMS TopicConnectionFactory.
-
topic
[topic1
] - the name of the topic to publish messages to.
-
persistent-delivery
[false
] - message delivery mode.
-
priority
[4
] - message priority.
-
time-to-live
[1000
] - message lifetime in ms.
- Specified by:
setParameters
in interface org.apache.slide.content.ContentInterceptor
- Overrides:
setParameters
in class org.apache.slide.content.AbstractContentInterceptor
setNamespace
public void setNamespace(org.apache.slide.common.NamespaceAccessToken nat)
- Sets up the JMS connection.
- Specified by:
setNamespace
in interface org.apache.slide.content.ContentInterceptor
- Overrides:
setNamespace
in class org.apache.slide.content.AbstractContentInterceptor
postRemoveContent
public void postRemoveContent(org.apache.slide.common.SlideToken slideToken,
org.apache.slide.content.NodeRevisionDescriptors revisions,
org.apache.slide.content.NodeRevisionDescriptor revision)
throws org.apache.slide.security.AccessDeniedException,
org.apache.slide.structure.ObjectNotFoundException,
org.apache.slide.structure.LinkedObjectNotFoundException,
org.apache.slide.lock.ObjectLockedException,
org.apache.slide.common.ServiceAccessException
- Specified by:
postRemoveContent
in interface org.apache.slide.content.ContentInterceptor
- Overrides:
postRemoveContent
in class org.apache.slide.content.AbstractContentInterceptor
- Throws:
org.apache.slide.security.AccessDeniedException
org.apache.slide.structure.ObjectNotFoundException
org.apache.slide.structure.LinkedObjectNotFoundException
org.apache.slide.lock.ObjectLockedException
org.apache.slide.common.ServiceAccessException
postStoreContent
public void postStoreContent(org.apache.slide.common.SlideToken slideToken,
org.apache.slide.content.NodeRevisionDescriptors revisions,
org.apache.slide.content.NodeRevisionDescriptor revision,
org.apache.slide.content.NodeRevisionContent content)
throws org.apache.slide.security.AccessDeniedException,
org.apache.slide.structure.ObjectNotFoundException,
org.apache.slide.structure.LinkedObjectNotFoundException,
org.apache.slide.lock.ObjectLockedException,
org.apache.slide.common.ServiceAccessException
- Specified by:
postStoreContent
in interface org.apache.slide.content.ContentInterceptor
- Overrides:
postStoreContent
in class org.apache.slide.content.AbstractContentInterceptor
- Throws:
org.apache.slide.security.AccessDeniedException
org.apache.slide.structure.ObjectNotFoundException
org.apache.slide.structure.LinkedObjectNotFoundException
org.apache.slide.lock.ObjectLockedException
org.apache.slide.common.ServiceAccessException
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.