The Response UDR
contains the UI built with UI Builder Components Component UDRs.
The following fields are included in the Response UDR
:
Field | Description |
---|---|
body (bytearray) | This field can contain the HTTP message body. If the page is built up manually or a File should be downloaded. In normal cases this field is not used. |
cookies (list<CookieUDR> | This field can contain a list of Cookie UDRs. |
headerFields (map<string,list<string>>) | This field may contain an HTTP header. The header is stored as key-value pairs. |
httpResponseCode (int) | This field can contain the response code to the client. If not set response code 200 will be sent to client. |
mainGrid (GridUDR) | This field can contain the Grid UDR to build up the UI. This field or body field must be set. |
menuItems (map<string,string>) | This field may contain menu items. The menu items are stored as key-value pairs. Where key is the text showed in the menu and value is a URL to the new page. |
naviContent (list<ComponentUDR>) | This field may contain a list of any Component UDR to be present in the top navibar on the UI. |
scripts (list<ScriptUDR>) | This field may contain a list of Script UDR to be added to the page. |
Cookie UDR
The Cookie UDR
is used to set or read a Cookie.
The following fields are included in the Cookie UDR
:
Field | Description |
---|---|
maxAge (int) | This field may contain maximum age of the cookie in seconds. |
name (string) | This field contain the name of the cookie. |
path (string) | This field may contain a uri path for the cookie to which the client should return the cookie |
value (string) | This field may contain the value of the cookie. If left empty meaning the cookie will be deleted. |
Script UDR
The Script UDR
is used to set extra Scripts on the UI page. It can be referring to a URI where the script can be found or created in this UDR.
The following fields are included in the Script UDR
:
Field
Description
attributes (map<string,string>)
This field may contain extra attributes to be added to the script tag.
crossOrigin (string)
This field may contain the value for CORS settings of a script.
integrity (string)
This field may contain the value for integrity attribute.
placement (int)
This field may contain placement of the script tag on the page. Default is LAST_BODY.
Possible values are:
HEADER (1) or LAST_BODY (0)
srcUrl (string)
This field may contain a url to a script.
text (string)
This field may contain a script text.
type (string)
text/javascript
. Two constants are added to help, JAVASCRIPT
or ECMASCRIPT
. |