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 * XKMSCompoundRequest := Interface for CompoundRequest Messages 00021 * 00022 * $Id: XKMSCompoundRequest.hpp,v 1.5 2005/06/04 11:30:26 blautenb Exp $ 00023 * 00024 */ 00025 00026 #ifndef XKMSCOMPOUNDREQUEST_INCLUDE 00027 #define XKMSCOMPOUNDREQUEST_INCLUDE 00028 00029 // XSEC Includes 00030 00031 #include <xsec/framework/XSECDefs.hpp> 00032 #include <xsec/xkms/XKMSRequestAbstractType.hpp> 00033 00034 class XKMSLocateRequest; 00035 class XKMSValidateRequest; 00036 class XKMSRegisterRequest; 00037 00072 class XKMSCompoundRequest : public XKMSRequestAbstractType { 00073 00076 00077 protected: 00078 00079 XKMSCompoundRequest() {}; 00080 00081 public: 00082 00083 virtual ~XKMSCompoundRequest() {}; 00084 00087 00092 virtual XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * getElement(void) const = 0; 00093 00104 virtual int getRequestListSize(void) = 0; 00105 00115 virtual XKMSRequestAbstractType * getRequestListItem(int item) = 0; 00116 00118 00121 00133 virtual XKMSLocateRequest * createLocateRequest( 00134 const XMLCh * service, 00135 const XMLCh * id = NULL) = 0; 00136 00148 virtual XKMSValidateRequest * createValidateRequest( 00149 const XMLCh * service, 00150 const XMLCh * id = NULL) = 0; 00151 00163 virtual XKMSRegisterRequest * createRegisterRequest( 00164 const XMLCh * service, 00165 const XMLCh * id = NULL) = 0; 00166 00168 00169 private: 00170 00171 // Unimplemented 00172 XKMSCompoundRequest(const XKMSCompoundRequest &); 00173 XKMSCompoundRequest & operator = (const XKMSCompoundRequest &); 00174 00175 }; 00176 00177 #endif /* XKMSCOMPOUNDREQUEST_INCLUDE */