You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration/setup.md
+15-23Lines changed: 15 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,61 +4,53 @@ outline: [2, 4]
4
4
5
5
# General
6
6
7
-
abap2UI5 can be run with various custom configurations. The default setup can be invoked using the following call.
7
+
abap2UI5 can be run with various custom configurations. The default setup is used automatically. For custom configurations, simply implement the interface `z2ui5_if_exit`:
8
8
9
9
```abap
10
-
METHOD if_http_extension~handle_request.
10
+
CLASS zcl_a2ui5_user_exit DEFINITION PUBLIC FINAL CREATE PUBLIC.
11
11
12
-
z2ui5_cl_http_handler=>run( server ).
12
+
PUBLIC SECTION.
13
+
INTERFACES z2ui5_if_exit.
13
14
14
-
ENDMETHOD.
15
+
ENDCLASS.
15
16
```
16
-
For custom configurations, simply populate the config structure and pass it to the run method:
17
17
18
18
### Theme
19
-
For example, to change the theme, the source code would look like this:
19
+
For example, to change the theme, the implementation would look like this:
20
20
```abap
21
-
METHOD if_http_extension~handle_request.
21
+
METHOD z2ui5_if_exit~set_config_http_get.
22
22
23
-
z2ui5_cl_http_handler=>run( server = server config = VALUE #(
24
-
theme = `sap_belize`
25
-
) ).
23
+
cs_config-theme = `sap_belize`.
26
24
27
25
ENDMETHOD.
28
-
```
26
+
```
29
27
30
28
### UI5 Bootstrapping
31
29
To specify the source for bootstrapping UI5:
32
30
```abap
33
-
METHOD if_http_extension~handle_request.
31
+
METHOD z2ui5_if_exit~set_config_http_get.
34
32
35
-
z2ui5_cl_http_handler=>run( server = server config = VALUE #(
0 commit comments