Class RestMessageDefinition
java.lang.Object
com.aquima.interactions.communication.impl.RestMessageDefinition
- All Implemented Interfaces:
IRestMessageDefinition
- Direct Known Subclasses:
RestRequestMessageDefinition
This class holds the static definition of a rest message.
- Since:
- 9.0
- Author:
- Arjan Pragt
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
RestMessageDefinition
(RestServiceDefinition serviceDefinition, IRestMessageDS datasource, ICommunicationEngine communicationEngine, IMetaModel metaModel, IRuleEngine ruleEngine) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addHeader
(RestHeaderDefinition header) This method returns the content attribute of the message.This method returns reference to the body element.This method returns the domain schema in case of a domain schema service.protected IEntityDefinition
This method returns the entity connecting to the message.This method returns the headers of the message.This method returns the validations of the attribute.
-
Constructor Details
-
RestMessageDefinition
protected RestMessageDefinition(RestServiceDefinition serviceDefinition, IRestMessageDS datasource, ICommunicationEngine communicationEngine, IMetaModel metaModel, IRuleEngine ruleEngine)
-
-
Method Details
-
getEntityName
Description copied from interface:IRestMessageDefinition
This method returns the entity connecting to the message.- Specified by:
getEntityName
in interfaceIRestMessageDefinition
- Returns:
- The entity, may not be null.
-
getEntity
-
getHeaders
Description copied from interface:IRestMessageDefinition
This method returns the headers of the message.- Specified by:
getHeaders
in interfaceIRestMessageDefinition
- Returns:
- The headers of the message, may not be null.
-
getBodyElement
Description copied from interface:IRestMessageDefinition
This method returns reference to the body element. If may return null if the message does not contain a body, or if the service uses domain schemas.- Specified by:
getBodyElement
in interfaceIRestMessageDefinition
- Returns:
- The full qualifiedname of the element of the body, may be null.
-
getBodySchema
Description copied from interface:IRestMessageDefinition
This method returns the domain schema in case of a domain schema service. If may return null if the message does not contain a body, or if the service does not domain schemas.- Specified by:
getBodySchema
in interfaceIRestMessageDefinition
- Returns:
- The domain schema in case of a domain schema service, may be null.
-
getBodyAttributeName
Description copied from interface:IRestMessageDefinition
This method returns the content attribute of the message.- Specified by:
getBodyAttributeName
in interfaceIRestMessageDefinition
- Returns:
- The body attribute, may be null.
-
addHeader
-
getValidations
Description copied from interface:IRestMessageDefinition
This method returns the validations of the attribute.- Specified by:
getValidations
in interfaceIRestMessageDefinition
- Returns:
- The validations of the attribute, may not be null.
-