public class AddNetworkRouteTask extends SipServletTask
NetworkInterfaceManagementMXBean.addRoute(String, String, int)
management operation.
Attribute | Description | Required |
rule | The rule to match for this route to be selected. | Yes. |
interface | The name of the network interface to be used if this route is selected. | Yes. |
position | The position in the current route list in which to add this new one.
|
No. Default is to add to the end of the list. |
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 . |
<addnetworkroute rule="ip 192.168.0.0/24" interface="internal"/>
Constructor and Description |
---|
AddNetworkRouteTask() |
Modifier and Type | Method and Description |
---|---|
protected void |
execute(SipServletClient client) |
void |
setInterface(java.lang.String interfaceName) |
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 setRule(java.lang.String rule)
public void setInterface(java.lang.String interfaceName)
public void setPosition(int pos)
protected void validateParameters() throws BuildException
validateParameters
in class SipServletTask
BuildException
protected void execute(SipServletClient client)
execute
in class SipServletTask