#include <it_bus_pdk/context.h>
The context registry manages an instance of the context current.
Definition at line 34 of file context.h.
Public Types | |
enum | ContextType |
Used to indentify the type of context that is being registered. More... | |
Public Member Functions | |
virtual ContextCurrent & | get_current ()=0 |
Obtain a reference to the context current. | |
virtual Boolean | register_context (const QName &context_name, const QName &context_type, ContextType type=TYPE, Boolean is_header=false)=0 |
Register a context with the registry. | |
virtual Boolean | register_context (const QName &context_name, const QName &context_type, const QName &message_name, const String &part_name)=0 |
Register a context with the registry. | |
virtual Boolean | register_context_as_element (const QName &context_name, const QName &element_name, const QName &message_name, const String &part_name)=0 |
Register a context with the registry. | |
virtual Boolean | register_context (const QName &context_name, const QName &context_type, const unsigned long context_id)=0 |
Register a context with the registry. | |
virtual Boolean | register_context_data (const QName &context_name)=0 |
Register a context with the registry. | |
virtual Boolean | is_registered (const QName &context_name)=0 |
Return an indicator of whether a specific context is registered. | |
virtual ContextContainer * | get_configuration_context (const QName &service_name, const String &port_name, bool create_if_not_found=false)=0 |
Obtain a pointer to the configuration context container. |
virtual ContextContainer* IT_Bus::ContextRegistry::get_configuration_context | ( | const QName & | service_name, | |
const String & | port_name, | |||
bool | create_if_not_found = false | |||
) | [pure virtual] |
Obtain a pointer to the configuration context container.
virtual ContextCurrent& IT_Bus::ContextRegistry::get_current | ( | ) | [pure virtual] |
Obtain a reference to the context current.
virtual Boolean IT_Bus::ContextRegistry::is_registered | ( | const QName & | context_name | ) | [pure virtual] |
Return an indicator of whether a specific context is registered.
virtual Boolean IT_Bus::ContextRegistry::register_context | ( | const QName & | context_name, | |
const QName & | context_type, | |||
const unsigned long | context_id | |||
) | [pure virtual] |
Register a context with the registry.
Use this method when registering a context that may be passed as an IOP::ServiceContext. The data may also be shared between an application and the interceptor chain.
virtual Boolean IT_Bus::ContextRegistry::register_context | ( | const QName & | context_name, | |
const QName & | context_type, | |||
const QName & | message_name, | |||
const String & | part_name | |||
) | [pure virtual] |
Register a context with the registry.
Use this method when registering a context that defines custom soap header data. The data may also be shared between an application and the interceptor chain. Use this API when the context is defined as a type in schema.
virtual Boolean IT_Bus::ContextRegistry::register_context | ( | const QName & | context_name, | |
const QName & | context_type, | |||
ContextType | type = TYPE , |
|||
Boolean | is_header = false | |||
) | [pure virtual] |
Register a context with the registry.
Use this method when registering a context that defines data to be shared between an application and the interceptor chain.
virtual Boolean IT_Bus::ContextRegistry::register_context_as_element | ( | const QName & | context_name, | |
const QName & | element_name, | |||
const QName & | message_name, | |||
const String & | part_name | |||
) | [pure virtual] |
Register a context with the registry.
Use this method when registering a context that defines custom soap header data. The data may also be shared between an application and the interceptor chain. Use this API when the context is defined as an element in schema.
virtual Boolean IT_Bus::ContextRegistry::register_context_data | ( | const QName & | context_name | ) | [pure virtual] |
Register a context with the registry.
Use this method when registering a context that represents arbitrary data.
QName | for the context. |