blob: fe2720555cc7f714e84385ed61eba7916469f57b [file] [log] [blame]
/*
* Copyright 2003-2004 The Apache Software Foundation.
// (c) Copyright IBM Corp. 2004, 2005 All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#if !defined(__WRAPPERCLASSHANDLER_OF_AXIS_INCLUDED__)
#define __WRAPPERCLASSHANDLER_OF_AXIS_INCLUDED__
/**
* @file WrapperClassHandler.hpp
*/
#include <axis/BasicHandler.hpp>
/**
* @class WrapperClassHandler
* @brief Base type for Web Services
* @author Susantha Kumara (skumara@virtusa.com)
*
*/
AXIS_CPP_NAMESPACE_START
class WrapperClassHandler : public HandlerBase
{
public:
WrapperClassHandler(){};
virtual ~WrapperClassHandler(){};
/**
* Returns the binding style for this web service
*
* @return binding style
*/
virtual AXIS_BINDING_STYLE AXISCALL getBindingStyle()=0;
/**
* Returns the type of handler. It will always be WEBSERVICE_HANDLER.
*
* @return WEBSERVICE_HANDLER
*/
int AXISCALL getType(){return WEBSERVICE_HANDLER;};
/**
* Performs initialization tasks.
* By default no initialization tasks take place.
*
* Web Service implementors may choose to over-ride this method, if required.
* @return AXIS_SUCCESS
*/
virtual int AXISCALL init() { return AXIS_SUCCESS; }; // We do not need init and fini for the service wrapper
/**
* Performs finalization tasks.
* By defailt no finalization tasks take place.
*
* Web Service implementors may choose to over-ride this method, if required.
* @return AXIS_SUCCESS
*/
virtual int AXISCALL fini() { return AXIS_SUCCESS; };
};
AXIS_CPP_NAMESPACE_END
#endif