org.echarts.servlet.sip.utilities
Class RequestModifier

java.lang.Object
  extended by org.echarts.servlet.sip.utilities.RequestModifier
Direct Known Subclasses:
RequestURIRequestModifier, UpdateRequestModifier, VXMLRequestModifier

public class RequestModifier
extends java.lang.Object

Modifies a SipServletRequest before sending it out.


Constructor Summary
RequestModifier()
           
 
Method Summary
 Address getModifiedFromAddress(SipServletRequest req)
          Provide a modified From address to use in outgoing SipServletRequest.
 URI getModifiedRequestURI(SipServletRequest req)
          Provide a modified Request-URI to use in outgoing SipServletRequest.
 java.util.ListIterator getModifiedRoutes(SipServletRequest req)
          Provide modified Route headers to use in outgoing SipServletRequest.
 void modify(SipServletRequest req)
          Modify SipServletRequest in place (other than From, Request-URI, and Route).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestModifier

public RequestModifier()
Method Detail

getModifiedFromAddress

public Address getModifiedFromAddress(SipServletRequest req)
Provide a modified From address to use in outgoing SipServletRequest. Base class returns null (no change).

Parameters:
req - request on which to base modified From address
Returns:
desired From address, or null for no change

getModifiedRequestURI

public URI getModifiedRequestURI(SipServletRequest req)
Provide a modified Request-URI to use in outgoing SipServletRequest. Base class returns null (no change).

Parameters:
req - request on which to base modified Request-URI
Returns:
desired Request-URI, or null if no change

getModifiedRoutes

public java.util.ListIterator getModifiedRoutes(SipServletRequest req)
Provide modified Route headers to use in outgoing SipServletRequest. Base class returns null (no change).

Parameters:
req - request on which to base modified Route headers
Returns:
desired Route headers, or null if no change

modify

public void modify(SipServletRequest req)
Modify SipServletRequest in place (other than From, Request-URI, and Route). Examples: changing body, adding a header. Base class performs no modificiations.

Parameters:
req - request to be modified.