DiameterCER.java

Go to the documentation of this file.
00001 /*
00002  * $Id: DiameterCER.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 DiameterCER extends DiameterMessage {
00040 
00041     public AVP origin_host;
00042     public AVP origin_realm;
00043     public AVP host_ip_address;
00044     public AVP vendor_id;
00045     public AVP product_name;
00046     
00047     public DiameterCER()
00048     {
00049         super(DiameterMessage.Code_CE,true,0);
00050         AVP avp;
00051                 
00052         /* Origin-Host */
00053         avp = new AVP(AVP.Origin_Host,true,0);
00054         this.addAVP(avp);
00055         this.origin_host = avp;
00056         
00057         /* Origin-Realm */
00058         avp = new AVP(AVP.Origin_Realm,true,0);
00059         this.addAVP(avp);
00060         this.origin_realm = avp;
00061         
00062         /* Host-IP Address */
00063         avp = new AVP(AVP.Host_IP_Address,true,0);
00064         this.addAVP(avp);
00065         this.host_ip_address = avp;     
00066 
00067         /* Vendor ID */
00068         avp = new AVP(AVP.Vendor_Id,true,0);
00069         this.addAVP(avp);
00070         this.vendor_id = avp;       
00071 
00072         /* Product Name */
00073         avp = new AVP(AVP.Product_Name,false,0);
00074         this.addAVP(avp);
00075         this.product_name = avp;
00076         
00077         /* CER allows no proxie */
00078         super.flagProxiable = false;
00079 
00080     }   
00081     
00082 }

Generated on Thu Oct 23 04:07:36 2008 for Open IMS Core JavaDiameterPeer by  doxygen 1.5.2