Package org.apache.activemq.broker
Class UserIDBroker
- java.lang.Object
- 
- org.apache.activemq.broker.BrokerFilter
- 
- org.apache.activemq.broker.UserIDBroker
 
 
- 
 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.
- 
- 
Field Summary- 
Fields inherited from class org.apache.activemq.broker.BrokerFilternext
 
- 
 - 
Constructor SummaryConstructors Constructor Description UserIDBroker(Broker next)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisUseAuthenticatePrincipal()voidsend(ProducerBrokerExchange producerExchange, Message messageSend)Send a message to the broker to using the specified destination.voidsetUseAuthenticatePrincipal(boolean useAuthenticatePrincipal)- 
Methods inherited from class org.apache.activemq.broker.BrokerFilteracknowledge, addBroker, addConnection, addConsumer, addDestination, addDestinationInfo, addProducer, addSession, beginTransaction, brokerServiceStarted, commitTransaction, fastProducer, forgetTransaction, gc, getAdaptor, getAdminConnectionContext, getBrokerId, getBrokerName, getBrokerSequenceId, getBrokerService, getClients, getDestinationMap, getDestinationMap, getDestinations, getDestinations, getDurableDestinations, getExecutor, getNext, getPeerBrokerInfos, getPreparedTransactions, getRoot, getScheduler, getTempDataStore, getVmConnectorURI, isExpired, isFaultTolerantConfiguration, isFull, isStopped, messageConsumed, messageDelivered, messageDiscarded, messageExpired, messagePull, networkBridgeStarted, networkBridgeStopped, nowMasterBroker, postProcessDispatch, prepareTransaction, preProcessDispatch, processConsumerControl, processDispatchNotification, reapplyInterceptor, removeBroker, removeConnection, removeConsumer, removeDestination, removeDestinationInfo, removeProducer, removeSession, removeSubscription, rollbackTransaction, sendToDeadLetterQueue, setAdminConnectionContext, slowConsumer, start, stop, virtualDestinationAdded, virtualDestinationRemoved
 
- 
 
- 
- 
- 
Constructor Detail- 
UserIDBrokerpublic UserIDBroker(Broker next) 
 
- 
 - 
Method Detail- 
sendpublic void send(ProducerBrokerExchange producerExchange, Message messageSend) throws Exception Description copied from interface:RegionSend 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:
- sendin interface- Region
- Overrides:
- sendin class- BrokerFilter
- Parameters:
- producerExchange- the environment the operation is being executed under.
- Throws:
- Exception- TODO
 
 - 
isUseAuthenticatePrincipalpublic boolean isUseAuthenticatePrincipal() 
 - 
setUseAuthenticatePrincipalpublic void setUseAuthenticatePrincipal(boolean useAuthenticatePrincipal) 
 
- 
 
-