org.ow2.petals.se.eip.patterns
Class Router
java.lang.Object
org.ow2.petals.se.eip.patterns.AbstractPattern
org.ow2.petals.se.eip.patterns.AbstractMEPBridgePattern
org.ow2.petals.se.eip.patterns.AbstractMEPBridgeWithUnicConsumesPattern
org.ow2.petals.se.eip.patterns.Router
- All Implemented Interfaces:
- Pattern
public class Router
- extends AbstractMEPBridgeWithUnicConsumesPattern
A Router pattern on the content of the In message. No robustness on fault or
exception: this concept is linked to at least 2 target exchanges, 2 consumes
- Since:
- 2.2
- Author:
- alouis - EBM WebSourcing, ofabre - EBM WebSourcing, chamerling - EBM WebSourcing, fgardes - EBM WebSourcing
|
Method Summary |
java.lang.String |
getName()
Get the pattern name. |
java.lang.String |
getNameSpace()
Get the pattern namespace. |
void |
init()
Initialize the pattern |
boolean |
process(org.ow2.petals.component.framework.api.message.Exchange exchange,
ExchangeContext context)
Process the message. |
boolean |
validateMEP(java.net.URI mep)
Validate the MEP for the pattern. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROUTER_NAMESPACE
public static final java.lang.String ROUTER_NAMESPACE
- See Also:
- Constant Field Values
Router
public Router()
process
public boolean process(org.ow2.petals.component.framework.api.message.Exchange exchange,
ExchangeContext context)
- Description copied from class:
AbstractPattern
- Process the message.
- Specified by:
process in class AbstractPattern
getName
public java.lang.String getName()
- Description copied from interface:
Pattern
- Get the pattern name.
- Returns:
- The name
validateMEP
public boolean validateMEP(java.net.URI mep)
- Description copied from class:
AbstractPattern
- Validate the MEP for the pattern. This method is called on each message
exchange in order to validate that the MEP is compatible.
- Specified by:
validateMEP in class AbstractPattern
- Parameters:
mep - the mep of the incoming message.
- Returns:
- true if the mep is compatible, false otherwise.
init
public void init()
- Description copied from interface:
Pattern
- Initialize the pattern
getNameSpace
public java.lang.String getNameSpace()
- Description copied from class:
AbstractPattern
- Get the pattern namespace.
- Specified by:
getNameSpace in class AbstractPattern
- Returns:
- The namespace
Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.