SAP ABAP Class CL_REST_HTTP_HANDLER (REST HTTP Handler)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-MID-RST (Application Component) REST-based Protocols
⤷
SREST_HTTP (Package) REST HTTP Adapter
⤷
⤷
Meta Relationship - Using
| # | Relationship type | Using | Short Description | Created on |
|---|---|---|---|---|
| 1 | Interface implementation (CLASS c. INTERFACES i_ref) | IF_HTTP_EXTENSION | HTTP Framework (iHTTP) HTTP Request Handler | 20100212 |
| 2 | Interface implementation (CLASS c. INTERFACES i_ref) | IF_REST_APPLICATION | REST Application | 20100212 |
Meta Relationship - Used By
| # | Relationship type | Used by | Short Description | Created on |
|---|---|---|---|---|
| 1 | Inheritance (c INHERITING FROM c_ref) | CL_ADT_RES_APP_BASE | Default Application for the ADT REST Framework | 20101111 |
| 2 | Inheritance (c INHERITING FROM c_ref) | CL_REST_TEST_SCENARIO | Test HTTP Handler and Szenaro Tests | 20100224 |
| 3 | Inheritance (c INHERITING FROM c_ref) | CL_RSBPC_WEB_REST_APPLICATION | BPC REST Application | 20130522 |
| 4 | Inheritance (c INHERITING FROM c_ref) | CL_SLMP_REST_APPLICATION | SL Protocol Application | 20121029 |
Properties
| Class | CL_REST_HTTP_HANDLER | |
| Short Description | REST HTTP Handler | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SREST_HTTP | REST HTTP Adapter |
| Created | 20100212 | SAP |
| Last change | 20130531 | 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 | IF_HTTP_EXTENSION | HTTP Framework (iHTTP) HTTP Request Handler | 20100212 | ||
| 2 | IF_REST_APPLICATION | REST Application | 20100212 |
Friends
Class CL_REST_HTTP_HANDLER has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Static Attribute | Protected | Type reference (TYPE) | FLOW_HISTORY_T | 20120418 | ||||
| 2 | Static Attribute | Protected | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Allow Method Override | 20100224 | ||
| 3 | Static Attribute | Protected | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | Check for 'requested with' | 20100408 | ||
| 4 | Static Attribute | Protected | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Stateful | 20110105 | ||
| 5 | Instance attribute | Protected | Object reference (TYPE REF TO) | IF_REST_CONTEXT | REST Context | 20110103 | |||
| 6 | Instance attribute | Protected | Object reference (TYPE REF TO) | IF_HTTP_SERVER | HTTP Server Object | 20100212 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Protected | Method | 20100212 | ||
| 2 | Instance method | Protected | Method | Handle CSRF token | 20111214 | |
| 3 | Instance method | Protected | Method | Initialize http request handling | 20120502 |
Events
Class CL_REST_HTTP_HANDLER has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | FLOW_HISTORY_S | Public | See coding | 20120418 | BEGIN OF flow_history_s,
script_name TYPE string,
script_name_expanded TYPE string,
flow_rc type i,
END OF flow_history_s
|
||
| 2 | FLOW_HISTORY_T | Public | See coding | 20120418 | flow_history_t TYPE STANDARD TABLE OF flow_history_s WITH DEFAULT KEY
|
Method Signatures
Method GET_ROOT_HANDLER Signature
Method GET_ROOT_HANDLER on class CL_REST_HTTP_HANDLER has no parameter.
Method GET_ROOT_HANDLER on class CL_REST_HTTP_HANDLER has no exception.
Method HANDLE_CSRF_TOKEN Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_CSRF_HANDLER | Call by reference | Object reference (TYPE REF TO) | IF_REST_CSRF_HANDLER | REST CSRF Handler | 20111214 | |||
| 2 | IO_REQUEST | Call by reference | Object reference (TYPE REF TO) | IF_REST_REQUEST | REST Request | 20111214 | |||
| 3 | IO_RESPONSE | Call by reference | Object reference (TYPE REF TO) | IF_REST_RESPONSE | REST Response | 20111214 |
Method HANDLE_CSRF_TOKEN on class CL_REST_HTTP_HANDLER has no exception.
Method INITIALIZE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CV_PATH_INFO | Call by reference | Type reference (TYPE) | STRING | Path info | 20120502 | |||
| 2 | CV_PATH_INFO_EXPANDED | Call by reference | Type reference (TYPE) | STRING | Path info expanded | 20120502 | |||
| 3 | CV_SCRIPT_NAME | Call by reference | Type reference (TYPE) | STRING | Script name | 20120502 | |||
| 4 | CV_SCRIPT_NAME_EXPANDED | Call by reference | Type reference (TYPE) | STRING | Script name expanded | 20120502 | |||
| 5 | EV_SKIP | Call by reference | Type reference (TYPE) | ABAP_BOOL | Skip root handler | 20120502 | |||
| 6 | IO_CONTEXT | Call by reference | Object reference (TYPE REF TO) | IF_REST_CONTEXT | Context | 20120502 |
Method INITIALIZE on class CL_REST_HTTP_HANDLER has no exception.
History
| Last changed by/on | SAP | 20130531 |
| SAP Release Created in |