SAP ABAP Class /IWCOR/CL_REST_ROUTER (REST Router)
Hierarchy
☛
SAP_GWFND (Software Component) SAP Gateway Foundation
⤷
OPU-FND-CCL (Application Component) IWF Consumer Connectivity Layer
⤷
/IWCOR/SREST_CORE (Package) REST library core

⤷

⤷

Meta Relationship - Using
# | Relationship type | Using | Short Description | Created on |
---|---|---|---|---|
1 | Interface implementation (CLASS c. INTERFACES i_ref) | /IWCOR/IF_REST_HANDLER | REST Request Handler | 20100708 |
Properties
Class | /IWCOR/CL_REST_ROUTER | |
Short Description | REST Router | |
Super Class | ||
Instantiability of a Class | 2 | Public |
Final |
General Data
Message Class | ||
Program status | ||
Category | 0 | |
Package | /IWCOR/SREST_CORE | REST library core |
Created | 20100205 | SAP |
Last change | 20131127 | SAP |
Shared Memory-enabled | ||
Fixed point arithmetic | ||
Unicode checks active |
Forward declarations
# | Type group / Object type | Type | Type Description |
---|---|---|---|
1 | ![]() |
Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
# | Interface | Abstract | Final | Description | Created on |
---|---|---|---|---|---|
1 | /IWCOR/IF_REST_HANDLER | REST Request Handler | 20100708 |
Friends
Class /IWCOR/CL_REST_ROUTER has no friend class.
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
Constant | Private | Type reference (TYPE) | I | 0 | Mapping empty | 20110218 | |
2 | ![]() |
Constant | Private | Type reference (TYPE) | I | 1 | Mapping to a Resource Handler | 20100708 | |
3 | ![]() |
Constant | Private | Type reference (TYPE) | I | 2 | Ist redirecthandler | 20100708 | |
4 | ![]() |
Constant | Private | Type reference (TYPE) | I | 2 | Status constant for URI Template Parser | 20100708 | |
5 | ![]() |
Constant | Private | Type reference (TYPE) | I | 1 | Status constant for URI Template Parser | 20100708 | |
6 | ![]() |
Instance attribute | Private | Type reference (TYPE) | TT_TEMPLATE_HANDLER_MAP | List of assignments of Template to Handler | 20100708 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | ![]() |
Instance method | Public | Method | Attaches a handler | 20100708 |
2 | ![]() |
Instance method | Public | Method | Pfad and an einen anderen Pfad weiterleiten | 20100708 |
3 | ![]() |
Instance method | Public | Method | Find matching handler for a path | 20100708 |
4 | ![]() |
Static method | Private | Method | Treffer mit der höchsten Priorität ermitteln | 20100708 |
5 | ![]() |
Static method | Private | Method | Regulären Ausdruck für URI Template bestimmen | 20100708 |
6 | ![]() |
Static method | Private | Method | Regulären Ausdruck für URI Template bestimmen | 20110919 |
7 | ![]() |
Static method | Private | Method | Template variablen in URI Template extrahieren | 20100708 |
8 | ![]() |
Static method | Private | Method | Get Regular Expression for URI Template | 20110922 |
Events
Class /IWCOR/CL_REST_ROUTER has no event.
Types
# | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
---|---|---|---|---|---|---|---|
1 | TT_TEMPLATE_HANDLER_MAP | Private | See coding | Mapping Table | 20100708 | tt_template_handler_map TYPE STANDARD TABLE OF ty_template_handler_map
|
|
2 | TY_MATCH_INFO | Public | See coding | Match Information | 20100708 | BEGIN OF ty_match_info,
type TYPE i,
handler_class TYPE seoclsname,
handler_class_parameter type abap_parmbind_tab,
attributes TYPE tihttpnvp,
handler_path TYPE string,
location TYPE string,
status_code TYPE i,
END OF ty_match_info
|
|
3 | TY_TEMPLATE_HANDLER_MAP | Private | See coding | Mapping Table Entry | 20100708 | BEGIN OF ty_template_handler_map, "used for <|> set by
type TYPE i, "always used, set internally
uri_template TYPE string, "always used, set by user
uri_pattern TYPE string, "always used, set internally
location TYPE string, "-C_redirect, set by user
handler_class TYPE seoclsname,"always used, set by user
handler_class_parameter type abap_parmbind_tab,
variables TYPE string_table, "always used, set internally
literals TYPE i, "always used, set internally
status_code TYPE i, "used for GC_redirect
END OF ty_template_handler_map
|
Method Signatures
Method ATTACH Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IT_PARAMETER | Call by reference | Type reference (TYPE) | ABAP_PARMBIND_TAB | Resource contructor parameters | 20110822 | ||
2 | ![]() |
IV_HANDLER_CLASS | Call by reference | Type reference (TYPE) | SEOCLSNAME | Object Type Name | 20100708 | ||
3 | ![]() |
IV_TEMPLATE | Call by reference | Type reference (TYPE) | STRING | Unified Name for Resources | 20100708 |
Method ATTACH on class /IWCOR/CL_REST_ROUTER has no exception.
Method ATTACH_REDIRECT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_LOCATION | Call by reference | Type reference (TYPE) | STRING | Redirect Location | 20100708 | ||
2 | ![]() |
IV_STATUS_CODE | Call by reference | Type reference (TYPE) | I | HTTP Status Code for Redirect | 20100708 | ||
3 | ![]() |
IV_TEMPLATE | Call by reference | Type reference (TYPE) | STRING | Unified Name for Resources | 20100708 |
Method ATTACH_REDIRECT on class /IWCOR/CL_REST_ROUTER has no exception.
Method FIND_MATCH Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ES_MATCH_INFO | Call by reference | Type reference (TYPE) | TY_MATCH_INFO | Information about found Handlers | 20100708 | ||
2 | ![]() |
EV_MATCH_TYPE | Call by reference | Type reference (TYPE) | I | 20100708 | |||
3 | ![]() |
IV_PATH | Call by reference | Type reference (TYPE) | STRING | Pfad for Routing | 20100708 |
Method FIND_MATCH on class /IWCOR/CL_REST_ROUTER has no exception.
Method GET_FIRST_MATCH Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IT_ROUTES | Call by reference | Type reference (TYPE) | TT_TEMPLATE_HANDLER_MAP | URI Resource Mapping Table | 20100708 | ||
2 | ![]() |
RV_INDEX | Value transfer | Type reference (TYPE) | I | Table Index of Entry with the Highest Priority | 20100708 |
Method GET_FIRST_MATCH on class /IWCOR/CL_REST_ROUTER has no exception.
Method PARSE_URI_TEMPLATE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ET_VARS | Call by reference | Type reference (TYPE) | STRING_TABLE | List of Strings | 20100708 | ||
2 | ![]() |
EV_GROUPS | Call by reference | Type reference (TYPE) | I | Count of found Groups | 20100708 | ||
3 | ![]() |
EV_LITERALS | Call by reference | Type reference (TYPE) | I | Count of found Literals | 20100708 | ||
4 | ![]() |
EV_REGEX | Call by reference | Type reference (TYPE) | STRING | Regular Expression | 20100708 | ||
5 | ![]() |
IV_TEMPLATE | Call by reference | Type reference (TYPE) | STRING | Template | 20100708 |
Method PARSE_URI_TEMPLATE on class /IWCOR/CL_REST_ROUTER has no exception.
Method PARSE_URI_TEMPLATE_ABAP Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ET_VARS | Call by reference | Type reference (TYPE) | STRING_TABLE | List of Strings | 20110919 | ||
2 | ![]() |
EV_GROUPS | Call by reference | Type reference (TYPE) | I | Count of found Groups | 20110919 | ||
3 | ![]() |
EV_LITERALS | Call by reference | Type reference (TYPE) | I | Count of found Literals | 20110919 | ||
4 | ![]() |
EV_REGEX | Call by reference | Type reference (TYPE) | STRING | Regular Expression | 20110919 | ||
5 | ![]() |
IV_TEMPLATE | Call by reference | Type reference (TYPE) | STRING | Template | 20110919 |
Method PARSE_URI_TEMPLATE_ABAP on class /IWCOR/CL_REST_ROUTER has no exception.
Method PROCESS_TEMPLATE_VAR Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
CV_OFFSET | Call by reference | Type reference (TYPE) | I | Offset in Text | 20100708 | ||
2 | ![]() |
CV_REGEX | Call by reference | Type reference (TYPE) | STRING | Regular Expression | 20100708 | ||
3 | ![]() |
EV_VARNAME | Call by reference | Type reference (TYPE) | STRING | Variable Name | 20100708 | ||
4 | ![]() |
IV_TEMPLATE | Call by reference | Type reference (TYPE) | STRING | Template | 20100708 |
Method PROCESS_TEMPLATE_VAR on class /IWCOR/CL_REST_ROUTER has no exception.
Method _PARSE_URI_TEMPLATE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ET_VARS | Call by reference | Type reference (TYPE) | STRING_TABLE | List of Strings | 20110922 | ||
2 | ![]() |
EV_GROUPS | Call by reference | Type reference (TYPE) | I | Count of found Groups | 20110922 | ||
3 | ![]() |
EV_LITERALS | Call by reference | Type reference (TYPE) | I | Count of found Literals | 20110922 | ||
4 | ![]() |
EV_PARSE_OK | Call by reference | Type reference (TYPE) | I | 20110922 | |||
5 | ![]() |
EV_REGEX | Call by reference | Type reference (TYPE) | STRING | Regular Expression | 20110922 | ||
6 | ![]() |
IV_TEMPLATE | Call by reference | Type reference (TYPE) | STRING | Template | 20110922 |
Method _PARSE_URI_TEMPLATE on class /IWCOR/CL_REST_ROUTER has no exception.
History
Last changed by/on | SAP | 20131127 |
SAP Release Created in | 100 |