This is an abstract base class for MessageParser objects.
Method | Description |
---|---|
sap.ui.core.message.MessageParser.extend |
Creates a new subclass of class sap.ui.core.message.MessageParser with name
|
sap.ui.core.message.MessageParser.getMetadata |
Returns a metadata object for class sap.ui.core.message.MessageParser. |
getProcessor |
Returns the registered processor on which the events for message handling can be fired |
parse |
Abstract parse method must be implemented in the inheriting class. |
setProcessor |
This method is used by the model to register itself as MessageProcessor for this parser |
Creates a new subclass of class sap.ui.core.message.MessageParser with name sClassName
and enriches it with the information contained in oClassInfo
.
oClassInfo
might contain the same kind of information as described in sap.ui.base.Object.extend.
Param | Type | DefaultValue | Description |
---|---|---|---|
sClassName | string |
Name of the class being created |
|
oClassInfo | object |
Object literal with information about the class |
|
FNMetaImpl | function |
Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class |
Returns a metadata object for class sap.ui.core.message.MessageParser.
Abstract parse method must be implemented in the inheriting class.
Param | Type | DefaultValue | Description |
---|---|---|---|
oResponse | object |
The response from the server containing body and headers |
|
oRequest | object |
The original request that lead to this response |
This method is used by the model to register itself as MessageProcessor for this parser
Param | Type | DefaultValue | Description |
---|---|---|---|
oProcessor | sap.ui.core.message.MessageProcessor |
The MessageProcessor that can be used to fire events |