SAP ABAP Class /IWBEP/CL_JSRPC_HTTP_SERVER (JSON RPC 2.0 CSRF guard)
Hierarchy
☛
SAP_GWFND (Software Component) SAP Gateway Foundation
⤷ OPU-BSE-BEP (Application Component) Gateway Business Eventing and Provisioning
⤷ /IWBEP/JSON_RPC_CORE (Package) JSON-RPC 2.0 # Implementation
⤷ OPU-BSE-BEP (Application Component) Gateway Business Eventing and Provisioning
⤷ /IWBEP/JSON_RPC_CORE (Package) JSON-RPC 2.0 # Implementation
Meta Relationship - Using
# | Relationship type | Using | Short Description | Created on |
---|---|---|---|---|
1 | Interface implementation (CLASS c. INTERFACES i_ref) | /IWBEP/IF_JSRPC_TRANSPORT | JSON RPC 2.0 Transport | 20131024 |
Properties
Class | /IWBEP/CL_JSRPC_HTTP_SERVER | |
Short Description | JSON RPC 2.0 CSRF guard | |
Super Class | ||
Instantiability of a Class | 1 | Protected |
Final |
General Data
Message Class | ||
Program status | ||
Category | 0 | |
Package | /IWBEP/JSON_RPC_CORE | JSON-RPC 2.0 # Implementation |
Created | 20131021 | SAP |
Last change | 20141120 | |
Shared Memory-enabled | ||
Fixed point arithmetic | ||
Unicode checks active |
Forward declarations
# | Type group / Object type | Type | Type Description |
---|---|---|---|
1 | ABAP | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
# | Interface | Abstract | Final | Description | Created on |
---|---|---|---|---|---|
1 | /IWBEP/IF_JSRPC_TRANSPORT | JSON RPC 2.0 Transport | 20131024 |
Friends
Class /IWBEP/CL_JSRPC_HTTP_SERVER has no friend class.
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | CONTENT_TYPE | Instance attribute | Protected | Type reference (TYPE) | STRING | 20131024 | |||
2 | CO_DISABLED | Constant | Public | Type reference (TYPE) | I | IF_HTTP_SERVER=>CO_DISABLED | 20131024 | ||
3 | CO_ENABLED | Constant | Public | Type reference (TYPE) | I | IF_HTTP_SERVER=>CO_ENABLED | 20131024 | ||
4 | CO_HEADER_CSRF_TOKEN | Constant | Public | Type reference (TYPE) | STRING | 'X-CSRF-Token' | 20131024 | ||
5 | CO_VIA_COOKIE | Constant | Public | Type reference (TYPE) | STRING | `cookie` | 20131024 | ||
6 | CO_VIA_URL | Constant | Public | Type reference (TYPE) | STRING | `url` | 20131024 | ||
7 | CSRF_TOKEN | Instance attribute | Protected | Type reference (TYPE) | STRING | 20131024 | |||
8 | ENDPOINT | Instance attribute | Protected | Type reference (TYPE) | STRING | 20131024 | |||
9 | HTTP_METHOD | Instance attribute | Protected | Type reference (TYPE) | STRING | 20131024 | |||
10 | HTTP_SERVER | Instance attribute | Protected | Object reference (TYPE REF TO) | IF_HTTP_SERVER | 20131024 | |||
11 | PATH_INFO | Instance attribute | Protected | Type reference (TYPE) | STRING | '/' | 20131024 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | CALL_GET_TOKEN | Instance method | Protected | Method | 20131024 | |
2 | CALL_LOGOFF | Instance method | Protected | Method | 20131024 | |
3 | CALL_VALIDATE_TOKEN | Instance method | Protected | Method | 20131024 | |
4 | CREATE | Static method | Public | Method | 20131024 | |
5 | GET_TOKEN | Instance method | Protected | Method | 20131024 | |
6 | LOGOFF | Instance method | Protected | Method | 20131024 | |
7 | SET_STATEFUL | Instance method | Protected | Method | 20131024 | |
8 | VALIDATE_TOKEN | Instance method | Protected | Method | 20131024 |
Events
Class /IWBEP/CL_JSRPC_HTTP_SERVER has no event.
Types
Class /IWBEP/CL_JSRPC_HTTP_SERVER has no local type.
Method Signatures
Method CALL_GET_TOKEN Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | RETURN_CODE | Value transfer | Type reference (TYPE) | I | 20131024 | |||
2 | Exporting | TOKEN | Call by reference | Type reference (TYPE) | STRING | 20131024 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_DYNAMIC_CHECK | Exceptions with Dynamic Check Only of the RAISING Clause | 20131024 |
Method CALL_LOGOFF Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | DELETE_MYSAPSSO2_COOKIE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | 20131024 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_DYNAMIC_CHECK | Exception | 20131024 |
Method CALL_VALIDATE_TOKEN Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | RETURN_CODE | Value transfer | Type reference (TYPE) | I | 20131024 | |||
2 | Exporting | SUCCESSFUL | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20131024 | |||
3 | Importing | TOKEN | Call by reference | Type reference (TYPE) | STRING | 20131024 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_DYNAMIC_CHECK | 20131024 |
Method CREATE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | HTTP_SERVER | Call by reference | Object reference (TYPE REF TO) | IF_HTTP_SERVER | 20131024 | |||
2 | Returning | TRANSPORT | Value transfer | Object reference (TYPE REF TO) | /IWBEP/CL_JSRPC_HTTP_SERVER | 20131024 |
Method CREATE on class /IWBEP/CL_JSRPC_HTTP_SERVER has no exception.
Method GET_TOKEN Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | TOKEN | Value transfer | Type reference (TYPE) | STRING | 20131024 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | /IWBEP/CX_JSRPC_INTERNAL_ERROR | JSON RPC 2.0 internal error | 20131024 |
Method LOGOFF Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | DELETE_MYSAPSSO2_COOKIE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | 20131024 | ||
2 | Returning | RETURN_CODE | Value transfer | Type reference (TYPE) | I | 20131024 |
Method LOGOFF on class /IWBEP/CL_JSRPC_HTTP_SERVER has no exception.
Method SET_STATEFUL Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | ENDPOINT | Call by reference | Type reference (TYPE) | STRING | 20131024 | |||
2 | Exporting | REWRITE_ENDPOINT | Call by reference | Type reference (TYPE) | STRING | 20131024 | |||
3 | Importing | STATEFUL | Call by reference | Type reference (TYPE) | I | IF_HTTP_SERVER=>CO_DISABLED | 20131024 | ||
4 | Importing | VIA | Call by reference | Type reference (TYPE) | STRING | CO_VIA_URL | 20131024 |
Method SET_STATEFUL on class /IWBEP/CL_JSRPC_HTTP_SERVER has no exception.
Method VALIDATE_TOKEN Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | TOKEN | Call by reference | Type reference (TYPE) | STRING | 20131024 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | /IWBEP/CX_JSRPC_INTERNAL_ERROR | 20131024 | ||
2 | /IWBEP/CX_JSRPC_INVALID_REQ | 20131024 |
History
Last changed by/on | SAP | 20141120 |
SAP Release Created in | 200 |