00001 /* 00002 * Copyright 2004-2005 The Apache Software Foundation. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 /* 00018 * XSEC 00019 * 00020 * XKMSRequestAbstractType := Interface for base schema of XKMS Request messages 00021 * 00022 * $Id: XKMSRequestAbstractType.hpp 351364 2005-06-04 11:30:26Z blautenb $ 00023 * 00024 */ 00025 00026 #ifndef XKMSREQUESTABSTRACTTYPE_INCLUDE 00027 #define XKMSREQUESTABSTRACTTYPE_INCLUDE 00028 00029 // XSEC Includes 00030 00031 #include <xsec/framework/XSECDefs.hpp> 00032 #include <xsec/xkms/XKMSMessageAbstractType.hpp> 00033 00034 class XKMSRespondWith; 00035 class XKMSResponseMechanism; 00036 00072 class XKMSRequestAbstractType : public XKMSMessageAbstractType { 00073 00076 00077 protected: 00078 00079 XKMSRequestAbstractType() {}; 00080 00081 public: 00082 00083 virtual ~XKMSRequestAbstractType() {}; 00084 00087 00088 virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * getElement(void) const = 0; 00089 00100 virtual const XMLCh * getOriginalRequestId(void) const = 0; 00101 00111 virtual unsigned int getResponseLimit(void) const = 0; 00112 00114 00117 00127 virtual void setOriginalRequestId(const XMLCh * id) = 0; 00128 00138 virtual void setResponseLimit(unsigned int limit) = 0; 00139 00141 00144 00153 virtual int getRespondWithSize(void) = 0; 00154 00163 virtual XKMSRespondWith * getRespondWithItem(int item) = 0; 00164 00173 virtual const XMLCh * getRespondWithItemStr(int item) = 0; 00174 00182 virtual void appendRespondWithItem(XKMSRespondWith * item) = 0; 00183 00191 virtual void appendRespondWithItem(const XMLCh * item) = 0; 00192 00194 00197 00206 virtual int getResponseMechanismSize(void) = 0; 00207 00216 virtual XKMSResponseMechanism * getResponseMechanismItem(int item) = 0; 00217 00226 virtual const XMLCh * getResponseMechanismItemStr(int item) = 0; 00227 00235 virtual void appendResponseMechanismItem(XKMSResponseMechanism * item) = 0; 00236 00244 virtual void appendResponseMechanismItem(const XMLCh * item) = 0; 00245 00254 virtual void removeResponseMechanismItem(int item) = 0; 00255 00257 00258 private: 00259 00260 // Unimplemented 00261 XKMSRequestAbstractType(const XKMSRequestAbstractType &); 00262 XKMSRequestAbstractType & operator = (const XKMSRequestAbstractType &); 00263 00264 }; 00265 00266 #endif /* XKMSREQUESTABSTRACTTYPE_INCLUDE */