EnsLib.EDI.XML.MsgBodyMethods
abstract class EnsLib.EDI.XML.MsgBodyMethods extends Ens.Util.MessageBodyMethods
Method Inventory
Methods
method %GetContentType() as %String
Inherited description: This method is called by the Management Portal to determine
the content type that will be returned by the %ShowContents()
method.
The return value is a string containing an HTTP content type.
method %ShowContents(pZenOutput As %Boolean = 0)
Inherited description: This method is called by the Management Portal to
display a message-specific content viewer for messages that
extend %XML.Adaptor or %JSON.Adaptor or where JSON
has been requested explicitly.
This method displays its content by writing out to the current device.
For XML content , non XML characters are suppressed and there is an optional size limit of output.
The content should match the type returned by the %GetContentType() method or in the case of JSON explicitly to %response.ContentType.
This method is called from EnsPortal.MessageContents when:
class extends both %XML.Adaptor and Ens.Util.MessageBodyMethods
class neither extends %XML.Adaptor nor %Stream.Object
class extends %JSON.Adaptor and Ens.Util.MessageBodyMethods and
UNSUPPORTEDFORMATS does not include JSON
In all cases the parameter, pZenOutput is passed in as 1.
This method can be overridden.
This method calls OnShowJSONContents() and OnShowXMLContents() which can also be overridden.
This method displays its content by writing out to the current device.
For XML content , non XML characters are suppressed and there is an optional size limit of output.
The content should match the type returned by the %GetContentType() method or in the case of JSON explicitly to %response.ContentType.
This method is called from EnsPortal.MessageContents when:
This method can be overridden.
This method calls OnShowJSONContents() and OnShowXMLContents() which can also be overridden.
method GetStatsDimension() as %String
This method is used to provide the Statistics Site Dimension if not already set