00001 /* 00002 * $Id: DiameterDPA.java 2 2006-11-14 22:37:20Z vingarzan $ 00003 * 00004 * Copyright (C) 2004-2006 FhG Fokus 00005 * 00006 * This file is part of Open IMS Core - an open source IMS CSCFs & HSS 00007 * implementation 00008 * 00009 * Open IMS Core is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * For a license to use the Open IMS Core software under conditions 00015 * other than those described here, or to purchase support for this 00016 * software, please contact Fraunhofer FOKUS by e-mail at the following 00017 * addresses: 00018 * info@open-ims.org 00019 * 00020 * Open IMS Core is distributed in the hope that it will be useful, 00021 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00022 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00023 * GNU General Public License for more details. 00024 * 00025 * You should have received a copy of the GNU General Public License 00026 * along with this program; if not, write to the Free Software 00027 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00028 * 00029 */ 00030 00031 package de.fhg.fokus.diameter.DiameterPeer.data; 00032 00039 public class DiameterDPA extends DiameterMessage { 00040 00041 public AVP result_code; 00042 public AVP origin_host; 00043 public AVP origin_realm; 00044 00045 public DiameterDPA(int result_code) 00046 { 00047 super(DiameterMessage.Code_DP,false,0); 00048 AVP avp; 00049 00050 /* Result Code */ 00051 avp = new AVP(AVP.Result_Code,true,0); 00052 avp.setData(result_code); 00053 this.addAVP(avp); 00054 this.result_code = avp; 00055 00056 /* Origin-Host */ 00057 avp = new AVP(AVP.Origin_Host,true,0); 00058 this.addAVP(avp); 00059 this.origin_host = avp; 00060 00061 /* Origin-Realm */ 00062 avp = new AVP(AVP.Origin_Realm,true,0); 00063 this.addAVP(avp); 00064 this.origin_realm = avp; 00065 00066 } 00067 00068 }
1.5.2