All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.java.slee.resource.diameter.sh.events.PushNotificationRequest Maven / Gradle / Ivy

There is a newer version: 7.1.26
Show newest version
/*
 * JBoss, Home of Professional Open Source
 * Copyright 2011, Red Hat, Inc. and individual contributors
 * by the @authors tag. See the copyright.txt in the distribution for a
 * full listing of individual contributors.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software 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 software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */

package net.java.slee.resource.diameter.sh.events;

import java.io.IOException;

import net.java.slee.resource.diameter.sh.events.avp.UserIdentityAvp;
import net.java.slee.resource.diameter.sh.events.avp.userdata.ShData;

/**
 * Defines an interface representing the Push-Notification-Request command.
 * 
 * From the Diameter Sh Reference Point Protocol Details (3GPP TS 29.329 V9.2.0)
 * specification:
 * 
 * 
 * 6.1.7        Push-Notification-Request (PNR) Command
 * 
 * The Push-Notification-Request (PNR) command, indicated by the Command-Code
 * field set to 309 and the 'R' bit set in the Command Flags field, is sent by a
 * Diameter server to a Diameter client in order to notify changes in the user
 * data in the server. 
 * 
 * Message Format
 * < Push-Notification-Request > ::=           < Diameter Header:  309, REQ, PXY, 16777217 >
 *                                             < Session-Id >
 *                                             { Vendor-Specific-Application-Id }
 *                                             { Auth-Session-State }
 *                                             { Origin-Host }
 *                                             { Origin-Realm }
 *                                             { Destination-Host }
 *                                             { Destination-Realm }
 *                                             *[ Supported-Features ]
 *                                             { User-Identity }
 *                                             [ Wildcarded-PSI ]
 *                                             [ Wildcarded-IMPU ]
 *                                             { User-Data }
 *                                             *[ AVP ]
 *                                             *[ Proxy-Info ]
 *                                             *[ Route-Record ]
 * 
* * @author Alexandre Mendonca * @author Bartosz Baranowski */ public interface PushNotificationRequest extends DiameterShMessage { static final int commandCode = 309; /** * Returns true if the User-Identity AVP is present in the message. */ boolean hasUserIdentity(); /** * Returns the value of the User-Identity AVP, of type Grouped. * * @return the value of the User-Identity AVP or null if it has not been set * on this message */ UserIdentityAvp getUserIdentity(); /** * Sets the value of the User-Identity AVP, of type Grouped. * * @throws IllegalStateException * if setUserIdentity has already been called */ void setUserIdentity(UserIdentityAvp userIdentity); /** * Returns true if the User-Data AVP is present in the message. */ boolean hasUserData(); /** * Returns the value of the User-Data AVP, of type UserData. * * @return the value of the User-Data AVP or null if it has not been set on * this message */ byte[] getUserData(); /** * Returns the value of the User-Data AVP, of type UserData. * * @return the value of the User-Data AVP or null if it has not been set on * this message */ ShData getUserDataObject() throws IOException; /** * Sets the value of the User-Data AVP, of type UserData. * * @throws IllegalStateException * if setUserData has already been called */ void setUserData(byte[] userData); /** * Sets the value of the User-Data AVP, of type UserData. * * @throws IllegalStateException * if setUserData has already been called */ void setUserDataObject(ShData userData) throws IOException; /** * Returns true if the Wildcarded-PSI AVP is present in the message. */ boolean hasWildcardedPSI(); /** * Returns the value of the Wildcarded-PSI AVP, of type UTF8String. Use * {@link #hasWildcardedPSI()} to check the existence of this AVP. * * @return the value of the Wildcarded-PSI AVP * @throws IllegalStateException * if the Wildcarded-PSI AVP has not been set on this message */ String getWildcardedPSI(); /** * Sets the value of the Wildcarded-PSI AVP, of type UTF8String. * * @throws IllegalStateException * if setWildcardedPSI has already been called */ void setWildcardedPSI(String wildcardedPSI); /** * Returns true if the Wildcarded-IMPU AVP is present in the message. */ boolean hasWildcardedIMPU(); /** * Returns the value of the Wildcarded-IMPU AVP, of type UTF8String. Use * {@link #hasWildcardedIMPU()} to check the existence of this AVP. * * @return the value of the Wildcarded-IMPU AVP * @throws IllegalStateException * if the Wildcarded-IMPU AVP has not been set on this message */ String getWildcardedIMPU(); /** * Sets the value of the Wildcarded-IMPU AVP, of type UTF8String. * * @throws IllegalStateException * if setWildcardedIMPU has already been called */ void setWildcardedIMPU(String WildcardedIMPU); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy