org.apache.synapse.mediators.transform.url
Class RewriteAction

java.lang.Object
  extended by 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
static int ACTION_APPEND
           
static int ACTION_PREPEND
           
static int ACTION_REMOVE
           
static int ACTION_REPLACE
           
static int ACTION_SET
           
 
Constructor Summary
RewriteAction()
           
 
Method Summary
 void execute(URIFragments fragments, MessageContext messageContext)
           
 int getActionType()
           
 int getFragmentIndex()
           
 String getRegex()
           
 String getValue()
           
 SynapseXPath getXpath()
           
 void setActionType(int actionType)
           
 void setFragmentIndex(int fragmentIndex)
           
 void setRegex(String regex)
           
 void setValue(String value)
           
 void setXpath(SynapseXPath xpath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

RewriteAction

public RewriteAction()
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)


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.