SAP ABAP Class CL_REST_HTTP_UTILS (REST HTTP Utilities)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-MID-RST (Application Component) REST-based Protocols
⤷
SREST_UTIL (Package) REST Utility Functions

⤷

⤷

Properties
Class | CL_REST_HTTP_UTILS | |
Short Description | REST HTTP Utilities | |
Super Class | ||
Instantiability of a Class | 2 | Public |
Final |
General Data
Message Class | ||
Program status | ||
Category | 0 | |
Package | SREST_UTIL | REST Utility Functions |
Created | 20100212 | SAP |
Last change | 20130531 | SAP |
Shared Memory-enabled | ||
Fixed point arithmetic | ||
Unicode checks active |
Forward declarations
Class CL_REST_HTTP_UTILS has no forward declaration.
Interfaces
Class CL_REST_HTTP_UTILS has no interface implemented.
Friends
Class CL_REST_HTTP_UTILS has no friend class.
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
Constant | Private | Type reference (TYPE) | QUALITY | '1.000' | 20111014 | ||
2 | ![]() |
Constant | Private | Type reference (TYPE) | QUALITY | '0.001' | 20111014 | ||
3 | ![]() |
Constant | Private | See coding | '0.0001' | 20111014 | |||
4 | ![]() |
Static Attribute | Private | Type reference (TYPE) | STRING_TABLE | Days | 20100224 | ||
5 | ![]() |
Static Attribute | Private | Type reference (TYPE) | STRING_TABLE | Months | 20100224 | ||
6 | ![]() |
Static Attribute | Private | Type reference (TYPE) | STRING_TABLE | Weekdays | 20100304 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | ![]() |
Static method | Public | Constructor | Class Constructor | 20100212 |
2 | ![]() |
Static method | Public | Method | Convert a Timestamp into a HTTP date | 20100212 |
3 | ![]() |
Static method | Public | Method | Format a single Entity Tag | 20100212 |
4 | ![]() |
Static method | Public | Method | 20111014 | |
5 | ![]() |
Static method | Private | Method | 20111014 | |
6 | ![]() |
Static method | Private | Method | 20111014 | |
7 | ![]() |
Static method | Public | Method | Convert a HTTP Date into an ABAP Timestamp | 20100212 |
8 | ![]() |
Static method | Private | Method | 20111014 | |
9 | ![]() |
Static method | Public | Method | Parse a Comma separated List of Entity Tags into a Table | 20100212 |
Events
Class CL_REST_HTTP_UTILS has no event.
Types
# | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
---|---|---|---|---|---|---|---|
1 | ACCEPT_S | Private | See coding | 20111014 | BEGIN OF accept_s,
type TYPE string,
subtype TYPE string,
parameter TYPE string,
q TYPE p LENGTH 3 DECIMALS 4,
END OF accept_s
|
||
2 | ACCEPT_T | Private | See coding | 20111014 | accept_t TYPE STANDARD TABLE OF accept_s WITH DEFAULT KEY
|
||
3 | CONTENT_TYPE_S | Private | See coding | 20111014 | BEGIN OF content_type_s,
type TYPE string,
subtype TYPE string,
parameter TYPE string,
content_type TYPE string,
END OF content_type_s
|
||
4 | CONTENT_TYPE_T | Private | See coding | 20111014 | content_type_t TYPE STANDARD TABLE OF content_type_s WITH DEFAULT KEY
|
||
5 | QUALITY | Private | See coding | 20111014 | quality TYPE p LENGTH 3 DECIMALS 3
|
Method Signatures
Method CLASS_CONSTRUCTOR Signature
Method CLASS_CONSTRUCTOR on class CL_REST_HTTP_UTILS has no parameter.
Method CLASS_CONSTRUCTOR on class CL_REST_HTTP_UTILS has no exception.
Method FORMAT_HTTP_DATE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_TIMESTAMP | Call by reference | Type reference (TYPE) | TIMESTAMP | ABAP Timestamp | 20100212 | ||
2 | ![]() |
RV_HTTP_DATE | Value transfer | Type reference (TYPE) | STRING | Date formatted for HTTP usage | 20100212 |
Method FORMAT_HTTP_DATE on class CL_REST_HTTP_UTILS has no exception.
Method FORMAT_TAG Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IS_TAG | Call by reference | Type reference (TYPE) | REST_ETAG_S | List of Tags | 20100224 | ||
2 | ![]() |
RV_ETAG | Value transfer | Type reference (TYPE) | STRING | String with comma separated Tags | 20100212 |
Method FORMAT_TAG on class CL_REST_HTTP_UTILS has no exception.
Method NEGOTIATE_CONTENT_TYPE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IT_SUPPORTED_CONTENT_TYPE | Call by reference | Type reference (TYPE) | STRING_TABLE | 20111014 | |||
2 | ![]() |
IV_HEADER_ACCEPT | Call by reference | Type reference (TYPE) | STRING | 20111014 | |||
3 | ![]() |
RV_CONTENT_TYPE | Value transfer | Type reference (TYPE) | STRING | 20111014 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
20111014 |
Method PARSE_CONTENT_TYPE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
EV_PARAMETER | Call by reference | Type reference (TYPE) | STRING | 20111014 | |||
2 | ![]() |
EV_PARAMETER_NUMBER | Call by reference | Type reference (TYPE) | I | 20111014 | |||
3 | ![]() |
EV_SUBTYPE | Call by reference | Type reference (TYPE) | STRING | 20111014 | |||
4 | ![]() |
EV_TYPE | Call by reference | Type reference (TYPE) | STRING | 20111014 | |||
5 | ![]() |
IV_MEDIA_RANGE | Call by reference | Type reference (TYPE) | STRING | 20111014 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
20111014 |
Method PARSE_HEADER_ACCEPT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ET_ACCEPT | Call by reference | Type reference (TYPE) | ACCEPT_T | 20111014 | |||
2 | ![]() |
IV_HEADER_ACCEPT | Call by reference | Type reference (TYPE) | STRING | 20111014 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
20111014 |
Method PARSE_HTTP_DATE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_HTTP_DATE | Call by reference | Type reference (TYPE) | STRING | Date formatted for HTTP usage | 20100212 | ||
2 | ![]() |
RV_TIMESTAMP | Value transfer | Type reference (TYPE) | TIMESTAMP | ABAP Timestamp | 20100212 |
Method PARSE_HTTP_DATE on class CL_REST_HTTP_UTILS has no exception.
Method PARSE_QUALITY_VALUE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_QUALITY | Call by reference | Type reference (TYPE) | STRING | 20111014 | |||
2 | ![]() |
RV_QUALITY | Value transfer | Type reference (TYPE) | QUALITY | 20111014 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
20111014 |
Method PARSE_TAGS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_TAGS | Call by reference | Type reference (TYPE) | STRING | String with comma separated Tags | 20100212 | ||
2 | ![]() |
RT_TAGS | Value transfer | Type reference (TYPE) | REST_ETAG_T | List of Tags | 20100212 |
Method PARSE_TAGS on class CL_REST_HTTP_UTILS has no exception.
History
Last changed by/on | SAP | 20130531 |
SAP Release Created in |