/*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.mobicents.servlet.sip.router;
import javax.servlet.sip.ar.SipApplicationRoutingRegion;
import javax.servlet.sip.ar.SipRouteModifier;
/**
* This class contains one information parsed in the dar configuration file.
* Example : ("OriginatingCallWaiting", "DAR:From", "ORIGINATING", "", "NO_ROUTE", "0")
* @author Jean Deruelle
*
*/
public class DefaultSipApplicationRouterInfo {
private String applicationName;
private String subscriberIdentity;
private SipApplicationRoutingRegion routingRegion;
private String[] routes;
private SipRouteModifier routeModifier;
private int order;
/**
*
*/
public DefaultSipApplicationRouterInfo() {
super();
}
/**
* @param applicationName
* @param subscriberIdentity
* @param routingRegionType
* @param route
* @param routeModifier
* @param order
*/
public DefaultSipApplicationRouterInfo(String applicationName,
String subscriberIdentity,
SipApplicationRoutingRegion routingRegion, String[] routes,
SipRouteModifier routeModifier, int order) {
super();
this.applicationName = applicationName;
this.subscriberIdentity = subscriberIdentity;
this.routingRegion = routingRegion;
this.routes = routes;
this.routeModifier = routeModifier;
this.order = order;
}
/**
* @return the applicationName
*/
public String getApplicationName() {
return applicationName;
}
/**
* @param applicationName the applicationName to set
*/
public void setApplicationName(String applicationName) {
this.applicationName = applicationName;
}
/**
* @return the subscriberIdentity
*/
public String getSubscriberIdentity() {
return subscriberIdentity;
}
/**
* @param subscriberIdentity the subscriberIdentity to set
*/
public void setSubscriberIdentity(String subscriberIdentity) {
this.subscriberIdentity = subscriberIdentity;
}
/**
* @return the routingRegionType
*/
public SipApplicationRoutingRegion getRoutingRegion() {
return routingRegion;
}
/**
* @param routingRegionType the routingRegionType to set
*/
public void setRoutingRegionType(SipApplicationRoutingRegion routingRegion) {
this.routingRegion = routingRegion;
}
/**
* @return the route
*/
public String[] getRoutes() {
return routes;
}
/**
* @param route the route to set
*/
public void setRoutes(String[] routes) {
this.routes = routes;
}
/**
* @return the routeModifier
*/
public SipRouteModifier getRouteModifier() {
return routeModifier;
}
/**
* @param routeModifier the routeModifier to set
*/
public void setRouteModifier(SipRouteModifier routeModifier) {
this.routeModifier = routeModifier;
}
/**
* @return the order
*/
public int getOrder() {
return order;
}
/**
* @param order the order to set
*/
public void setStateInfo(int stateInfo) {
this.order = stateInfo;
}
}