public class UpdateNetworkRouteTask extends SipServletTask
NetworkRouteMXBean
MBean
representing the network route.
Attribute | Description | Required |
position | The position in the current route list in which to update. | Yes. |
rule | The rule to match for this route to be selected. | No. |
interface | The name of the network interface to be used if this route is selected. | No. |
newPosition | The new position to move the route to. | No. |
connectionrefid | The id of a previous connect task that will be used to connect
to a SIP Servlet RA entity. |
No. The connection from the last successful
connect task is used by default. |
failonerror | Default failure case behaviour for this task. If set to 'false' or 'no', the build will continue when this task attempts a redundant action. | No. Default is false . |
<updatenetworkroute position="0" newPosition="3"/>
Constructor and Description |
---|
UpdateNetworkRouteTask() |
Modifier and Type | Method and Description |
---|---|
protected void |
execute(SipServletClient client) |
void |
setInterface(java.lang.String interfaceName) |
void |
setNewPosition(int pos) |
void |
setPosition(int pos) |
void |
setRule(java.lang.String rule) |
protected void |
validateParameters() |
debug, debug, error, error, execute, fatal, fatal, fatal, getFailOnError, getSipServletClient, info, info, nonFatal, nonFatal, nonFatal, setConnectionRefId, setFailOnError, toByteArray, toString, verbose, verbose, warn, warn
public void setPosition(int pos)
public void setRule(java.lang.String rule)
public void setInterface(java.lang.String interfaceName)
public void setNewPosition(int pos)
protected void validateParameters() throws BuildException
validateParameters
in class SipServletTask
BuildException
protected void execute(SipServletClient client) throws BuildException
execute
in class SipServletTask
BuildException