blob: bf72f1f410150f5ad4cfad4db399734ac4e7ed9f [file] [log] [blame]
/*
* Copyright 2003-2004 The Apache Software Foundation.
*
* 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.
*/
// !!! This include file must be first thing in file !!!
#include "../platforms/PlatformAutoSense.hpp"
#include "WSDDKeywords.h"
#include "../common/AxisUtils.h"
#include "../common/AxisTrace.h"
#define __TRC(X) AxisUtils::ToAxisXMLCh(X)
#define AX_DELETE(X) delete const_cast<AxisXMLCh*>(X)
const AxisXMLCh* kw_depl;
const AxisXMLCh* kw_undepl;
const AxisXMLCh* kw_srv;
const AxisXMLCh* kw_glconf;
const AxisXMLCh* kw_param;
const AxisXMLCh* kw_hdl;
const AxisXMLCh* kw_chain;
const AxisXMLCh* kw_ns;
const AxisXMLCh* kw_prv;
const AxisXMLCh* kw_cn; /* must be changed to libname or so */
const AxisXMLCh* kw_am;
const AxisXMLCh* kw_ar;
const AxisXMLCh* kw_rqf;
const AxisXMLCh* kw_rsf;
const AxisXMLCh* kw_tr;
const AxisXMLCh* kw_name;
const AxisXMLCh* kw_value;
const AxisXMLCh* kw_type; /* what about this ? change to libname ? */
const AxisXMLCh* kw_scope;
const AxisXMLCh* kw_http;
const AxisXMLCh* kw_smtp;
const AxisXMLCh* kw_desc;
AXIS_CPP_NAMESPACE_START
volatile bool WSDDKeywords::m_bInit = false;
WSDDKeywords::WSDDKeywords()
{
initialize();
}
WSDDKeywords::~WSDDKeywords()
{
unInitialize();
}
void WSDDKeywords::initialize()
{
if (!m_bInit)
{
kw_depl = __TRC("deployment");
kw_undepl = __TRC("undeployment");
kw_srv = __TRC("service");
kw_glconf = __TRC("globalConfiguration");
kw_param = __TRC("parameter");
kw_hdl = __TRC("handler");
kw_chain = __TRC("chain");
kw_ns = __TRC("namespace");
kw_prv = __TRC("provider");
kw_cn = __TRC("className"); /* must be changed to libname or so */
kw_am = __TRC("allowedMethods");
kw_ar = __TRC("allowedRoles");
kw_rqf = __TRC("requestFlow");
kw_rsf = __TRC("responseFlow");
kw_tr = __TRC("transport");
kw_name = __TRC("name");
kw_value = __TRC("value");
kw_type = __TRC("type");
/* what about this ? change to libname ? */
kw_scope = __TRC("scope");
kw_http = __TRC("http");
kw_smtp = __TRC("smtp");
kw_desc = __TRC("description");
m_bInit = true;
}
}
void WSDDKeywords::unInitialize()
{
if (m_bInit)
{
AX_DELETE(kw_smtp);
m_bInit = false;
}
}
AXIS_CPP_NAMESPACE_END