org.apache.activemq.broker
Class UserIDBroker
java.lang.Object
org.apache.activemq.broker.BrokerFilter
org.apache.activemq.broker.UserIDBroker
- All Implemented Interfaces:
- Broker, Region, Service
public class UserIDBroker
- extends BrokerFilter
This broker filter will append the producer's user ID into the JMSXUserID header
to allow folks to know reliably who the user was who produced a message.
Note that you cannot trust the client, especially if working over the internet
as they can spoof headers to be anything they like.
- Version:
- $Revision: 1.8 $
Methods inherited from class org.apache.activemq.broker.BrokerFilter |
acknowledge, addBroker, addConnection, addConsumer, addDestination, addDestinationInfo, addProducer, addSession, beginTransaction, commitTransaction, forgetTransaction, gc, getAdaptor, getAdminConnectionContext, getBrokerId, getBrokerName, getClients, getDestinationMap, getDestinations, getDestinations, getDurableDestinations, getPeerBrokerInfos, getPendingDurableSubscriberPolicy, getPreparedTransactions, getTempDataStore, isFaultTolerantConfiguration, isSlaveBroker, isStopped, messagePull, prepareTransaction, processDispatch, processDispatchNotification, removeBroker, removeConnection, removeConsumer, removeDestination, removeDestinationInfo, removeProducer, removeSession, removeSubscription, rollbackTransaction, setAdminConnectionContext, setPendingDurableSubscriberPolicy, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserIDBroker
public UserIDBroker(Broker next)
send
public void send(ConnectionContext context,
Message messageSend)
throws Exception
- Description copied from interface:
Region
- Send a message to the broker to using the specified destination. The destination specified
in the message does not need to match the destination the message is sent to. This is
handy in case the message is being sent to a dead letter destination.
- Specified by:
send
in interface Region
- Overrides:
send
in class BrokerFilter
- Parameters:
context
- the environment the operation is being executed under.
- Throws:
Exception
- TODO
Copyright © 2011 Apache Software Foundation. All Rights Reserved.