IT_Bus::TunnelWSDLPolicy Class Reference

#include <it_bus_config/tunnel_wsdl_policy.h>

Inheritance diagram for IT_Bus::TunnelWSDLPolicy:

IT_Bus::TunnelWSDLExtensionElement IT_WSDL::WSDLExtensionElement IT_Bus::XMLNode IT_WSDL::WSDLNode IT_Bus::AnyType IT_Bus::PrefixResolver IT_Bus::XMLSaxHandler IT_Bus::ImplementationDetails List of all members.

Detailed Description

Class representing the <iiop:policy> child element within the WSDL file service <port> element.

Definition at line 15 of file tunnel_wsdl_policy.h.

Public Member Functions

const Stringget_poaname () const
 Get the value of the poaname attribute.
const Stringget_serviceid () const
 Get the value of the serviceid attribute.
bool is_persistent () const
 Return an indicator of the value assigned to the persistent attribute.
virtual void write (const IT_Bus::QName &, IT_Bus::ComplexTypeWriter &) const throw ((IT_Bus::SerializationException))
 Write the content of the instance.
virtual void write (IT_Bus::XMLOutputStream &stream) const throw ((IT_Bus::IOException))
 Write the contents of the node.
virtual void write_attributes (IT_Bus::XMLOutputStream &stream) const throw ((IOException))
 Writes the attributes for the node to the stream specified.
virtual IT_Bus::AnyTypeoperator= (const IT_Bus::AnyType &)
 Assignment operator to an AnyType.

Static Public Attributes

static const String ELEMENT_NAME
static const String POA_NAME_ATTRIBUTE_NAME
static const String SERVICE_ID_ATTRIBUTE_NAME
static const String PERSISTENT_ATTRIBUTE_NAME

Private Attributes

String m_poaname
String m_serviceid
bool m_is_persistent
bool m_is_user_id


Member Function Documentation

const String& IT_Bus::TunnelWSDLPolicy::get_poaname (  )  const

Get the value of the poaname attribute.

Each port within a WSDL file that uses the IIOP tunnel transport must have a unique poaname.

Returns:
String containing the value of the poaname attribute.

const String& IT_Bus::TunnelWSDLPolicy::get_serviceid (  )  const

Get the value of the serviceid attribute.

Returns:
String containing the value of the serviceid attribute.

bool IT_Bus::TunnelWSDLPolicy::is_persistent (  )  const

Return an indicator of the value assigned to the persistent attribute.

Returns:
bool

virtual void IT_Bus::TunnelWSDLPolicy::write ( const IT_Bus::QName ,
IT_Bus::ComplexTypeWriter  
) const throw ((IT_Bus::SerializationException)) [inline, virtual]

Write the content of the instance.

Derived subclasses implement this method.

Reimplemented from IT_WSDL::WSDLExtensionElement.

Definition at line 65 of file tunnel_wsdl_policy.h.

virtual void IT_Bus::TunnelWSDLPolicy::write ( IT_Bus::XMLOutputStream stream  )  const throw ((IT_Bus::IOException)) [virtual]

Write the contents of the node.

This method is typically invoked on an instance of the IT_WSDL::WSDLDefinitions class to write a copy of the in-memory representation of the WSDL model to a file that will be accessible to other applications. For example,

 // The WSDL model may be obtained from the Service
 IT_WSDL::WSDLDefinitions &definitions = service.get_definitions();

 // Now initialize an XMLOutputStream and invoke the write()
 // method on the WSDLDefinitions object.
 IT_Bus::FileOutputStream stream("<path to, and name of, the output file>");
 IT_Bus::XMLOutputStream xml_stream(stream, true);
 definitions.write(xml_stream);
 stream.close();
 

Parameters:
IT_Bus::XMLOutputStream to which to write the node contents.

Reimplemented from IT_WSDL::WSDLExtensionElement.


Generated on Tue Mar 20 15:28:11 2007 for Artix by  doxygen 1.5.1-p1