Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Private Member Functions | Private Attributes
Arc::SOAPMessage Class Reference

Message restricted to SOAP payload. More...

#include <SOAPMessage.h>

Collaboration diagram for Arc::SOAPMessage:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SOAPMessage (void)
 Dummy constructor.
 SOAPMessage (long msg_ptr_addr)
 Copy constructor.
 SOAPMessage (Message &msg)
 Copy constructor.
 ~SOAPMessage (void)
 Destructor does not affect refered objects.
SOAPEnvelope * Payload (void)
 Returns pointer to current payload or NULL if no payload assigned.
void Payload (SOAPEnvelope *new_payload)
 Replace payload with a COPY of new one.
MessageAttributesAttributes (void)
 Returns a pointer to the current attributes object or NULL if no attributes object has been assigned.
void Attributes (MessageAttributes *attributes)
MessageAuthAuth (void)
void Auth (MessageAuth *auth)
MessageContextContext (void)
void Context (MessageContext *context)

Private Member Functions

 SOAPMessage (SOAPMessage &msg)
 No copying is allowed.
SOAPMessageoperator= (SOAPMessage &msg)
 No assignment is allowed.

Private Attributes

SOAPEnvelope * payload_
MessageAuthauth_
 Main content of message.
MessageAttributesattributes_
 Authentication and authorization related information.
MessageContextcontext_
 Various useful attributes.

Detailed Description

Message restricted to SOAP payload.

This is a special Message intended to be used in language bindings for programming languages which are not flexible enough to support all kinds of Payloads. It is passed through chain of MCCs and works like the Message but can carry only SOAP content.

Definition at line 16 of file SOAPMessage.h.


Constructor & Destructor Documentation

No copying is allowed.

Arc::SOAPMessage::SOAPMessage ( void  ) [inline]

Dummy constructor.

Definition at line 31 of file SOAPMessage.h.

:payload_(NULL),auth_(NULL),attributes_(NULL) { };
Arc::SOAPMessage::SOAPMessage ( long  msg_ptr_addr)

Copy constructor.

Used by language bindigs

Definition at line 9 of file SOAPMessage.cpp.

                                         :payload_(NULL) 
{
    SOAPMessage *msg = (SOAPMessage *)msg_ptr_addr;
    auth_ = msg->Auth();
    attributes_ = msg->Attributes();
    context_ = msg->Context();
    Payload(msg->Payload());
}

Here is the call graph for this function:

Copy constructor.

Ensures shallow copy.

Definition at line 18 of file SOAPMessage.cpp.

                                    :payload_(NULL)
{ 
    auth_ = msg.Auth();
    attributes_ = msg.Attributes();
    context_ = msg.Context();
    Payload(dynamic_cast<SOAPEnvelope*>(msg.Payload()));
}

Here is the call graph for this function:

Destructor does not affect refered objects.

Definition at line 40 of file SOAPMessage.cpp.

                              {
    if(payload_) delete payload_;
}

Member Function Documentation

Returns a pointer to the current attributes object or NULL if no attributes object has been assigned.

Definition at line 44 of file SOAPMessage.h.

{ return attributes_; };

Here is the caller graph for this function:

void Arc::SOAPMessage::Attributes ( MessageAttributes attributes) [inline]

Definition at line 45 of file SOAPMessage.h.

                                                 {
    attributes_=attributes;
  };
MessageAuth* Arc::SOAPMessage::Auth ( void  ) [inline]

Definition at line 49 of file SOAPMessage.h.

{ return auth_; };

Here is the caller graph for this function:

void Arc::SOAPMessage::Auth ( MessageAuth auth) [inline]

Definition at line 50 of file SOAPMessage.h.

                               {
    auth_ = auth;
  };

Definition at line 53 of file SOAPMessage.h.

{ return context_; };

Here is the caller graph for this function:

void Arc::SOAPMessage::Context ( MessageContext context) [inline]

Definition at line 54 of file SOAPMessage.h.

                                        {
    context_=context;
  };
SOAPMessage& Arc::SOAPMessage::operator= ( SOAPMessage msg) [private]

No assignment is allowed.

SOAPEnvelope * Arc::SOAPMessage::Payload ( void  )

Returns pointer to current payload or NULL if no payload assigned.

Definition at line 27 of file SOAPMessage.cpp.

                                       {
  return payload_;
}

Here is the caller graph for this function:

void Arc::SOAPMessage::Payload ( SOAPEnvelope *  new_payload)

Replace payload with a COPY of new one.

Definition at line 34 of file SOAPMessage.cpp.

                                                   {
    SOAPEnvelope* p = payload_;
    payload_=new_payload?new_payload->New():NULL;
    if(p) delete p;
}

Member Data Documentation

Authentication and authorization related information.

Definition at line 20 of file SOAPMessage.h.

Main content of message.

Definition at line 19 of file SOAPMessage.h.

Various useful attributes.

This element is maintained by MCC/element which handles/knows persistency of connection. It must be created and destroyed by that element.

Definition at line 24 of file SOAPMessage.h.

SOAPEnvelope* Arc::SOAPMessage::payload_ [private]

Definition at line 18 of file SOAPMessage.h.


The documentation for this class was generated from the following files: