OW_NAMESPACE::RequestHandlerIFCXML Class Reference

#include <OW_RequestHandlerIFCXML.hpp>

Inheritance diagram for OW_NAMESPACE::RequestHandlerIFCXML:

Inheritance graph
[legend]
Collaboration diagram for OW_NAMESPACE::RequestHandlerIFCXML:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RequestHandlerIFCXML ()
virtual ~RequestHandlerIFCXML ()
virtual StringArray getSupportedContentTypes () const
virtual String getContentType () const

Protected Member Functions

virtual void doProcess (std::istream *istr, std::ostream *ostrEntity, std::ostream *ostrError, OperationContext &context)
 Process the input stream and generate appropriate output.
virtual int executeXML (CIMXMLParser &parser, std::ostream *ostrEntity, std::ostream *ostrError, OperationContext &context)=0
 After doProcess is called, and the XML is parsed, executeXML is called on the root node.
void makeXMLHeader (const String &messageId, std::ostream &ostr)
 Write a XML header based on the messageId, and write it to ostr.
void setPath (const String &id)
virtual void outputError (CIMException::ErrNoType errorCode, const String &, std::ostream &ostr)=0

Protected Attributes

String m_path

Detailed Description

Definition at line 54 of file OW_RequestHandlerIFCXML.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::RequestHandlerIFCXML::RequestHandlerIFCXML  )  [inline]
 

Definition at line 57 of file OW_RequestHandlerIFCXML.hpp.

OW_NAMESPACE::RequestHandlerIFCXML::~RequestHandlerIFCXML  )  [virtual]
 

Definition at line 65 of file OW_RequestHandlerIFCXML.cpp.


Member Function Documentation

virtual void OW_NAMESPACE::RequestHandlerIFCXML::doProcess std::istream *  istr,
std::ostream *  ostrEntity,
std::ostream *  ostrError,
OperationContext context
[protected, virtual]
 

Process the input stream and generate appropriate output.

Parameters:
istr the istream containing the input.
ostrEntity write to this ostream if no errors occur.
ostrError write to this ostream if an error occurs.
context the context for the operation.

Implements OW_NAMESPACE::RequestHandlerIFC.

virtual int OW_NAMESPACE::RequestHandlerIFCXML::executeXML CIMXMLParser parser,
std::ostream *  ostrEntity,
std::ostream *  ostrError,
OperationContext context
[protected, pure virtual]
 

After doProcess is called, and the XML is parsed, executeXML is called on the root node.

Parameters:
node the root node.
ostrEntity the ostream to write to if no errors occurr
ostrError the ostream to write to if an error occurred.
context the operation context
Returns:
a HTTP status code, I think.

Implemented in OW_NAMESPACE::XMLListener, and OW_NAMESPACE::XMLExecute.

String OW_NAMESPACE::RequestHandlerIFCXML::getContentType  )  const [virtual]
 

Implements OW_NAMESPACE::RequestHandlerIFC.

Reimplemented in OW_NAMESPACE::XMLListener.

Definition at line 173 of file OW_RequestHandlerIFCXML.cpp.

StringArray OW_NAMESPACE::RequestHandlerIFCXML::getSupportedContentTypes  )  const [virtual]
 

Implements OW_NAMESPACE::RequestHandlerIFC.

Reimplemented in OW_NAMESPACE::XMLListener.

Definition at line 164 of file OW_RequestHandlerIFCXML.cpp.

References OW_NAMESPACE::Array< T >::push_back().

void OW_NAMESPACE::RequestHandlerIFCXML::makeXMLHeader const String messageId,
std::ostream &  ostr
[protected]
 

Write a XML header based on the messageId, and write it to ostr.

Parameters:
messageId the message ID
ostr the ostream to write the header to.

virtual void OW_NAMESPACE::RequestHandlerIFCXML::outputError CIMException::ErrNoType  errorCode,
const String ,
std::ostream &  ostr
[protected, pure virtual]
 

Implemented in OW_NAMESPACE::XMLListener, and OW_NAMESPACE::XMLExecute.

void OW_NAMESPACE::RequestHandlerIFCXML::setPath const String id  )  [protected]
 

Definition at line 179 of file OW_RequestHandlerIFCXML.cpp.

References m_path.


Member Data Documentation

String OW_NAMESPACE::RequestHandlerIFCXML::m_path [protected]
 

Definition at line 91 of file OW_RequestHandlerIFCXML.hpp.

Referenced by setPath().


The documentation for this class was generated from the following files:
Generated on Thu Feb 9 09:17:08 2006 for openwbem by  doxygen 1.4.6