Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IKMIPServerResponse::initialize ( P6KMIPRESPFLAGS  flags,
P6UINT16  protocolVersion,
P6UINT8  msgFormat,
P6WCHAR pErrorPath,
p6IIoBufferFactory pPool,
p6IIoBufferFactory pAltMsgPool 
)
pure virtual

Sets up the component to run properly.

If this response message generator is only going to be used to generate TTLV responses then the parameter pAltMsgPool can be set to NULL. Otherwise, the pAltMsgPool should be configured to hold larger buffers than the pPool memory pool because XML and JSON encoded KMIP responses are significantly larger than the binary TTLV format.

Parameters
flags[ in ] Set perferences for the new object. These preferences are fixed during the lifetime of the object.
protocolVersion[ in ] KMIP protocol version mapping {0 == 1.0, 1 == 1.1, 2 == 1.2, 3 == 1.3, 4 == 1.4}
msgFormat[ in ] value from p6kmip.h, P6R's Compatibility Bit Mask (e.g., KMIP_CMP_TTLV, KMIP_CMP_MSGXML)
pErrorPath[ in ] full path to a file where DOM component can write errors into a file
pPool[ in ] IO buffer pool used for message generation for TTLV encoded responses
pAltMsgPool[ in ] optional can be NULL, IO buffer pool used for message generation in XML and JSON since message sizes are bigger
Returns
SuccessP6R::eOk 
FailureP6R::eNoMemoryInsuffficient memory to properly initialize the component
P6R::eAlreadyInitializedOnly one successful call to this function is allowed.