Package org.apache.synapse.config.xml
Class URLRewriteMediatorFactory
- java.lang.Object
-
- org.apache.synapse.config.xml.AbstractMediatorFactory
-
- org.apache.synapse.config.xml.URLRewriteMediatorFactory
-
- All Implemented Interfaces:
MediatorFactory
public class URLRewriteMediatorFactory extends AbstractMediatorFactory
Creates an instance of the URLRewriteMediator given an XML configuration which adheres to the following grammar.<rewrite [inProperty="inputURL"] [outProperty="outputURL"]> <rewriterule> <condition> evaluator configuration </condition> ? <action value="value" xpath="xpath" [type="set | append | prepend | replace | remove | remove-query-param"] [fragment="protocol | user | host | port | path | query | ref | full"] [regex="regex"] /> + </rewriterule> * </rewrite>
-
-
Field Summary
Fields Modifier and Type Field Description static StringACTION_APPENDstatic StringACTION_PREPENDstatic StringACTION_REMOVEstatic StringACTION_REMOVE_QUERY_PARAMstatic StringACTION_REPLACEstatic StringACTION_SETstatic StringFRAGMENT_FULL_URIstatic StringFRAGMENT_HOSTstatic StringFRAGMENT_PATHstatic StringFRAGMENT_PORTstatic StringFRAGMENT_PROTOCOLstatic StringFRAGMENT_QUERYstatic StringFRAGMENT_REFstatic StringFRAGMENT_USER_INFO-
Fields inherited from class org.apache.synapse.config.xml.AbstractMediatorFactory
ATT_DEFAULT_VALUE, ATT_DESCRIPTION, ATT_EVAL, ATT_EXPRN, ATT_IS_MANDATORY, ATT_KEY, ATT_NAME, ATT_ONERROR, ATT_REGEX, ATT_SEQUENCE, ATT_SOURCE, ATT_STATS, ATT_TARGET, ATT_VALUE, ATT_XPATH, DESCRIPTION_Q, FEATURE_Q, PROP_Q, PROPERTY_GROUP_Q, TARGET_Q
-
-
Constructor Summary
Constructors Constructor Description URLRewriteMediatorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MediatorcreateSpecificMediator(org.apache.axiom.om.OMElement element, Properties properties)Specific mediator factory implementations should implement this method to build theMediatorby the given XML configurationQNamegetTagQName()The QName of this mediator element in the XML config-
Methods inherited from class org.apache.synapse.config.xml.AbstractMediatorFactory
addAllCommentChildrenToList, collectNameValuePairs, createMediator, handleException, handleException, processAuditStatus, processTraceState
-
-
-
-
Field Detail
-
ACTION_SET
public static final String ACTION_SET
- See Also:
- Constant Field Values
-
ACTION_APPEND
public static final String ACTION_APPEND
- See Also:
- Constant Field Values
-
ACTION_PREPEND
public static final String ACTION_PREPEND
- See Also:
- Constant Field Values
-
ACTION_REPLACE
public static final String ACTION_REPLACE
- See Also:
- Constant Field Values
-
ACTION_REMOVE
public static final String ACTION_REMOVE
- See Also:
- Constant Field Values
-
ACTION_REMOVE_QUERY_PARAM
public static final String ACTION_REMOVE_QUERY_PARAM
- See Also:
- Constant Field Values
-
FRAGMENT_PROTOCOL
public static final String FRAGMENT_PROTOCOL
- See Also:
- Constant Field Values
-
FRAGMENT_USER_INFO
public static final String FRAGMENT_USER_INFO
- See Also:
- Constant Field Values
-
FRAGMENT_HOST
public static final String FRAGMENT_HOST
- See Also:
- Constant Field Values
-
FRAGMENT_PORT
public static final String FRAGMENT_PORT
- See Also:
- Constant Field Values
-
FRAGMENT_PATH
public static final String FRAGMENT_PATH
- See Also:
- Constant Field Values
-
FRAGMENT_QUERY
public static final String FRAGMENT_QUERY
- See Also:
- Constant Field Values
-
FRAGMENT_REF
public static final String FRAGMENT_REF
- See Also:
- Constant Field Values
-
FRAGMENT_FULL_URI
public static final String FRAGMENT_FULL_URI
- See Also:
- Constant Field Values
-
-
Method Detail
-
createSpecificMediator
protected Mediator createSpecificMediator(org.apache.axiom.om.OMElement element, Properties properties)
Description copied from class:AbstractMediatorFactorySpecific mediator factory implementations should implement this method to build theMediatorby the given XML configuration- Specified by:
createSpecificMediatorin classAbstractMediatorFactory- Parameters:
element- configuration element describing the properties of the mediatorproperties- bag of properties to pass in any information to the factory- Returns:
- built mediator of that specific type
-
getTagQName
public QName getTagQName()
Description copied from interface:MediatorFactoryThe QName of this mediator element in the XML config- Returns:
- QName of the mediator element
-
-