00001 /* 00002 * $Id: DiameterDWA.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 DiameterDWA extends DiameterMessage { 00040 00041 public AVP result_code; 00042 public AVP origin_host; 00043 public AVP origin_realm; 00044 00045 public DiameterDWA(int result_code) 00046 { 00047 super(DiameterMessage.Code_DW,false,0); 00048 AVP avp; 00049 00050 this.flagProxiable=false; 00051 00052 /* Result Code */ 00053 avp = new AVP(AVP.Result_Code,true,0); 00054 avp.setData(result_code); 00055 this.addAVP(avp); 00056 this.result_code = avp; 00057 00058 /* Origin-Host */ 00059 avp = new AVP(AVP.Origin_Host,true,0); 00060 this.addAVP(avp); 00061 this.origin_host = avp; 00062 00063 /* Origin-Realm */ 00064 avp = new AVP(AVP.Origin_Realm,true,0); 00065 this.addAVP(avp); 00066 this.origin_realm = avp; 00067 00068 } 00069 00070 }
1.5.2