Class RewriteAction
- java.lang.Object
-
- org.apache.synapse.mediators.transform.url.RewriteAction
-
public class RewriteAction extends Object
Represents a URL rewrite action. The action could be rewriting the entire URL or rewriting a fragment of the URL.
-
-
Field Summary
Fields Modifier and Type Field Description static intACTION_APPENDstatic intACTION_PREPENDstatic intACTION_REMOVEstatic intACTION_REMOVE_QUERY_PARAMstatic intACTION_REPLACEstatic intACTION_SET
-
Constructor Summary
Constructors Constructor Description RewriteAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(URIFragments fragments, MessageContext messageContext)intgetActionType()intgetFragmentIndex()StringgetRegex()StringgetValue()SynapseXPathgetXpath()booleanisResolve()voidsetActionType(int actionType)voidsetFragmentIndex(int fragmentIndex)voidsetRegex(String regex)voidsetResolve(boolean resolve)voidsetValue(String value)voidsetXpath(SynapseXPath xpath)
-
-
-
Field Detail
-
ACTION_SET
public static final int ACTION_SET
- See Also:
- Constant Field Values
-
ACTION_APPEND
public static final int ACTION_APPEND
- See Also:
- Constant Field Values
-
ACTION_PREPEND
public static final int ACTION_PREPEND
- See Also:
- Constant Field Values
-
ACTION_REPLACE
public static final int ACTION_REPLACE
- See Also:
- Constant Field Values
-
ACTION_REMOVE
public static final int ACTION_REMOVE
- See Also:
- Constant Field Values
-
ACTION_REMOVE_QUERY_PARAM
public static final int ACTION_REMOVE_QUERY_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public void execute(URIFragments fragments, MessageContext messageContext) throws URISyntaxException
- Throws:
URISyntaxException
-
getFragmentIndex
public int getFragmentIndex()
-
setFragmentIndex
public void setFragmentIndex(int fragmentIndex)
-
getValue
public String getValue()
-
setValue
public void setValue(String value)
-
getXpath
public SynapseXPath getXpath()
-
setXpath
public void setXpath(SynapseXPath xpath)
-
getRegex
public String getRegex()
-
setRegex
public void setRegex(String regex)
-
getActionType
public int getActionType()
-
setActionType
public void setActionType(int actionType)
-
isResolve
public boolean isResolve()
-
setResolve
public void setResolve(boolean resolve)
-
-