org.mobicents.slee.resource.diameter.base.events.avp
Class ProxyInfoAvpImpl

java.lang.Object
  extended by org.mobicents.slee.resource.diameter.base.events.avp.DiameterAvpImpl
      extended by org.mobicents.slee.resource.diameter.base.events.avp.GroupedAvpImpl
          extended by org.mobicents.slee.resource.diameter.base.events.avp.ProxyInfoAvpImpl
All Implemented Interfaces:
java.lang.Cloneable, DiameterAvp, GroupedAvp, ProxyInfoAvp

public class ProxyInfoAvpImpl
extends GroupedAvpImpl
implements ProxyInfoAvp

Super project: mobicents 12:56:45 2008-05-08

Author:
Eric Svenson

Field Summary
 
Fields inherited from class org.mobicents.slee.resource.diameter.base.events.avp.GroupedAvpImpl
avpSet
 
Fields inherited from class org.mobicents.slee.resource.diameter.base.events.avp.DiameterAvpImpl
code, log, mnd, name, parser, prt, type, vendorId
 
Fields inherited from interface net.java.slee.resource.diameter.base.events.avp.DiameterAvp
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
 
Constructor Summary
ProxyInfoAvpImpl(int code, long vendorId, int mnd, int prt, byte[] value)
           
 
Method Summary
 DiameterAvp[] getExtensionAvps()
          Returns the set of extension AVPs.
 DiameterIdentityAvp getProxyHost()
          Returns the value of the Proxy-Host AVP, of type DiameterIdentity.
 byte[] getProxyState()
          Returns the value of the Proxy-State AVP, of type OctetString.
 boolean hasProxyHost()
          Returns true if the Proxy-Host AVP is present in the message.
 boolean hasProxyState()
          Returns true if the Proxy-State AVP is present in the message.
 void setExtensionAvps(DiameterAvp[] avps)
          Sets the set of extension AVPs with all the values in the given array.
 void setProxyHost(DiameterIdentityAvp proxyHost)
          Sets the value of the Proxy-Host AVP, of type DiameterIdentity.
 void setProxyState(byte[] proxyState)
          Sets the value of the Proxy-State AVP, of type OctetString.
 
Methods inherited from class org.mobicents.slee.resource.diameter.base.events.avp.GroupedAvpImpl
byteArrayValue, clone, doubleValue, floatValue, getAllAvpAsUInt32, getAvpAsIdentity, getAvpAsUInt32, hasExtensionAvps, intValue, longValue, setAvpAsByteArray, setAvpAsIdentity, setAvpAsUInt32, stringValue
 
Methods inherited from class org.mobicents.slee.resource.diameter.base.events.avp.DiameterAvpImpl
getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorId, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.avp.GroupedAvp
hasExtensionAvps
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.avp.DiameterAvp
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorId, intValue, longValue, stringValue
 

Constructor Detail

ProxyInfoAvpImpl

public ProxyInfoAvpImpl(int code,
                        long vendorId,
                        int mnd,
                        int prt,
                        byte[] value)
Method Detail

hasProxyHost

public boolean hasProxyHost()
Description copied from interface: ProxyInfoAvp
Returns true if the Proxy-Host AVP is present in the message.

Specified by:
hasProxyHost in interface ProxyInfoAvp

getProxyHost

public DiameterIdentityAvp getProxyHost()
Description copied from interface: ProxyInfoAvp
Returns the value of the Proxy-Host AVP, of type DiameterIdentity. A return value of null implies that the AVP has not been set.

Specified by:
getProxyHost in interface ProxyInfoAvp

setProxyHost

public void setProxyHost(DiameterIdentityAvp proxyHost)
Description copied from interface: ProxyInfoAvp
Sets the value of the Proxy-Host AVP, of type DiameterIdentity.

Specified by:
setProxyHost in interface ProxyInfoAvp

hasProxyState

public boolean hasProxyState()
Description copied from interface: ProxyInfoAvp
Returns true if the Proxy-State AVP is present in the message.

Specified by:
hasProxyState in interface ProxyInfoAvp

getProxyState

public byte[] getProxyState()
Description copied from interface: ProxyInfoAvp
Returns the value of the Proxy-State AVP, of type OctetString. A return value of null implies that the AVP has not been set.

Specified by:
getProxyState in interface ProxyInfoAvp

setProxyState

public void setProxyState(byte[] proxyState)
Description copied from interface: ProxyInfoAvp
Sets the value of the Proxy-State AVP, of type OctetString.

Specified by:
setProxyState in interface ProxyInfoAvp

getExtensionAvps

public DiameterAvp[] getExtensionAvps()
Description copied from interface: GroupedAvp
Returns the set of extension AVPs. The returned array contains the extension AVPs in the order they appear in the message. A return value of null implies that no extensions AVPs have been set.

Specified by:
getExtensionAvps in interface GroupedAvp
Overrides:
getExtensionAvps in class GroupedAvpImpl
Returns:

setExtensionAvps

public void setExtensionAvps(DiameterAvp[] avps)
                      throws AvpNotAllowedException
Description copied from interface: GroupedAvp
Sets the set of extension AVPs with all the values in the given array. The AVPs will be added to message in the order in which they appear in the array. Note: the array must not be altered by the caller following this call, and getExtensionAvps() is not guaranteed to return the same array instance, e.g. an "==" check would fail.

Specified by:
setExtensionAvps in interface GroupedAvp
Overrides:
setExtensionAvps in class GroupedAvpImpl
Throws:
AvpNotAllowedException


Copyright © 2008. All Rights Reserved.