/*
* Mobicents, Communications Middleware
*
* Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
* indicated by the @author tags or express copyright attribution
* statements applied by the authors. All third-party contributions are
* distributed under license by Red Hat Middleware LLC.
*
* This copyrighted material is made available to anyone wishing to use, modify,
* copy, or redistribute it subject to the terms and conditions of the GNU
* Lesser General Public License, as published by the Free Software Foundation.
*
* This program 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 distribution; if not, write to:
* Free Software Foundation, Inc.
* 51 Franklin Street, Fifth Floor
*
* Boston, MA 02110-1301 USA
*/
package net.java.slee.resource.diameter.ro.events.avp;
/**
* Java class to represent the Adaptations enumerated type.
*
* 6.3.4 Server-Capabilities AVP
* The Server-Capabilities AVP is of type Grouped. This AVP contains information
* to assist the I-CSCF in the selection of an S-CSCF.
*
* AVP format
* Server-Capabilities ::= <AVP header: 603 10415>
* *[Mandatory-Capability]
* *[Optional-Capability]
* *[Server-Name]
* *[AVP]
*
* @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
* @author <a href="mailto:baranowb@gmail.com"> Bartosz Baranowski </a>
*/
public interface ServerCapabilities extends net.java.slee.resource.diameter.base.events.avp.GroupedAvp {
/**
* Returns the value of the Mandatory-Capability AVP, of type Unsigned32. A return value of null implies that the AVP has not been set.
*/
abstract long getMandatoryCapability();
/**
* Returns the value of the Optional-Capability AVP, of type Unsigned32. A return value of null implies that the AVP has not been set.
*/
abstract long getOptionalCapability();
/**
* Returns the value of the Server-Name AVP, of type UTF8String. A return value of null implies that the AVP has not been set.
*/
abstract String getServerName();
/**
* Returns true if the Mandatory-Capability AVP is present in the message.
*/
abstract boolean hasMandatoryCapability();
/**
* Returns true if the Optional-Capability AVP is present in the message.
*/
abstract boolean hasOptionalCapability();
/**
* Returns the value of the Server-Name AVP, of type UTF8String. A return value of null implies that the AVP has not been set.
*/
abstract boolean hasServerName();
/**
* Sets the value of the Mandatory-Capability AVP, of type Unsigned32.
*/
abstract void setMandatoryCapability(long mandatoryCapability);
/**
* Sets the value of the Optional-Capability AVP, of type Unsigned32.
*/
abstract void setOptionalCapability(long optionalCapability);
/**
* Returns the value of the Server-Name AVP, of type UTF8String. A return value of null implies that the AVP has not been set.
*/
abstract void setServerName(String serverName);
}