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 int
ACTION_APPEND
static int
ACTION_PREPEND
static int
ACTION_REMOVE
static int
ACTION_REMOVE_QUERY_PARAM
static int
ACTION_REPLACE
static int
ACTION_SET
-
Constructor Summary
Constructors Constructor Description RewriteAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(URIFragments fragments, MessageContext messageContext)
int
getActionType()
int
getFragmentIndex()
String
getRegex()
String
getValue()
SynapseXPath
getXpath()
boolean
isResolve()
void
setActionType(int actionType)
void
setFragmentIndex(int fragmentIndex)
void
setRegex(String regex)
void
setResolve(boolean resolve)
void
setValue(String value)
void
setXpath(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)
-
-