org.apache.synapse.config.xml
Class CacheMediatorSerializer
java.lang.Object
org.apache.synapse.config.xml.AbstractMediatorSerializer
org.apache.synapse.config.xml.CacheMediatorSerializer
- All Implemented Interfaces:
- MediatorSerializer
public class CacheMediatorSerializer
- extends AbstractMediatorSerializer
Serializes the Cache mediator to the XML configuration specified
<cache [id="string"] [hashGenerator="class"] [timeout="seconds"]
[scope=(per-host | per-mediator)] collector=(true | false) [maxMessageSize="in-bytes"]>
<onCacheHit [sequence="key"]>
(mediator)+
</onCacheHit>?
<implementation type=(memory | disk) maxSize="int"/>
</cache>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheMediatorSerializer
public CacheMediatorSerializer()
serializeMediator
public OMElement serializeMediator(OMElement parent,
Mediator m)
- Description copied from interface:
MediatorSerializer
- Return the XML representation of this mediator
- Parameters:
parent - the OMElement to which the serialization should be attachedm - mediator to be serialized
- Returns:
- the serialized mediator XML
getMediatorClassName
public String getMediatorClassName()
- Description copied from interface:
MediatorSerializer
- Return the class name of the mediator which can be serialized
- Returns:
- the class name
Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.