Options.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2005-2009 WSO2, Inc. http://wso2.com
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 #ifndef OPTIONS_H
00018 #define OPTIONS_H
00019 
00020 #include <WSFDefines.h>
00021 #include <axis2_options.h>
00022 #include <axis2_const.h>
00023 #include <axiom_soap_const.h>
00024 #include <WSFault.h>
00025 #include <OMElement.h>
00026 #include <Property.h>
00027 #include <string>
00028 
00037 namespace wso2wsf
00038 {
00054     class Options 
00055     {
00059     friend class ServiceClient;
00060 
00061     private:
00066         axis2_options_t * _wsf_options;
00067 
00072         axis2_endpoint_ref_t * _reply_to;
00073 
00078         axis2_endpoint_ref_t * _to;
00079 
00084         axis2_endpoint_ref_t * _from;
00085 
00090         axis2_endpoint_ref_t * _fault_to;
00091 
00092     public:
00093 
00098                 void WSF_CALL setXMLParserReset(bool paser_reset);
00099 
00103         WSF_CALL Options();
00104 
00108         WSF_CALL ~Options();
00109 
00114         WSF_EXTERN std::string WSF_CALL getFaultTo();
00115 
00120         WSF_EXTERN std::string WSF_CALL getFrom();
00121 
00126         WSF_EXTERN std::string WSF_CALL getMessageId();
00127 
00132         WSF_EXTERN std::string WSF_CALL getReplyTo();
00133 
00139         WSF_EXTERN void WSF_CALL setEnableREST(bool enable);
00140 
00146         WSF_EXTERN void WSF_CALL setUseSeparateListener(bool use_separate_listener);
00147 
00153         WSF_EXTERN long WSF_CALL getTimeout();
00154 
00159         WSF_EXTERN std::string WSF_CALL getTo();
00160 
00166         WSF_EXTERN void WSF_CALL setFaultTo(std::string fault_to);
00167 
00173         WSF_EXTERN void WSF_CALL setFrom(std::string from);
00174 
00179         WSF_EXTERN void WSF_CALL setTo(std::string to);
00180 
00185         WSF_EXTERN void WSF_CALL setMessageId(std::string message_id);
00186 
00192         WSF_EXTERN bool WSF_CALL setProperty(Property * property);
00193 
00199         WSF_EXTERN void WSF_CALL setReplyTo(std::string reply_to);
00200 
00206         WSF_EXTERN void WSF_CALL setTimeout(long timeout);
00207 
00213         WSF_EXTERN void WSF_CALL addReferenceParameter(OMElement * reference_parameter);
00214 
00219         WSF_EXTERN soap_version WSF_CALL getSoapVersion();
00220 
00225         WSF_EXTERN void WSF_CALL setSoapVersion(soap_version version);
00226 
00231         WSF_EXTERN void WSF_CALL setEnableMTOM(bool enable);
00232 
00237         WSF_EXTERN bool WSF_CALL getEnableMTOM();
00238 
00244                 WSF_EXTERN bool WSF_CALL setAction(std::string action);
00250         WSF_EXTERN void WSF_CALL setHTTPMethod(std::string http_method);
00255                 WSF_EXTERN axis2_options_t* WSF_CALL getAxis2Options();
00256 
00264                 WSF_EXTERN bool WSF_CALL
00265                 setTestHTTPAuth(bool testHTTPAuth);
00266 
00274                 WSF_EXTERN bool WSF_CALL
00275                 setTestProxyAuth(bool testProxyAuth);
00276 
00286                 WSF_EXTERN bool WSF_CALL
00287                 setHTTPAuthInfo(std::string username, std::string password, std::string authType);
00288 
00298                 WSF_EXTERN bool WSF_CALL 
00299                 setProxyAuthInfo(std::string username, std::string password, std::string authType);
00300 
00301     };
00303 }
00304 #endif // OPTIONS_H

Generated on Wed Oct 14 00:43:25 2009 for WSF/CPP by  doxygen 1.5.7.1