com.ibm.diameter.packet
Class AvpFactory

java.lang.Object
  extended by com.ibm.diameter.packet.AvpFactory

public class AvpFactory
extends java.lang.Object

The AvpFactory class provides utility methods for generating commonly used AVPs. The AvpFactory reduces the burden on the developer that is creating AVPs. Instead of creating an AVP using the Avp class, you create an AVP using this AvpFactory.

Note that you use this AvpFactory for creating RFC 3588 - Diameter Base Protocol AVPs. You use the com.ibm.diameter.charging.avp.ChargingAvpFactory when creating AVPs defined in RFC 4006 and ETSI TS 132 299 V6.9.0 (2006-12) - Diameter charging applications.

Example:

Avp newOriginHostAvp = AvpFactory.createOriginHostAvp(originHostName);


Method Summary
static Avp createAccountingRecordNumberAvp(int recordNumber)
          Creates Accounting-Record-Number AVP
static Avp createAccountingRecordNumberAvp(int recordNumber, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createAccountingRecordTypeAvp(int recordType)
          Creates Accounting-Record-Type AVP
static Avp createAccountingRecordTypeAvp(int recordType, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createAcctApplicationIdAvp(int acctApplicationId)
          Creates Acct-ApplicationId AVP
static Avp createAcctApplicationIdAvp(int acctApplicationId, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createAcctInterimIntervalAvp(int acctInterimInterval)
          Creates Acct-Interim-Interval AVP
static Avp createAcctInterimIntervalAvp(int acctInterimInterval, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createAuthApplicationIdAvp(int authApplicationId)
          Creates Auth-ApplicationId AVP
static Avp createAuthApplicationIdAvp(int authApplicationId, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createDestinationHostAvp(java.lang.String destinationHost)
          Creates Destination-Host AVP
static Avp createDestinationHostAvp(java.lang.String destinationHost, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createDestinationRealmAvp(java.lang.String destinationRealm)
          Creates Destination-Realm AVP
static Avp createDestinationRealmAvp(java.lang.String destinationRealm, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createErrorMessageAvp(java.lang.String errorMessage)
          Creates an Error-Message AVP
static Avp createErrorMessageAvp(java.lang.String errorMessage, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createErrorReportingHostAvp(java.lang.String errorReportingHost)
          Creates Error-Reporting-Host AVP
static Avp createErrorReportingHostAvp(java.lang.String errorReportingHost, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createEventTimestampAvp(long eventTimestamp)
          Creates Event-Timestamp AVP.
static Avp createEventTimestampAvp(long eventTimestamp, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createFailedAvpAvp(java.util.Vector failedAvp)
          Creates Failed AVP AVP
static Avp createFailedAvpAvp(java.util.Vector failedAvp, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createFirmwareRevisionAvp(int firmwareRevision)
          Creates Firmware-Revision AVP
static Avp createFirmwareRevisionAvp(int firmwareRevision, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createHostIpAddressAvp(java.net.InetSocketAddress inetSocketAddress)
          Creates a Host-IP-Address AVP
static Avp createHostIpAddressAvp(java.net.InetSocketAddress inetSocketAddress, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createInbandSecurityIdAvp(int inbandSecurityId)
          Creates Inband-Security-Id AVP.
static Avp createInbandSecurityIdAvp(int inbandSecurityId, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createOriginHostAvp(java.lang.String originHostName)
          Creates an Origin-Host AVP
static Avp createOriginHostAvp(java.lang.String originHostName, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createOriginRealmAvp(java.lang.String originRealmName)
          Creates an Origin-Realm AVP
static Avp createOriginRealmAvp(java.lang.String originRealmName, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createOriginStateIdAvp(int originStateId)
          Creates an Origin-State-Id AVP
static Avp createOriginStateIdAvp(int originStateId, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createProductNameAvp(java.lang.String productName)
          Creates a Product-Name AVP
static Avp createProductNameAvp(java.lang.String productName, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createProxyHostAvp(java.lang.String proxyHost)
          Creates Proxy-Host AVP
static Avp createProxyHostAvp(java.lang.String proxyHost, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createProxyInfoAvp(java.util.Vector avps)
          Creates Proxy-Info AVP
static Avp createProxyInfoAvp(java.util.Vector avps, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createProxyStateAvp(byte[] proxyState)
          Creates Proxy-State AVP
static Avp createProxyStateAvp(byte[] proxyState, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createReAuthRequestTypeAvp(int reAuthRequestType)
          Creates Re-Auth-Request-Type AVP
static Avp createReAuthRequestTypeAvp(int reAuthRequestType, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createRedirectHostAvp(java.lang.String redirectHost)
          Creates Redirect-Host AVP
static Avp createRedirectHostAvp(java.lang.String redirectHost, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createRedirectHostUsageAvp(int redirectHostUsage)
          Creates Redirect-Host-Usage AVP
static Avp createRedirectHostUsageAvp(int redirectHostUsage, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createRedirectMaxCacheTimeAvp(int redirectMaxCacheTime)
          Creates Redirect-Max-Cache-Time AVP
static Avp createRedirectMaxCacheTimeAvp(int redirectMaxCacheTime, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createResultCodeAvp(int resultCode)
          Creates a Result-Code AVP
static Avp createResultCodeAvp(int resultCode, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createRouteRecordAvp(java.lang.String routeRecord)
          Creates Route-Record AVP
static Avp createRouteRecordAvp(java.lang.String routeRecord, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createSessionIdAvp(java.lang.String sessionId)
          Creates Session-Id AVP
static Avp createSessionIdAvp(java.lang.String sessionId, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createSupportedVendorIdAvp(int supportedVendorId)
          Creates Supported Vendor AVP
static Avp createSupportedVendorIdAvp(int supportedVendorId, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createTerminationCauseAvp(int terminationCause)
          Creates Termination-Cause AVP
static Avp createTerminationCauseAvp(int terminationCause, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createUserNameAvp(java.lang.String userName)
          Creates User-Name AVP
static Avp createUserNameAvp(java.lang.String userName, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
static Avp createVendorIdAvp(int vendorId)
          Creates a Vendor-Id AVP
static Avp createVendorIdAvp(int vendorId, byte avpFlags)
          Deprecated. as of release 6.2 to remove avpFlags parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createAccountingRecordNumberAvp

public static Avp createAccountingRecordNumberAvp(int recordNumber)
Creates Accounting-Record-Number AVP

Parameters:
recordNumber - int containing the value of the Accounting-Record-Number.
Returns:
Avp - Accounting-Record-Number

createAccountingRecordNumberAvp

public static Avp createAccountingRecordNumberAvp(int recordNumber,
                                                  byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates Accounting-Record-Number AVP

Parameters:
recordNumber - int containing the value of the Accounting-Record-Number.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Accounting-Record-Number

createAccountingRecordTypeAvp

public static Avp createAccountingRecordTypeAvp(int recordType)
Creates Accounting-Record-Type AVP

Parameters:
recordType - int containing the value of the Accounting-Record-Type.
Returns:
Avp - Accounting-Record-Type

createAccountingRecordTypeAvp

public static Avp createAccountingRecordTypeAvp(int recordType,
                                                byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates Accounting-Record-Type AVP

Parameters:
recordType - int containing the value of the Accounting-Record-Type.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Accounting-Record-Type

createAcctApplicationIdAvp

public static Avp createAcctApplicationIdAvp(int acctApplicationId)
Creates Acct-ApplicationId AVP

Parameters:
acctApplicationId - int containing the value of the Acct-Application-Id.
Returns:
Avp - Acct-Application-Id

createAcctApplicationIdAvp

public static Avp createAcctApplicationIdAvp(int acctApplicationId,
                                             byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates Acct-ApplicationId AVP

Parameters:
acctApplicationId - int containing the value of the Acct-Application-Id.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Acct-Application-Id

createAcctInterimIntervalAvp

public static Avp createAcctInterimIntervalAvp(int acctInterimInterval)
Creates Acct-Interim-Interval AVP

Parameters:
acctInterimInterval - int containing the value of the Acct-Interim-Interval.
Returns:
Avp - Acct-Interim-Interval

createAcctInterimIntervalAvp

public static Avp createAcctInterimIntervalAvp(int acctInterimInterval,
                                               byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates Acct-Interim-Interval AVP

Parameters:
acctInterimInterval - int containing the value of the Acct-Interim-Interval.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Acct-Interim-Interval

createAuthApplicationIdAvp

public static Avp createAuthApplicationIdAvp(int authApplicationId)
Creates Auth-ApplicationId AVP

Parameters:
authApplicationId - int containing the value of the Auth-Application-Id.
Returns:
Avp - Auth-Application-Id

createAuthApplicationIdAvp

public static Avp createAuthApplicationIdAvp(int authApplicationId,
                                             byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates Auth-ApplicationId AVP

Parameters:
authApplicationId - int containing the value of the Auth-Application-Id.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Auth-Application-Id

createDestinationHostAvp

public static Avp createDestinationHostAvp(java.lang.String destinationHost)
Creates Destination-Host AVP

Parameters:
destinationHost - String containing the value of the Destination-Host.
Returns:
Avp - Destination-Host

createDestinationHostAvp

public static Avp createDestinationHostAvp(java.lang.String destinationHost,
                                           byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates Destination-Host AVP

Parameters:
destinationHost - String containing the value of the Destination-Host.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Destination-Host

createDestinationRealmAvp

public static Avp createDestinationRealmAvp(java.lang.String destinationRealm)
Creates Destination-Realm AVP

Parameters:
destinationRealm - String containing the value of the Destination-Host.
Returns:
Avp - Destination-Realm

createDestinationRealmAvp

public static Avp createDestinationRealmAvp(java.lang.String destinationRealm,
                                            byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates Destination-Realm AVP

Parameters:
destinationRealm - String containing the value of the Destination-Host.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Destination-Realm

createErrorMessageAvp

public static Avp createErrorMessageAvp(java.lang.String errorMessage)
Creates an Error-Message AVP

Parameters:
errorMessage - String containing the text Error Message to be used in the AVP.
Returns:
Avp - Error-Message

createErrorMessageAvp

public static Avp createErrorMessageAvp(java.lang.String errorMessage,
                                        byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates an Error-Message AVP

Parameters:
errorMessage - String containing the text Error Message to be used in the AVP.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Error-Message

createErrorReportingHostAvp

public static Avp createErrorReportingHostAvp(java.lang.String errorReportingHost)
Creates Error-Reporting-Host AVP

Parameters:
errorReportingHost - String containing the value of the Error-Reporting-Host.
Returns:
Avp - Error-Reporting-Host

createErrorReportingHostAvp

public static Avp createErrorReportingHostAvp(java.lang.String errorReportingHost,
                                              byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates Error-Reporting-Host AVP

Parameters:
errorReportingHost - String containing the value of the Error-Reporting-Host.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Error-Reporting-Host

createEventTimestampAvp

public static Avp createEventTimestampAvp(long eventTimestamp)
Creates Event-Timestamp AVP. The input value is designed to use System.currentTimeMillis().

Example:

Avp newEventTimestampAvp = AvpFactory.createEventTimestampAvp(System.currentTimeMillis());

Parameters:
eventTimestamp - long containing the value of the Event-Timestamp in milliseconds from January 1, 1970, 0:0:0.
Returns:
Avp - Event-Timestamp

createEventTimestampAvp

public static Avp createEventTimestampAvp(long eventTimestamp,
                                          byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates Event-Timestamp AVP

Parameters:
eventTimestamp - int containing the value of the Event-Timestamp.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Event-Timestamp

createFailedAvpAvp

public static Avp createFailedAvpAvp(java.util.Vector failedAvp)
Creates Failed AVP AVP

Parameters:
failedAvp - Vector of one or more failing AVPs. Note that the RFC is ambiguous. It is expected that most will only have a single AVP.
Returns:
Avp - Failed-Avp

createFailedAvpAvp

public static Avp createFailedAvpAvp(java.util.Vector failedAvp,
                                     byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates Failed AVP AVP

Parameters:
failedAvp - Vector of one or more failing AVPs. Note that the RFC is ambiguous. It is expected that most will only have a single AVP.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Failed-Avp

createFirmwareRevisionAvp

public static Avp createFirmwareRevisionAvp(int firmwareRevision)
Creates Firmware-Revision AVP

Parameters:
firmwareRevision - int containing the revision level of this software implementation.
Returns:
Avp - Firmware-Revision

createFirmwareRevisionAvp

public static Avp createFirmwareRevisionAvp(int firmwareRevision,
                                            byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates Firmware-Revision AVP

Parameters:
firmwareRevision - int containing the revision level of this software implementation.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Firmware-Revision

createHostIpAddressAvp

public static Avp createHostIpAddressAvp(java.net.InetSocketAddress inetSocketAddress)
Creates a Host-IP-Address AVP

Parameters:
inetSocketAddress - containing one of the network interface addresses of this host
Returns:
Avp - Host-IP-Address

createHostIpAddressAvp

public static Avp createHostIpAddressAvp(java.net.InetSocketAddress inetSocketAddress,
                                         byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates a Host-IP-Address AVP

Parameters:
inetSocketAddress - containing one of the network interface addresses of this host
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Host-IP-Address

createInbandSecurityIdAvp

public static Avp createInbandSecurityIdAvp(int inbandSecurityId)
Creates Inband-Security-Id AVP.

Parameters:
inbandSecurityId - int containing the value of the Inband-Security-Id. 0 = No Inband Security 1 = TLS Required
Returns:
Avp - Inband-Security-Id

createInbandSecurityIdAvp

public static Avp createInbandSecurityIdAvp(int inbandSecurityId,
                                            byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates Inband-Security-Id AVP

Parameters:
inbandSecurityId - int containing the value of the Inband-Security-Id. 0 = No Inband Security 1 = TLS Required
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Inband-Security-Id

createOriginHostAvp

public static Avp createOriginHostAvp(java.lang.String originHostName)
Creates an Origin-Host AVP

Parameters:
originHostName - String containing the Fully Qualified Domain Name (FQDN) of the host.
Returns:
Avp - Origin-Host

createOriginHostAvp

public static Avp createOriginHostAvp(java.lang.String originHostName,
                                      byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates an Origin-Host AVP

Parameters:
originHostName - String containing the Fully Qualified Domain Name (FQDN) of the host
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Origin-Host

createOriginRealmAvp

public static Avp createOriginRealmAvp(java.lang.String originRealmName)
Creates an Origin-Realm AVP

Parameters:
originRealmName - String containing the Fully Qualified Domain Name (FQDN) of the realm
Returns:
Avp - Origin-Realm

createOriginRealmAvp

public static Avp createOriginRealmAvp(java.lang.String originRealmName,
                                       byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates an Origin-Realm AVP

Parameters:
originRealmName - String containing the Fully Qualified Domain Name (FQDN) of the realm
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Origin-Realm

createOriginStateIdAvp

public static Avp createOriginStateIdAvp(int originStateId)
Creates an Origin-State-Id AVP

Parameters:
originStateId - int Origin-State-Id value to be used in the AVP. Note that this is obtained from the OriginStateIdFactory which implements the algorithm for creating an OriginStateId.
Returns:
Avp - Origin-State-Id

createOriginStateIdAvp

public static Avp createOriginStateIdAvp(int originStateId,
                                         byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates an Origin-State-Id AVP

Parameters:
originStateId - int Origin-State-Id value to be used in the AVP. Note that this is obtained from the OriginStateIdFactory which implements the algorithm for creating an OriginStateId.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Origin-State-Id

createProductNameAvp

public static Avp createProductNameAvp(java.lang.String productName)
Creates a Product-Name AVP

Parameters:
productName - String containing the product name of the Diameter Implementation
Returns:
Avp - Product-Name

createProductNameAvp

public static Avp createProductNameAvp(java.lang.String productName,
                                       byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates a Product-Name AVP

Parameters:
productName - String containing the product name of the Diameter Implementation
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Product-Name

createProxyHostAvp

public static Avp createProxyHostAvp(java.lang.String proxyHost)
Creates Proxy-Host AVP

Parameters:
proxyHost - int containing the value of the Proxy-Host.
Returns:
Avp - Proxy-Host

createProxyHostAvp

public static Avp createProxyHostAvp(java.lang.String proxyHost,
                                     byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates Proxy-Host AVP

Parameters:
proxyHost - int containing the value of the Proxy-Host.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Proxy-Host

createProxyInfoAvp

public static Avp createProxyInfoAvp(java.util.Vector avps)
Creates Proxy-Info AVP

Parameters:
avps - Vector of AVPs containing the value of the Proxy-Info.
Returns:
Avp - Proxy-Info

createProxyInfoAvp

public static Avp createProxyInfoAvp(java.util.Vector avps,
                                     byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates Proxy-Info AVP

Parameters:
avps - Vector of AVPs containing the value of the Proxy-Info.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Proxy-Info

createProxyStateAvp

public static Avp createProxyStateAvp(byte[] proxyState)
Creates Proxy-State AVP

Parameters:
proxyState - byte array containing the value of the Proxy-State.
Returns:
Avp - Proxy-State

createProxyStateAvp

public static Avp createProxyStateAvp(byte[] proxyState,
                                      byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates Proxy-State AVP

Parameters:
proxyState - byte array containing the value of the Proxy-State.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Proxy-State

createReAuthRequestTypeAvp

public static Avp createReAuthRequestTypeAvp(int reAuthRequestType)
Creates Re-Auth-Request-Type AVP

Parameters:
reAuthRequestType - int containing the value of the Re-Auth-Request-Type.
Returns:
Avp - Re-Auth-Request-Type

createReAuthRequestTypeAvp

public static Avp createReAuthRequestTypeAvp(int reAuthRequestType,
                                             byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates Re-Auth-Request-Type AVP

Parameters:
reAuthRequestType - int containing the value of the Re-Auth-Request-Type.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Re-Auth-Request-Type

createRedirectHostAvp

public static Avp createRedirectHostAvp(java.lang.String redirectHost)
Creates Redirect-Host AVP

Parameters:
redirectHost - String containing the value of the Redirect-Host.
Returns:
Avp - Redirect-Host

createRedirectHostAvp

public static Avp createRedirectHostAvp(java.lang.String redirectHost,
                                        byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates Redirect-Host AVP

Parameters:
redirectHost - String containing the value of the Redirect-Host.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Redirect-Host

createRedirectHostUsageAvp

public static Avp createRedirectHostUsageAvp(int redirectHostUsage)
Creates Redirect-Host-Usage AVP

Parameters:
redirectHostUsage - int containing the value of the Redirect-Host-Usage.
Returns:
Avp - Redirect-Host-Usage

createRedirectHostUsageAvp

public static Avp createRedirectHostUsageAvp(int redirectHostUsage,
                                             byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates Redirect-Host-Usage AVP

Parameters:
redirectHostUsage - int containing the value of the Redirect-Host-Usage.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Redirect-Host-Usage

createRedirectMaxCacheTimeAvp

public static Avp createRedirectMaxCacheTimeAvp(int redirectMaxCacheTime)
Creates Redirect-Max-Cache-Time AVP

Parameters:
redirectMaxCacheTime - int containing the value of the Redirect-Max-Cache-Time.
Returns:
Avp - Redirect-Max-Cache-Time

createRedirectMaxCacheTimeAvp

public static Avp createRedirectMaxCacheTimeAvp(int redirectMaxCacheTime,
                                                byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates Redirect-Max-Cache-Time AVP

Parameters:
redirectMaxCacheTime - int containing the value of the Redirect-Max-Cache-Time.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Redirect-Max-Cache-Time

createResultCodeAvp

public static Avp createResultCodeAvp(int resultCode)
Creates a Result-Code AVP

Parameters:
resultCode - int containing the result code to be used in the AVP
Returns:
Avp - Result-Code

createResultCodeAvp

public static Avp createResultCodeAvp(int resultCode,
                                      byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates a Result-Code AVP

Parameters:
resultCode - int containing the result code to be used in the AVP
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Result-Code

createRouteRecordAvp

public static Avp createRouteRecordAvp(java.lang.String routeRecord)
Creates Route-Record AVP

Parameters:
routeRecord - String containing the value of the Route-Record.
Returns:
Avp - Route-Record

createRouteRecordAvp

public static Avp createRouteRecordAvp(java.lang.String routeRecord,
                                       byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates Route-Record AVP

Parameters:
routeRecord - String containing the value of the Route-Record.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Route-Record

createSessionIdAvp

public static Avp createSessionIdAvp(java.lang.String sessionId)
Creates Session-Id AVP

Parameters:
sessionId - String containing the value of the Session-Id.
Returns:
Avp - Session-Id

createSessionIdAvp

public static Avp createSessionIdAvp(java.lang.String sessionId,
                                     byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates Session-Id AVP

Parameters:
sessionId - String containing the value of the Session-Id.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Session-Id

createSupportedVendorIdAvp

public static Avp createSupportedVendorIdAvp(int supportedVendorId)
Creates Supported Vendor AVP

Parameters:
supportedVendorId - int containing the Vendor ID value for insertion into the AVP.
Returns:
Avp - Supported-Vendor-Id

createSupportedVendorIdAvp

public static Avp createSupportedVendorIdAvp(int supportedVendorId,
                                             byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates Supported Vendor AVP

Parameters:
supportedVendorId - int containing the Vendor ID value for insertion into the AVP.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Supported-Vendor-Id

createTerminationCauseAvp

public static Avp createTerminationCauseAvp(int terminationCause)
Creates Termination-Cause AVP

Parameters:
terminationCause - int containing the value of the Termination-Cause.
Returns:
Avp - Termination-Cause

createTerminationCauseAvp

public static Avp createTerminationCauseAvp(int terminationCause,
                                            byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates Termination-Cause AVP

Parameters:
terminationCause - int containing the value of the Termination-Cause.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Termination-Cause

createUserNameAvp

public static Avp createUserNameAvp(java.lang.String userName)
Creates User-Name AVP

Parameters:
userName - String containing the value of the User-Name.
Returns:
Avp - User-Name

createUserNameAvp

public static Avp createUserNameAvp(java.lang.String userName,
                                    byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates User-Name AVP

Parameters:
userName - String containing the value of the User-Name.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - User-Name

createVendorIdAvp

public static Avp createVendorIdAvp(int vendorId)
Creates a Vendor-Id AVP

Parameters:
vendorId - int containing the IANA vendor ID code to be used in the AVP.
Returns:
Avp - Vendor-Id

createVendorIdAvp

public static Avp createVendorIdAvp(int vendorId,
                                    byte avpFlags)
Deprecated. as of release 6.2 to remove avpFlags parameter.

Creates a Vendor-Id AVP

Parameters:
vendorId - int containing the IANA vendor ID code to be used in the AVP.
avpFlags - byte containing the V-bit, the M-bit, and the P-bit. Should use the Avp constants (e.g. Avp.VOFF_MON_POFF)
Returns:
Avp - Vendor-Id


Copyright © 2006 IBM Corp. All Rights Reserved.