1 /* 2 (C) Copyright IBM Corp. 2007, 2009 3 4 THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE 5 ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE 6 CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. 7 8 You can obtain a current copy of the Eclipse Public License from 9 http://www.opensource.org/licenses/eclipse-1.0.php 10 11 @author : Endre Bak, IBM, ebak@de.ibm.com 12 * 13 * Change History 14 * Flag Date Prog Description 15 *------------------------------------------------------------------------------- 16 * 1804402 2007-09-28 ebak IPv6 ready SLP 17 * 1949918 2008-04-08 raman_arora Malformed service URL crashes SLP discovery 18 * 2003590 2008-06-30 blaschke-oss Change licensing from CPL to EPL 19 * 2524131 2009-01-21 raman_arora Upgrade client to JDK 1.5 (Phase 1) 20 * 2531371 2009-02-10 raman_arora Upgrade client to JDK 1.5 (Phase 2) 21 */ 22 23 package org.metricshub.wbem.sblim.slp.internal.msg; 24 25 /*- 26 * ╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲ 27 * WBEM Java Client 28 * ჻჻჻჻჻჻ 29 * Copyright 2023 - 2025 MetricsHub 30 * ჻჻჻჻჻჻ 31 * Licensed under the Apache License, Version 2.0 (the "License"); 32 * you may not use this file except in compliance with the License. 33 * You may obtain a copy of the License at 34 * 35 * http://www.apache.org/licenses/LICENSE-2.0 36 * 37 * Unless required by applicable law or agreed to in writing, software 38 * distributed under the License is distributed on an "AS IS" BASIS, 39 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 40 * See the License for the specific language governing permissions and 41 * limitations under the License. 42 * ╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱ 43 */ 44 45 import java.util.Iterator; 46 47 /** 48 * ReplyMessage 49 * 50 */ 51 public abstract class ReplyMessage extends SLPMessage { 52 private int iErrorCode; 53 54 /** 55 * Ctor. 56 * 57 * @param pFunctionID 58 * @param pErrorCode 59 */ 60 public ReplyMessage(int pFunctionID, int pErrorCode) { 61 super(pFunctionID); 62 this.iErrorCode = pErrorCode; 63 } 64 65 /** 66 * Ctor. 67 * 68 * @param pFunctionID 69 * @param pLangTag 70 * @param pErrorCode 71 */ 72 public ReplyMessage(int pFunctionID, String pLangTag, int pErrorCode) { 73 super(pFunctionID, pLangTag); 74 this.iErrorCode = pErrorCode; 75 } 76 77 /** 78 * Ctor. 79 * 80 * @param pHeader 81 * @param pErrorCode 82 */ 83 public ReplyMessage(MsgHeader pHeader, int pErrorCode) { 84 super(pHeader); 85 this.iErrorCode = pErrorCode; 86 } 87 88 /** 89 * getErrorCode 90 * 91 * @return int 92 */ 93 public int getErrorCode() { 94 return this.iErrorCode; 95 } 96 97 /** 98 * getResultIterator 99 * 100 * @return Iterator 101 */ 102 public abstract Iterator<?> getResultIterator(); 103 104 /** 105 * getExceptionIterator 106 * 107 * @return Iterator 108 */ 109 public abstract Iterator<?> getExceptionIterator(); 110 }