InboundTextHandler

LANSA Integrator

InboundTextHandler

The InboundText handler is used to receive text content from a HTTP client program and optional send a text response.

When the RECEIVE command of this content handler is executed the following steps occur:

If there is no content, then an OK status is returned.

The handler then determines the encoding to use to convert the binary text into Unicode text and then updates the field specified in the TO keyword with the converted Unicode value.

Command

Keyword

Value

Developer notes for Command/Keyword/Value

RECEIVE

HANDLER

 

InboundText

ENCODING

 

Optional. See ENCODING.
Used to convert binary text to Unicode text.

TO

field

Mandatory. Bind text to specified field.

 

Example

 

RECEIVE HANDLER(InboundText) TO(MSG)

 

The SEND command allows a simple plain text response to be created.

 

Command

Keyword

Value

Developer notes for Command/Keyword/Value

SEND

HANDLER

 

InboundText

STATUS

value

Optional. HTTP status number.
Default. 200.

MESSAGE

value

Optional. HTTP status message
Default. OK.

FROM

field

Optional. Send text from specified field.

UACACHE

value

Optional. Cache-Control max-age.
Default.0.

UADISPOSITION

value

Optional. Content-Disposition filename.

ENCODING

 

Optional. See ENCODING.
Used to convert Unicode text to binary text.

CONTENT

 

Optional. See CONTENT.

CHARSET

*YES

Optional. Include charset attribute.

*NO

Do not include charset attribute.

*TEXT

Default. Include charset attribute if content is text.

 

Example

 

SEND HANDLER(InboundText) FROM(MSG)