5.8.3 IS

The IS command allows the function to easily test the type of content received. The IS command uses the CONTENT keyword value and matches it against an internal list of content types and the content type of the received data. If the content matches the returned status is OK else, it is NO.

The IS command can be used on received inbound properties and the received response properties from an outbound content handler.

Syntax:

Command

Keyword

Value

Description

 

IS

CONTENT

*SV

Comma or tab separated values

 

*CSV

Comma separated values

text/csv

text/comma-separated-values

text/x-comma-separated-values

application/comma-separated values

*TSV

Tab separated values

text/tsv

text/tab-separated-values

text/x-tab-separated-values

application/tab-separated values

*XML

XML

text/xml

application/xml

+xml extension

*TEXT

Text

text/*

All xml

application/json

application/edi-x12

application/edifact

All separated values

*JSON

JSON

application/json

*FORM

Form POST

application/x-www-form-urlencoded

*MULTIPART

Form upload

multipart/form-data

*IMAGE

Image

image/*

*GIF

GIF image

image/gif

*PNG

PNG image

image/png

*JPEG

JPEG image

image/jpeg

image/jpg

*MPEG

MPEG audio

audio/mpeg

*MPEG4

MPEG4 video

audio/mpeg4

video/mpeg4

*PDF

PDF document

application/pdf

*EXCEL

Excel document

application/vnd.ms-excel

*EDI

X12 or EDIFACT

 

*X12

 

application/edi-x12

*EDIFACT

 

application/edifact

 

Example

IS CONTENT(*JSON)