Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Examples  

WSDDService.h

00001 /*
00002  *   Copyright 2003-2004 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 #if !defined(_WSDDSERVICE_H__OF_AXIS_INCLUDED_)
00018 #define _WSDDSERVICE_H__OF_AXIS_INCLUDED_
00019 
00020 #include "WSDDHandler.h"
00021 #include "WSDDDefines.h"
00022 
00028 class WSDDService : public WSDDHandler 
00029 {
00030 public:
00031     const list<AxisString> getAllowedMethods() const;
00032     void setProvider(const AxisChar* sProvider);
00033     PROVIDERTYPE getProvider() const;
00034     const AxisChar* getServiceName() const;
00035     bool isAllowedMethod(const AxisChar* sMethodName) const;
00036     void addAllowedMethod(const AxisChar* sMethodName);
00037     const WSDDHandlerList* getResponseFlowHandlers() const;
00038     void addHandler(bool bRequestFlow, WSDDHandler* pHandler);
00039     int removeHandler(bool bRequestFlow, WSDDHandler* pHandler);
00040     const WSDDHandlerList* getRequestFlowHandlers() const;
00041     void addAllowedRole(const AxisChar* sRole);
00042     const list<AxisString>& getAllowedRoles();
00043     WSDDService();
00044     virtual ~WSDDService();
00045     int updateWSDD(FILE* wsddfile, int tabcount);
00046 private:
00047     const char* getProviderString();
00048 private:
00049     PROVIDERTYPE m_Provider;
00050     list<AxisString> m_AllowedMethods;
00051     WSDDHandlerList* m_RequestHandlers;
00052     WSDDHandlerList* m_ResponseHandlers;
00053     list<AxisString> m_AllowedRoles;
00054 };
00055 
00056 typedef map<AxisString, WSDDService*> WSDDServiceMap;
00057 
00058 #endif
00059 

Generated on Fri Jul 9 13:18:30 2004 for AxisC++ by doxygen1.2.18