org.cipango.diameter.api
Interface DiameterFactory


public interface DiameterFactory

Factory interface for Diameter abstractions. An instance this class is available to applications through the org.cipango.diameter.DiameterFactory attribute of ServletContext


Method Summary
 DiameterServletRequest createRequest(javax.servlet.sip.SipApplicationSession appSession, ApplicationId id, DiameterCommand command, java.lang.String destinationRealm)
          Returns a new diameter request object with the specified command, application identifier, and destination realm.
 DiameterServletRequest createRequest(javax.servlet.sip.SipApplicationSession appSession, ApplicationId id, DiameterCommand command, java.lang.String destinationRealm, java.lang.String destinationHost)
          Returns a new diameter request object with the specified command, application identifier, destination realm and destination host.
 

Method Detail

createRequest

DiameterServletRequest createRequest(javax.servlet.sip.SipApplicationSession appSession,
                                     ApplicationId id,
                                     DiameterCommand command,
                                     java.lang.String destinationRealm)
Returns a new diameter request object with the specified command, application identifier, and destination realm. The returned request object exists in a new DiameterSession which belongs to the specified SipApplicationSession. The container is responsible for assigning the request appropriate origin host, origin realm, session id AVPs.

Parameters:
appSession - the application session to which the new DiameterSession and DiameterRequest belongs
id - diameter application identifier
command - diameter command
destinationRealm - value of destination realm AVP
Returns:
a new diameter request object with the specified command, application identifier, and destination realm.
See Also:
Common.DESTINATION_REALM

createRequest

DiameterServletRequest createRequest(javax.servlet.sip.SipApplicationSession appSession,
                                     ApplicationId id,
                                     DiameterCommand command,
                                     java.lang.String destinationRealm,
                                     java.lang.String destinationHost)
Returns a new diameter request object with the specified command, application identifier, destination realm and destination host. The returned request object exists in a new DiameterSession which belongs to the specified SipApplicationSession. The container is responsible for assigning the request appropriate origin host, origin realm, session id AVPs.

Parameters:
appSession - the application session to which the new DiameterSession and DiameterRequest belongs
id - diameter application identifier
command - diameter command
destinationRealm - value of destination realm AVP
destinationHost - value of destination host AVP
Returns:
a new diameter request object with the specified command, application identifier, and destination realm.
See Also:
Common.DESTINATION_REALM, Common.DESTINATION_HOST


Copyright © 2010. All Rights Reserved.