Transaction Variables
When developing a DAV action, several transaction variables of software component FSCASP@1.1001 can be used:
- TV_FRIENDLYURL_FILEEXTENSION
Type: COOSYSTEM@1.1:STRING
Overrides the outgoing file extension and is also used to determine the outgoing MIME type. See chapter 6 for further details. - TV_FRIENDLYURL_ADDITIONAL_HEADERS
Type: COOSYSTEM@1.1:STRINGLIST
Additional HTTP headers can be added to the outgoing HTTP request by adding them to this transaction variable. The HTTP header has to be formatted correctly.
Example: X-MyCustomHeader: headervalue - TV_FRIENDLYURL_RESPONSE_AS_DOWNLOAD
Type: COOSYSTEM@1.1:STRING
This causes the outgoing Content-Disposition HTTP header to be set to DOWNLOAD. The value of the transaction variable is the filename used within the HTTP header. A DOWNLOAD setting usually causes the browser to display a download dialog. - TV_FRIENDLYURL_RESPONSE_AS_INLINE
Type: COOSYSTEM@1.1:STRING
This causes the outgoing Content-Disposition HTTP header to be set to INLINE. The value of the transaction variable is the filename used within the HTTP header. An INLINE setting causes the browser to try to render the received content accordingly.
Example: A PDF document is rendered inline using the Adobe browser plug-in. - TV_FRIENDLYURL_RAW_CONTENT
Type: COOSYSTEM@1.1:BOOLEAN
The outgoing content will not be patched with DocProperties, if this transaction variable is set to TRUE. - TV_FRIENDLYURL_INCOMING_HEADERS
Type: COOSYSTEM@1.1:DICTIONARY
The incoming HTTP headers can be read from this transaction variable as a DICTIONARY key value pair. - TV_FRIENDLYURL_INCOMING_METHOD
Type: COOSYSTEM@1.1:STRING
The incoming HTTP method can be read from this transaction variable. - TV_FRIENDLYURL_BASELOCATION
Type: COOSYSTEM@1.1:STRING
The location of the friendly URL can be read from this transaction variable.
Example: "/fsc/read" or "/fsc/convert" - TV_FRIENDLYURL_OUTGOING_STATUSCODE
Type: COOSYSTEM@1.1.INTEGER
The DAV action can dictate the HTTP status code which is used for the outgoing HTTP response. - TV_FRIENDLYURL_INCOMING_REQUESTURL
Type: COOSYSTEM@1.1:STRING
The request string can be read from this transaction variable. - TV_FRIENDLYURL_URL_PARAMS
Type: COOSYSTEM@1.1:DICTIONARY
If URL parameters have been identified, the parsed key-value pairs are provided within this dictionary as COOSYSTEM@1.1:STRING. - TV_FRIENDLYURL_URL_PARTS
Type: COOSYSTEM@1.1:DICTIONARY
If URL parts have been identified, the parsed values are provided within this dictionary as COOSYSTEM@1.1:STRING. The parsed values can be accessed by the sequence number.