SAP ABAP Class CL_REST_RESOURCE (REST Resource)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-MID-RST (Application Component) REST-based Protocols
⤷
SREST_CORE (Package) REST Core
⤷
⤷
Meta Relationship - Using
| # | Relationship type | Using | Short Description | Created on |
|---|---|---|---|---|
| 1 | Interface implementation (CLASS c. INTERFACES i_ref) | IF_REST_HANDLER | REST Request Handler | 20100622 |
| 2 | Interface implementation (CLASS c. INTERFACES i_ref) | IF_REST_RESOURCE | REST Resource | 20100622 |
Meta Relationship - Used By
| # | Relationship type | Used by | Short Description | Created on |
|---|---|---|---|---|
| 1 | Inheritance (c INHERITING FROM c_ref) | CL_ADT_REST_RES_ADAPTER | Adapter old resource new REST resource | 20100610 |
| 2 | Inheritance (c INHERITING FROM c_ref) | CL_REST_TEST_FORMFIELDS | Test Resource for Form Field Handling | 20100223 |
| 3 | Inheritance (c INHERITING FROM c_ref) | CL_REST_TEST_RESOURCE | REST Simple Test Resource (Ping) | 20090812 |
| 4 | Inheritance (c INHERITING FROM c_ref) | CL_REST_TEST_RES_COND | Test resource for conditional handling | 20100804 |
| 5 | Inheritance (c INHERITING FROM c_ref) | CL_REST_TEST_RES_ECHO | Test resource for URL handling and routing | 20100804 |
| 6 | Inheritance (c INHERITING FROM c_ref) | CL_RSBPC_WEB_REST_RES | BPC REST resource | 20130522 |
| 7 | Inheritance (c INHERITING FROM c_ref) | CL_SLMP_REST_RESOURCE | SL Protocol REST Resource | 20121029 |
Properties
| Class | CL_REST_RESOURCE | |
| Short Description | REST Resource | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SREST_CORE | REST Core |
| Created | 20090814 | 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_REST_HANDLER | REST Request Handler | 20100622 | ||
| 2 | IF_REST_RESOURCE | REST Resource | 20100622 |
Friends
Class CL_REST_RESOURCE has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Instance attribute | Protected | Object reference (TYPE REF TO) | IF_REST_CONTEXT | REST Context | 20101229 | |||
| 2 | Instance attribute | Protected | Object reference (TYPE REF TO) | IF_REST_REQUEST | REST Request Object | 20100622 | |||
| 3 | Instance attribute | Protected | Object reference (TYPE REF TO) | IF_REST_RESPONSE | REST Response Object | 20100622 | |||
| 4 | Instance attribute | Protected | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | Use Conditional Handling | 20100622 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Private | Method | 20120312 | ||
| 2 | Instance method | Private | Method | 20100622 | ||
| 3 | Instance method | Private | Method | Perform Normal Handling | 20100622 | |
| 4 | Instance method | Private | Method | Perform Conditional Handling | 20100622 | |
| 5 | Instance method | Private | Method | 20100622 | ||
| 6 | Instance method | Protected | Method | Get Conditional Info | 20100622 | |
| 7 | Instance method | Private | Method | 20100622 | ||
| 8 | Instance method | Private | Method | 20100622 | ||
| 9 | Instance method | Private | Method | 20100622 | ||
| 10 | Instance method | Private | Method | 20100622 | ||
| 11 | Instance method | Private | Method | 20100622 |
Events
Class CL_REST_RESOURCE has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | TS_CONDITIONAL_INFO | Protected | See coding | Conditional Information | 20100622 | BEGIN OF ts_conditional_info,
existing TYPE abap_bool,
etag TYPE rest_etag_s,
modification_date TYPE timestamp,
status TYPE i,
response TYPE REF TO if_rest_response,
END OF ts_conditional_info
|
Method Signatures
Method COPY_RESPONSE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_SOURCE_RESPONSE | Call by reference | Object reference (TYPE REF TO) | IF_REST_RESPONSE | 20120312 | ||||
| 2 | IO_TARGET_RESPONSE | Call by reference | Object reference (TYPE REF TO) | IF_REST_RESPONSE | 20120312 |
Method COPY_RESPONSE on class CL_REST_RESOURCE has no exception.
Method DELETE Signature
Method DELETE on class CL_REST_RESOURCE has no parameter.
Method DELETE on class CL_REST_RESOURCE has no exception.
Method DO_HANDLE Signature
Method DO_HANDLE on class CL_REST_RESOURCE has no parameter.
Method DO_HANDLE on class CL_REST_RESOURCE has no exception.
Method DO_HANDLE_CONDITIONAL Signature
Method DO_HANDLE_CONDITIONAL on class CL_REST_RESOURCE has no parameter.
Method DO_HANDLE_CONDITIONAL on class CL_REST_RESOURCE has no exception.
Method GET Signature
Method GET on class CL_REST_RESOURCE has no parameter.
Method GET on class CL_REST_RESOURCE has no exception.
Method GET_CONDITIONAL_INFO Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ES_ETAG | Call by reference | Type reference (TYPE) | REST_ETAG_S | ETag | 20100622 | |||
| 2 | EV_EXISTING | Call by reference | Type reference (TYPE) | ABAP_BOOL | Conditional Info Available | 20100622 | |||
| 3 | EV_GET_RESPONSE | Call by reference | Type reference (TYPE) | ABAP_BOOL | Get Response? | 20100622 | |||
| 4 | EV_MODIFICATION_DATE | Call by reference | Type reference (TYPE) | TIMESTAMP | Modification Date | 20100622 | |||
| 5 | EV_STATUS | Call by reference | Type reference (TYPE) | I | Status | 20100622 | |||
| 6 | IV_METHOD | Call by reference | Type reference (TYPE) | STRING | HTTP Method | 20100622 |
Method GET_CONDITIONAL_INFO on class CL_REST_RESOURCE has no exception.
Method HANDLE Signature
Method HANDLE on class CL_REST_RESOURCE has no parameter.
Method HANDLE on class CL_REST_RESOURCE has no exception.
Method HEAD Signature
Method HEAD on class CL_REST_RESOURCE has no parameter.
Method HEAD on class CL_REST_RESOURCE has no exception.
Method OPTIONS Signature
Method OPTIONS on class CL_REST_RESOURCE has no parameter.
Method OPTIONS on class CL_REST_RESOURCE has no exception.
Method POST Signature
Method POST on class CL_REST_RESOURCE has no parameter.
Method POST on class CL_REST_RESOURCE has no exception.
Method PUT Signature
Method PUT on class CL_REST_RESOURCE has no parameter.
Method PUT on class CL_REST_RESOURCE has no exception.
History
| Last changed by/on | SAP | 20130531 |
| SAP Release Created in | 701 |