BEA Systems, Inc.

BEA WebLogic SIP Server 3.1 API Reference


com.bea.wcp.diameter.sh
Class AccessKey

java.lang.Object
  extended bycom.bea.wcp.diameter.sh.AccessKey

public final class AccessKey
extends java.lang.Object

Access key used for Sh-Pull, Sh-Update, and Sh-Subs-Notif commands. Can be parsed from string-based document selector of the following format: sh://;[/] where is the user's public or MSISDN identifier, and is the data reference type, and is the optional data reference parameter.

Copyright © 2006 BEA Systems, Inc. All Rights Reserved.

Field Summary
static java.lang.String PREFIX
           
 
Constructor Summary
AccessKey(java.lang.String selector)
          Parses AccessKey from specified document selector.
AccessKey(UserIdentity userId, DataReference dataRef)
           
AccessKey(UserIdentity userId, DataReference dataRef, java.lang.Object param)
           
 
Method Summary
 void addAvps(AvpList avps)
          Adds the appropriate AVPs for this AccessKey to the specified list of AVPs.
 boolean equals(java.lang.Object obj)
           
static AccessKey getAccessKey(Request req, java.lang.Object param)
          Returns the AccessKey for the specified Sh request.
 DataReference getDataReference()
          Returns the DataReference for this AccessKey.
 java.lang.Object getParameter()
          Returns the optional parameter for this AccessKey.
 UserIdentity getUserIdentity()
          Returns the UserIdentity for this AccessKey.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PREFIX

public static final java.lang.String PREFIX
See Also:
Constant Field Values
Constructor Detail

AccessKey

public AccessKey(java.lang.String selector)
Parses AccessKey from specified document selector.

Throws:
java.lang.IllegalArgumentException - if the document selector was invalid

AccessKey

public AccessKey(UserIdentity userId,
                 DataReference dataRef)

AccessKey

public AccessKey(UserIdentity userId,
                 DataReference dataRef,
                 java.lang.Object param)
Method Detail

addAvps

public void addAvps(AvpList avps)
Adds the appropriate AVPs for this AccessKey to the specified list of AVPs.

Parameters:
avps - the AVPs for the message

equals

public boolean equals(java.lang.Object obj)

getAccessKey

public static AccessKey getAccessKey(Request req,
                                     java.lang.Object param)
                              throws AvpException
Returns the AccessKey for the specified Sh request.

Parameters:
req - the Sh request
param - ignore parameter AVP and use specified param instead
Returns:
the AccessKey
Throws:
AvpException - if one or more AVPs in the request were invalid

getDataReference

public DataReference getDataReference()
Returns the DataReference for this AccessKey.


getParameter

public java.lang.Object getParameter()
Returns the optional parameter for this AccessKey.


getUserIdentity

public UserIdentity getUserIdentity()
Returns the UserIdentity for this AccessKey.


hashCode

public int hashCode()

toString

public java.lang.String toString()

Documentation is available at
http://e-docs.bea.com/wlcp/wlss31/
Copyright 2007 BEA Systems Inc.