SAP ABAP Class /IWCOR/CL_REST_HTTP_UTILS (REST HTTP Utilities)
Hierarchy
SAP_GWFND (Software Component) SAP Gateway Foundation
   OPU-FND-CCL (Application Component) IWF Consumer Connectivity Layer
     /IWCOR/SREST_UTIL (Package) REST library utilities
Properties
Class /IWCOR/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 /IWCOR/SREST_UTIL   REST library utilities 
Created 20100212   SAP 
Last change 20141120    
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
Class /IWCOR/CL_REST_HTTP_UTILS has no forward declaration.
Interfaces
Class /IWCOR/CL_REST_HTTP_UTILS has no interface implemented.
Friends
Class /IWCOR/CL_REST_HTTP_UTILS has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_QUALITY_MAX Constant Private Type reference (TYPE) QUALITY '1.000' 20111014
2 GC_QUALITY_MIN Constant Private Type reference (TYPE) QUALITY '0.001' 20111014
3 GC_QUALITY_PARAMETER_FACTOR Constant Private See coding '0.0001' 20111014
4 GT_DAYS Static Attribute Private Type reference (TYPE) STRING_TABLE Days 20100708
5 GT_MONTHS Static Attribute Private Type reference (TYPE) STRING_TABLE Months 20100708
6 GT_WEEKDAYS Static Attribute Private Type reference (TYPE) STRING_TABLE Weekdays 20100708
Methods
# Method Level Visibility Method type Description Created on
1 CLASS_CONSTRUCTOR Static method Public Constructor Class Constructor 20100708
2 FORMAT_HTTP_DATE Static method Public Method Convert a Timestamp into a HTTP date 20100708
3 FORMAT_TAG Static method Public Method Format a single Entity Tag 20100708
4 NEGOTIATE_CONTENT_TYPE Static method Public Method 20111014
5 PARSE_CONTENT_TYPE Static method Public Method 20111014
6 PARSE_HEADER_ACCEPT Static method Public Method 20111014
7 PARSE_HTTP_DATE Static method Public Method Convert a HTTP Date into an ABAP Timestamp 20100708
8 PARSE_QUALITY_VALUE Static method Private Method 20111014
9 PARSE_TAGS Static method Public Method Parse a Comma separated List of Entity Tags into a Table 20100708
Events
Class /IWCOR/CL_REST_HTTP_UTILS has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 ACCEPT_S Public 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 Public See coding 20111014 accept_t TYPE STANDARD TABLE OF accept_s WITH DEFAULT KEY
3 CONTENT_TYPE_S Public 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 Public See coding 20111014 content_type_t TYPE STANDARD TABLE OF content_type_s WITH DEFAULT KEY
5 QUALITY Public See coding 20111014 quality TYPE p LENGTH 3 DECIMALS 3
Method Signatures

Method CLASS_CONSTRUCTOR Signature

Method CLASS_CONSTRUCTOR on class /IWCOR/CL_REST_HTTP_UTILS has no parameter.
Method CLASS_CONSTRUCTOR on class /IWCOR/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 Importing IV_TIMESTAMP Call by reference Type reference (TYPE) TIMESTAMP ABAP Timestamp 20100708
2 Returning RV_HTTP_DATE Value transfer Type reference (TYPE) STRING Date formatted for HTTP usage 20100708

Method FORMAT_HTTP_DATE on class /IWCOR/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 Importing IS_TAG Call by reference Type reference (TYPE) /IWCOR/REST_ETAG_S List of Tags 20100708
2 Returning RV_ETAG Value transfer Type reference (TYPE) STRING String with comma separated Tags 20100708

Method FORMAT_TAG on class /IWCOR/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 Importing IT_SUPPORTED_CONTENT_TYPE Call by reference Type reference (TYPE) STRING_TABLE 20111014
2 Importing IV_HEADER_ACCEPT Call by reference Type reference (TYPE) STRING 20111014
3 Returning RV_CONTENT_TYPE Value transfer Type reference (TYPE) STRING 20111014
# Exception Resumable Description Created on
1 /IWCOR/CX_REST_PARSER_ERROR 20111014

Method PARSE_CONTENT_TYPE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_PARAMETER Call by reference Type reference (TYPE) STRING 20111014
2 Exporting EV_PARAMETER_NUMBER Call by reference Type reference (TYPE) I 20111014
3 Exporting EV_SUBTYPE Call by reference Type reference (TYPE) STRING 20111014
4 Exporting EV_TYPE Call by reference Type reference (TYPE) STRING 20111014
5 Importing IV_MEDIA_RANGE Call by reference Type reference (TYPE) STRING 20111014
# Exception Resumable Description Created on
1 /IWCOR/CX_REST_PARSER_ERROR 20111014

Method PARSE_HEADER_ACCEPT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ACCEPT Call by reference Type reference (TYPE) ACCEPT_T 20111014
2 Importing IV_HEADER_ACCEPT Call by reference Type reference (TYPE) STRING 20111014
# Exception Resumable Description Created on
1 /IWCOR/CX_REST_PARSER_ERROR 20111014

Method PARSE_HTTP_DATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_HTTP_DATE Call by reference Type reference (TYPE) STRING Date formatted for HTTP usage 20100708
2 Returning RV_TIMESTAMP Value transfer Type reference (TYPE) TIMESTAMP ABAP Timestamp 20100708

Method PARSE_HTTP_DATE on class /IWCOR/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 Importing IV_QUALITY Call by reference Type reference (TYPE) STRING 20111014
2 Returning RV_QUALITY Value transfer Type reference (TYPE) QUALITY 20111014
# Exception Resumable Description Created on
1 /IWCOR/CX_REST_PARSER_ERROR 20111014

Method PARSE_TAGS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_TAGS Call by reference Type reference (TYPE) STRING String with comma separated Tags 20100708
2 Returning RT_TAGS Value transfer Type reference (TYPE) /IWCOR/REST_ETAG_T List of Tags 20100708

Method PARSE_TAGS on class /IWCOR/CL_REST_HTTP_UTILS has no exception.
History
Last changed by/on SAP  20141120 
SAP Release Created in 100