PageRenderTime 36ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/servers/jain-slee/resources/diameter-rf/events/src/main/java/org/mobicents/slee/resource/diameter/rf/events/avp/ImsInformationImpl.java

http://mobicents.googlecode.com/
Java | 497 lines | 213 code | 67 blank | 217 comment | 5 complexity | a720b1294c3357fcf7767e40e9b236be MD5 | raw file
Possible License(s): LGPL-3.0, GPL-3.0, LGPL-2.1, GPL-2.0, CC-BY-SA-3.0, CC0-1.0, Apache-2.0, BSD-3-Clause
  1. /*
  2. * JBoss, Home of Professional Open Source
  3. * Copyright 2011, Red Hat, Inc. and individual contributors
  4. * by the @authors tag. See the copyright.txt in the distribution for a
  5. * full listing of individual contributors.
  6. *
  7. * This is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU Lesser General Public License as
  9. * published by the Free Software Foundation; either version 2.1 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * This software is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Lesser General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Lesser General Public
  18. * License along with this software; if not, write to the Free
  19. * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20. * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21. */
  22. package org.mobicents.slee.resource.diameter.rf.events.avp;
  23. import net.java.slee.resource.diameter.base.events.avp.Address;
  24. import net.java.slee.resource.diameter.rf.events.avp.ApplicationServerInformation;
  25. import net.java.slee.resource.diameter.rf.events.avp.EventType;
  26. import net.java.slee.resource.diameter.rf.events.avp.ImsInformation;
  27. import net.java.slee.resource.diameter.rf.events.avp.InterOperatorIdentifier;
  28. import net.java.slee.resource.diameter.rf.events.avp.MessageBody;
  29. import net.java.slee.resource.diameter.rf.events.avp.NodeFunctionality;
  30. import net.java.slee.resource.diameter.rf.events.avp.RoleOfNode;
  31. import net.java.slee.resource.diameter.rf.events.avp.SdpMediaComponent;
  32. import net.java.slee.resource.diameter.rf.events.avp.ServerCapabilities;
  33. import net.java.slee.resource.diameter.rf.events.avp.TimeStamps;
  34. import net.java.slee.resource.diameter.rf.events.avp.TrunkGroupId;
  35. import org.mobicents.slee.resource.diameter.base.events.avp.GroupedAvpImpl;
  36. /**
  37. * ImsInformationImpl.java
  38. *
  39. * <br>Project: mobicents
  40. * <br>11:34:57 AM Apr 11, 2009
  41. * <br>
  42. * @author <a href="mailto:brainslog@gmail.com"> Alexandre Mendonca </a>
  43. */
  44. public class ImsInformationImpl extends GroupedAvpImpl implements ImsInformation {
  45. public ImsInformationImpl() {
  46. super();
  47. }
  48. /**
  49. *
  50. * @param code
  51. * @param vendorId
  52. * @param mnd
  53. * @param prt
  54. * @param value
  55. */
  56. public ImsInformationImpl( int code, long vendorId, int mnd, int prt, byte[] value ) {
  57. super( code, vendorId, mnd, prt, value );
  58. }
  59. /* (non-Javadoc)
  60. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#getApplicationServerInformations()
  61. */
  62. public ApplicationServerInformation[] getApplicationServerInformations() {
  63. return (ApplicationServerInformation[]) getAvpsAsCustom(DiameterRfAvpCodes.APPLICATION_SERVER_INFORMATION, DiameterRfAvpCodes.TGPP_VENDOR_ID, ApplicationServerInformationImpl.class);
  64. }
  65. /* (non-Javadoc)
  66. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#getBearerService()
  67. */
  68. public byte[] getBearerService() {
  69. return getAvpAsOctetString(DiameterRfAvpCodes.BEARER_SERVICE, DiameterRfAvpCodes.TGPP_VENDOR_ID);
  70. }
  71. /* (non-Javadoc)
  72. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#getCalledPartyAddress()
  73. */
  74. public String getCalledPartyAddress() {
  75. return getAvpAsUTF8String(DiameterRfAvpCodes.CALLED_PARTY_ADDRESS, DiameterRfAvpCodes.TGPP_VENDOR_ID);
  76. }
  77. /* (non-Javadoc)
  78. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#getCallingPartyAddress()
  79. */
  80. public String getCallingPartyAddress() {
  81. return getAvpAsUTF8String(DiameterRfAvpCodes.CALLING_PARTY_ADDRESS, DiameterRfAvpCodes.TGPP_VENDOR_ID);
  82. }
  83. /* (non-Javadoc)
  84. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#getCauseCode()
  85. */
  86. public int getCauseCode() {
  87. return getAvpAsInteger32(DiameterRfAvpCodes.CAUSE_CODE, DiameterRfAvpCodes.TGPP_VENDOR_ID);
  88. }
  89. /* (non-Javadoc)
  90. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#getEventType()
  91. */
  92. public EventType getEventType() {
  93. return (EventType) getAvpAsCustom(DiameterRfAvpCodes.EVENT_TYPE, DiameterRfAvpCodes.TGPP_VENDOR_ID, EventTypeImpl.class);
  94. }
  95. /* (non-Javadoc)
  96. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#getImsChargingIdentifier()
  97. */
  98. public String getImsChargingIdentifier() {
  99. return getAvpAsUTF8String(DiameterRfAvpCodes.IMS_CHARGING_IDENTIFIER, DiameterRfAvpCodes.TGPP_VENDOR_ID);
  100. }
  101. /* (non-Javadoc)
  102. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#getInterOperatorIdentifiers()
  103. */
  104. public InterOperatorIdentifier[] getInterOperatorIdentifiers() {
  105. return (InterOperatorIdentifier[]) getAvpsAsCustom(DiameterRfAvpCodes.INTER_OPERATOR_IDENTIFIER, DiameterRfAvpCodes.TGPP_VENDOR_ID, InterOperatorIdentifierImpl.class);
  106. }
  107. /* (non-Javadoc)
  108. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#getMessageBodys()
  109. */
  110. public MessageBody[] getMessageBodys() {
  111. return (MessageBody[]) getAvpsAsCustom(DiameterRfAvpCodes.MESSAGE_BODY, DiameterRfAvpCodes.TGPP_VENDOR_ID, MessageBodyImpl.class);
  112. }
  113. /* (non-Javadoc)
  114. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#getNodeFunctionality()
  115. */
  116. public NodeFunctionality getNodeFunctionality() {
  117. return (NodeFunctionality) getAvpAsEnumerated(DiameterRfAvpCodes.NODE_FUNCTIONALITY, DiameterRfAvpCodes.TGPP_VENDOR_ID, NodeFunctionality.class);
  118. }
  119. /* (non-Javadoc)
  120. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#getRoleOfNode()
  121. */
  122. public RoleOfNode getRoleOfNode() {
  123. return (RoleOfNode) getAvpAsEnumerated(DiameterRfAvpCodes.ROLE_OF_NODE, DiameterRfAvpCodes.TGPP_VENDOR_ID, RoleOfNode.class);
  124. }
  125. /* (non-Javadoc)
  126. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#getSdpMediaComponents()
  127. */
  128. public SdpMediaComponent[] getSdpMediaComponents() {
  129. return (SdpMediaComponent[]) getAvpsAsCustom(DiameterRfAvpCodes.SDP_MEDIA_COMPONENT, DiameterRfAvpCodes.TGPP_VENDOR_ID, SdpMediaComponentImpl.class);
  130. }
  131. /* (non-Javadoc)
  132. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#getSdpSessionDescriptions()
  133. */
  134. public String[] getSdpSessionDescriptions() {
  135. return getAvpsAsUTF8String(DiameterRfAvpCodes.SDP_SESSION_DESCRIPTION, DiameterRfAvpCodes.TGPP_VENDOR_ID);
  136. }
  137. /* (non-Javadoc)
  138. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#getServedPartyIpAddress()
  139. */
  140. public Address getServedPartyIpAddress() {
  141. return getAvpAsAddress(DiameterRfAvpCodes.SERVED_PARTY_IP_ADDRESS, DiameterRfAvpCodes.TGPP_VENDOR_ID);
  142. }
  143. /* (non-Javadoc)
  144. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#getServerCapabilities()
  145. */
  146. public ServerCapabilities getServerCapabilities() {
  147. return (ServerCapabilities) getAvpAsCustom(DiameterRfAvpCodes.SERVER_CAPABILITIES, DiameterRfAvpCodes.TGPP_VENDOR_ID, ServerCapabilitiesImpl.class);
  148. }
  149. /* (non-Javadoc)
  150. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#getServiceId()
  151. */
  152. public String getServiceId() {
  153. return getAvpAsUTF8String(DiameterRfAvpCodes.SERVICE_ID, DiameterRfAvpCodes.TGPP_VENDOR_ID);
  154. }
  155. /* (non-Javadoc)
  156. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#getServiceSpecificData()
  157. */
  158. public String getServiceSpecificData() {
  159. return getAvpAsUTF8String(DiameterRfAvpCodes.SERVICE_SPECIFIC_DATA, DiameterRfAvpCodes.TGPP_VENDOR_ID);
  160. }
  161. /* (non-Javadoc)
  162. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#getTimeStamps()
  163. */
  164. public TimeStamps getTimeStamps() {
  165. return (TimeStamps) getAvpAsCustom(DiameterRfAvpCodes.TIME_STAMPS, DiameterRfAvpCodes.TGPP_VENDOR_ID, TimeStampsImpl.class);
  166. }
  167. /* (non-Javadoc)
  168. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#getTrunkGroupId()
  169. */
  170. public TrunkGroupId getTrunkGroupId() {
  171. return (TrunkGroupId) getAvpAsCustom(DiameterRfAvpCodes.TRUNK_GROUP_ID, DiameterRfAvpCodes.TGPP_VENDOR_ID, TrunkGroupIdImpl.class);
  172. }
  173. /* (non-Javadoc)
  174. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#getUserSessionId()
  175. */
  176. public String getUserSessionId() {
  177. return getAvpAsUTF8String(DiameterRfAvpCodes.USER_SESSION_ID, DiameterRfAvpCodes.TGPP_VENDOR_ID);
  178. }
  179. /* (non-Javadoc)
  180. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#hasBearerService()
  181. */
  182. public boolean hasBearerService() {
  183. return hasAvp( DiameterRfAvpCodes.BEARER_SERVICE, DiameterRfAvpCodes.TGPP_VENDOR_ID );
  184. }
  185. /* (non-Javadoc)
  186. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#hasCalledPartyAddress()
  187. */
  188. public boolean hasCalledPartyAddress() {
  189. return hasAvp( DiameterRfAvpCodes.CALLED_PARTY_ADDRESS, DiameterRfAvpCodes.TGPP_VENDOR_ID );
  190. }
  191. /* (non-Javadoc)
  192. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#hasCallingPartyAddress()
  193. */
  194. public boolean hasCallingPartyAddress() {
  195. return hasAvp( DiameterRfAvpCodes.CALLING_PARTY_ADDRESS, DiameterRfAvpCodes.TGPP_VENDOR_ID );
  196. }
  197. /* (non-Javadoc)
  198. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#hasCauseCode()
  199. */
  200. public boolean hasCauseCode() {
  201. return hasAvp( DiameterRfAvpCodes.CAUSE_CODE, DiameterRfAvpCodes.TGPP_VENDOR_ID );
  202. }
  203. /* (non-Javadoc)
  204. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#hasEventType()
  205. */
  206. public boolean hasEventType() {
  207. return hasAvp( DiameterRfAvpCodes.EVENT_TYPE, DiameterRfAvpCodes.TGPP_VENDOR_ID );
  208. }
  209. /* (non-Javadoc)
  210. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#hasImsChargingIdentifier()
  211. */
  212. public boolean hasImsChargingIdentifier() {
  213. return hasAvp( DiameterRfAvpCodes.IMS_CHARGING_IDENTIFIER, DiameterRfAvpCodes.TGPP_VENDOR_ID );
  214. }
  215. /* (non-Javadoc)
  216. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#hasNodeFunctionality()
  217. */
  218. public boolean hasNodeFunctionality() {
  219. return hasAvp( DiameterRfAvpCodes.NODE_FUNCTIONALITY, DiameterRfAvpCodes.TGPP_VENDOR_ID );
  220. }
  221. /* (non-Javadoc)
  222. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#hasRoleOfNode()
  223. */
  224. public boolean hasRoleOfNode() {
  225. return hasAvp( DiameterRfAvpCodes.ROLE_OF_NODE, DiameterRfAvpCodes.TGPP_VENDOR_ID );
  226. }
  227. /* (non-Javadoc)
  228. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#hasServedPartyIpAddress()
  229. */
  230. public boolean hasServedPartyIpAddress() {
  231. return hasAvp( DiameterRfAvpCodes.SERVED_PARTY_IP_ADDRESS, DiameterRfAvpCodes.TGPP_VENDOR_ID );
  232. }
  233. /* (non-Javadoc)
  234. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#hasServerCapabilities()
  235. */
  236. public boolean hasServerCapabilities() {
  237. return hasAvp( DiameterRfAvpCodes.SERVER_CAPABILITIES, DiameterRfAvpCodes.TGPP_VENDOR_ID );
  238. }
  239. /* (non-Javadoc)
  240. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#hasServiceId()
  241. */
  242. public boolean hasServiceId() {
  243. return hasAvp( DiameterRfAvpCodes.SERVICE_ID, DiameterRfAvpCodes.TGPP_VENDOR_ID );
  244. }
  245. /* (non-Javadoc)
  246. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#hasServiceSpecificData()
  247. */
  248. public boolean hasServiceSpecificData() {
  249. return hasAvp( DiameterRfAvpCodes.SERVICE_SPECIFIC_DATA, DiameterRfAvpCodes.TGPP_VENDOR_ID );
  250. }
  251. /* (non-Javadoc)
  252. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#hasTimeStamps()
  253. */
  254. public boolean hasTimeStamps() {
  255. return hasAvp( DiameterRfAvpCodes.TIME_STAMPS, DiameterRfAvpCodes.TGPP_VENDOR_ID );
  256. }
  257. /* (non-Javadoc)
  258. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#hasTrunkGroupId()
  259. */
  260. public boolean hasTrunkGroupId() {
  261. return hasAvp( DiameterRfAvpCodes.TRUNK_GROUP_ID, DiameterRfAvpCodes.TGPP_VENDOR_ID );
  262. }
  263. /* (non-Javadoc)
  264. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#hasUserSessionId()
  265. */
  266. public boolean hasUserSessionId() {
  267. return hasAvp( DiameterRfAvpCodes.USER_SESSION_ID, DiameterRfAvpCodes.TGPP_VENDOR_ID );
  268. }
  269. /* (non-Javadoc)
  270. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#setApplicationServerInformation(net.java.slee.resource.diameter.rf.events.avp.ApplicationServerInformation)
  271. */
  272. public void setApplicationServerInformation( ApplicationServerInformation applicationServerInformation ){
  273. addAvp(DiameterRfAvpCodes.APPLICATION_SERVER_INFORMATION, DiameterRfAvpCodes.TGPP_VENDOR_ID, applicationServerInformation.byteArrayValue());
  274. }
  275. /* (non-Javadoc)
  276. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#setApplicationServerInformations(net.java.slee.resource.diameter.rf.events.avp.ApplicationServerInformation[])
  277. */
  278. public void setApplicationServerInformations( ApplicationServerInformation[] applicationServerInformations ){
  279. for(ApplicationServerInformation applicationServerInformation : applicationServerInformations) {
  280. setApplicationServerInformation(applicationServerInformation);
  281. }
  282. }
  283. /* (non-Javadoc)
  284. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#setBearerService(String)
  285. */
  286. public void setBearerService( byte[] bearerService ) {
  287. addAvp(DiameterRfAvpCodes.BEARER_SERVICE, DiameterRfAvpCodes.TGPP_VENDOR_ID, bearerService);
  288. }
  289. /* (non-Javadoc)
  290. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#setCalledPartyAddress(String)
  291. */
  292. public void setCalledPartyAddress( String calledPartyAddress ) {
  293. addAvp(DiameterRfAvpCodes.CALLED_PARTY_ADDRESS, DiameterRfAvpCodes.TGPP_VENDOR_ID, calledPartyAddress);
  294. }
  295. /* (non-Javadoc)
  296. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#setCallingPartyAddress(String)
  297. */
  298. public void setCallingPartyAddress( String callingPartyAddress ) {
  299. addAvp(DiameterRfAvpCodes.CALLING_PARTY_ADDRESS, DiameterRfAvpCodes.TGPP_VENDOR_ID, callingPartyAddress);
  300. }
  301. /* (non-Javadoc)
  302. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#setCauseCode(int)
  303. */
  304. public void setCauseCode( int causeCode ) {
  305. addAvp(DiameterRfAvpCodes.CAUSE_CODE, DiameterRfAvpCodes.TGPP_VENDOR_ID, causeCode);
  306. }
  307. /* (non-Javadoc)
  308. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#setEventType(net.java.slee.resource.diameter.rf.events.avp.EventType)
  309. */
  310. public void setEventType( EventType eventType ) {
  311. addAvp(DiameterRfAvpCodes.EVENT_TYPE, DiameterRfAvpCodes.TGPP_VENDOR_ID, eventType.byteArrayValue());
  312. }
  313. /* (non-Javadoc)
  314. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#setImsChargingIdentifier(String)
  315. */
  316. public void setImsChargingIdentifier( String imsChargingIdentifier ) {
  317. addAvp(DiameterRfAvpCodes.IMS_CHARGING_IDENTIFIER, DiameterRfAvpCodes.TGPP_VENDOR_ID, imsChargingIdentifier);
  318. }
  319. /* (non-Javadoc)
  320. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#setInterOperatorIdentifier(net.java.slee.resource.diameter.rf.events.avp.InterOperatorIdentifier)
  321. */
  322. public void setInterOperatorIdentifier( InterOperatorIdentifier interOperatorIdentifier ) {
  323. addAvp(DiameterRfAvpCodes.INTER_OPERATOR_IDENTIFIER, DiameterRfAvpCodes.TGPP_VENDOR_ID, interOperatorIdentifier.byteArrayValue());
  324. }
  325. /* (non-Javadoc)
  326. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#setInterOperatorIdentifiers(net.java.slee.resource.diameter.rf.events.avp.InterOperatorIdentifier[])
  327. */
  328. public void setInterOperatorIdentifiers( InterOperatorIdentifier[] interOperatorIdentifiers ) {
  329. for(InterOperatorIdentifier interOperatorIdentifier : interOperatorIdentifiers) {
  330. setInterOperatorIdentifier(interOperatorIdentifier);
  331. }
  332. }
  333. /* (non-Javadoc)
  334. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#setMessageBody(net.java.slee.resource.diameter.rf.events.avp.MessageBody)
  335. */
  336. public void setMessageBody( MessageBody messageBody ) {
  337. addAvp(DiameterRfAvpCodes.MESSAGE_BODY, DiameterRfAvpCodes.TGPP_VENDOR_ID, messageBody.byteArrayValue());
  338. }
  339. /* (non-Javadoc)
  340. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#setMessageBodys(net.java.slee.resource.diameter.rf.events.avp.MessageBody[])
  341. */
  342. public void setMessageBodys( MessageBody[] messageBodys ) {
  343. for(MessageBody messageBody : messageBodys) {
  344. setMessageBody(messageBody);
  345. }
  346. }
  347. /* (non-Javadoc)
  348. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#setNodeFunctionality(net.java.slee.resource.diameter.rf.events.avp.NodeFunctionality)
  349. */
  350. public void setNodeFunctionality( NodeFunctionality nodeFunctionality ) {
  351. addAvp(DiameterRfAvpCodes.NODE_FUNCTIONALITY, DiameterRfAvpCodes.TGPP_VENDOR_ID, nodeFunctionality.getValue());
  352. }
  353. /* (non-Javadoc)
  354. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#setRoleOfNode(net.java.slee.resource.diameter.rf.events.avp.RoleOfNode)
  355. */
  356. public void setRoleOfNode( RoleOfNode roleOfNode ) {
  357. addAvp(DiameterRfAvpCodes.ROLE_OF_NODE, DiameterRfAvpCodes.TGPP_VENDOR_ID, roleOfNode.getValue());
  358. }
  359. /* (non-Javadoc)
  360. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#setSdpMediaComponent(net.java.slee.resource.diameter.rf.events.avp.SdpMediaComponent)
  361. */
  362. public void setSdpMediaComponent( SdpMediaComponent sdpMediaComponent ) {
  363. addAvp(DiameterRfAvpCodes.SDP_MEDIA_COMPONENT, DiameterRfAvpCodes.TGPP_VENDOR_ID, sdpMediaComponent.byteArrayValue());
  364. }
  365. /* (non-Javadoc)
  366. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#setSdpMediaComponents(net.java.slee.resource.diameter.rf.events.avp.SdpMediaComponent[])
  367. */
  368. public void setSdpMediaComponents( SdpMediaComponent[] sdpMediaComponents ) {
  369. for(SdpMediaComponent sdpMediaComponent : sdpMediaComponents) {
  370. setSdpMediaComponent(sdpMediaComponent);
  371. }
  372. }
  373. /* (non-Javadoc)
  374. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#setSdpSessionDescription(String)
  375. */
  376. public void setSdpSessionDescription( String sdpSessionDescription )
  377. {
  378. addAvp(DiameterRfAvpCodes.SDP_SESSION_DESCRIPTION, DiameterRfAvpCodes.TGPP_VENDOR_ID, sdpSessionDescription);
  379. }
  380. /* (non-Javadoc)
  381. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#setSdpSessionDescriptions(String[])
  382. */
  383. public void setSdpSessionDescriptions( String[] sdpSessionDescriptions ) {
  384. for(String sdpSessionDescription : sdpSessionDescriptions) {
  385. setSdpSessionDescription(sdpSessionDescription);
  386. }
  387. }
  388. /* (non-Javadoc)
  389. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#setServedPartyIpAddress(net.java.slee.resource.diameter.base.events.avp.Address)
  390. */
  391. public void setServedPartyIpAddress( Address servedPartyIpAddress ) {
  392. addAvp(DiameterRfAvpCodes.SERVED_PARTY_IP_ADDRESS, DiameterRfAvpCodes.TGPP_VENDOR_ID, servedPartyIpAddress.encode());
  393. }
  394. /* (non-Javadoc)
  395. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#setServerCapabilities(net.java.slee.resource.diameter.rf.events.avp.ServerCapabilities)
  396. */
  397. public void setServerCapabilities( ServerCapabilities serverCapabilities ) {
  398. addAvp(DiameterRfAvpCodes.SERVER_CAPABILITIES, DiameterRfAvpCodes.TGPP_VENDOR_ID, serverCapabilities.byteArrayValue());
  399. }
  400. /* (non-Javadoc)
  401. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#setServiceId(String)
  402. */
  403. public void setServiceId( String serviceId ) {
  404. addAvp(DiameterRfAvpCodes.SERVICE_ID, DiameterRfAvpCodes.TGPP_VENDOR_ID, serviceId);
  405. }
  406. /* (non-Javadoc)
  407. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#setServiceSpecificData(String)
  408. */
  409. public void setServiceSpecificData( String serviceSpecificData ) {
  410. addAvp(DiameterRfAvpCodes.SERVICE_SPECIFIC_DATA, DiameterRfAvpCodes.TGPP_VENDOR_ID, serviceSpecificData);
  411. }
  412. /* (non-Javadoc)
  413. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#setTimeStamps(net.java.slee.resource.diameter.rf.events.avp.TimeStamps)
  414. */
  415. public void setTimeStamps( TimeStamps timeStamps ) {
  416. addAvp(DiameterRfAvpCodes.TIME_STAMPS, DiameterRfAvpCodes.TGPP_VENDOR_ID, timeStamps.byteArrayValue());
  417. }
  418. /* (non-Javadoc)
  419. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#setTrunkGroupId(net.java.slee.resource.diameter.rf.events.avp.TrunkGroupId)
  420. */
  421. public void setTrunkGroupId( TrunkGroupId trunkGroupId ) {
  422. addAvp(DiameterRfAvpCodes.TRUNK_GROUP_ID, DiameterRfAvpCodes.TGPP_VENDOR_ID, trunkGroupId.byteArrayValue());
  423. }
  424. /* (non-Javadoc)
  425. * @see net.java.slee.resource.diameter.rf.events.avp.ImsInformation#setUserSessionId(String)
  426. */
  427. public void setUserSessionId( String userSessionId ) {
  428. addAvp(DiameterRfAvpCodes.USER_SESSION_ID, DiameterRfAvpCodes.TGPP_VENDOR_ID, userSessionId);
  429. }
  430. }