SAP ABAP Class /UI2/CL_NWBC_UTILITY (NWBC - Utility Functions)
Hierarchy
SAP_UI (Software Component) User Interface Technology
   CA-UI2-INT-BE (Application Component) Backend Enablement
     /UI2/NWBC_CORE (Package) NetWeaver Business Client - Core Functionality
Properties
Class /UI2/CL_NWBC_UTILITY  
Short Description NWBC - Utility Functions    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package /UI2/NWBC_CORE   NetWeaver Business Client - Core Functionality 
Created 20120822   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
Class /UI2/CL_NWBC_UTILITY has no interface implemented.
Friends
Class /UI2/CL_NWBC_UTILITY has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GV_DAY_STRING Static Attribute Private Type reference (TYPE) STRING 20120822
2 GV_LAST_DATE Static Attribute Private Type reference (TYPE) D 20120822
3 GV_MONTH_STRING Static Attribute Private Type reference (TYPE) STRING 20120822
4 GV_NEW_ESCAPING Static Attribute Private Type reference (TYPE) ABAP_BOOL ABAP_FALSE If true, new escaping should be used 20120905
5 MC_NAME_VALUE_SEPARATOR Constant Private Type reference (TYPE) STRING '=' Name/Value separator 20120822
6 MC_PARAM_SEPARATOR Constant Private Type reference (TYPE) STRING '&' Parameter separator 20120822
7 MC_QUERY_SEPARATOR Constant Private Type reference (TYPE) STRING '?' Query/paeamaters separator 20120822
Methods
# Method Level Visibility Method type Description Created on
1 CLASS_CONSTRUCTOR Static method Public Constructor CLASS_CONSTRUCTOR 20120905
2 ESCAPE_ATTRIBUTE Static method Public Method Executes HTML Escaping on a attribute string 20120822
3 ESCAPE_CSS Static method Public Method Executes CSS Escaping on a String 20130201
4 ESCAPE_HTML Static method Public Method Executes HTML Escaping on a String 20120822
5 ESCAPE_JAVASCRIPT Static method Public Method Executes Javascript Escaping on String 20120822
6 ESCAPE_JSON_STRING Static method Public Method Escapes a JSON String 20120822
7 ESCAPE_URL Static method Public Method Executes URL Escaping on a String 20120822
8 FIELDS_TO_STRING Static method Public Method Encodes a List of Fields as a Query String 20120822
9 GET_BOOL Static method Public Method Returns ABAP_BOOL representation of value 20130418
10 GET_HTTP_DATE Static method Public Method Get HTTP formatted date 20120822
11 SPLIT_VALUE_PAIRS_STRING Static method Public Method Decodes a Query String into a List of Fields 20130418
12 STRING_TO_FIELDS Static method Public Method Decodes a Query String into a List of Fields 20120822
13 TO_MD5 Static method Public Method Creates md5 key out of the string 20140425
14 UNESCAPE_URL Static method Public Method Pair function to ESCAPE_URL for decoding of url 20120822
Events
Class /UI2/CL_NWBC_UTILITY has no event.
Types
Class /UI2/CL_NWBC_UTILITY has no local type.
Method Signatures

Method CLASS_CONSTRUCTOR Signature

Method CLASS_CONSTRUCTOR on class /UI2/CL_NWBC_UTILITY has no parameter.
Method CLASS_CONSTRUCTOR on class /UI2/CL_NWBC_UTILITY has no exception.

Method ESCAPE_ATTRIBUTE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_UNESCAPED Call by reference Type reference (TYPE) STRING Unencoded String 20120822
2 Returning RV_ESCAPED Value transfer Type reference (TYPE) STRING HTML-Encoded attribute string 20120822

Method ESCAPE_ATTRIBUTE on class /UI2/CL_NWBC_UTILITY has no exception.

Method ESCAPE_CSS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_UNESCAPED Call by reference Type reference (TYPE) STRING Unencoded String 20130201
2 Returning RV_ESCAPED Value transfer Type reference (TYPE) STRING CSS-Encoded String 20130201

Method ESCAPE_CSS on class /UI2/CL_NWBC_UTILITY has no exception.

Method ESCAPE_HTML Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_UNESCAPED Call by reference Type reference (TYPE) STRING Unencoded String 20120822
2 Returning RV_ESCAPED Value transfer Type reference (TYPE) STRING HTML-Encoded String 20120822

Method ESCAPE_HTML on class /UI2/CL_NWBC_UTILITY has no exception.

Method ESCAPE_JAVASCRIPT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_UNESCAPED Call by reference Type reference (TYPE) STRING 20120822
2 Returning RV_ESCAPED Value transfer Type reference (TYPE) STRING 20120822

Method ESCAPE_JAVASCRIPT on class /UI2/CL_NWBC_UTILITY has no exception.

Method ESCAPE_JSON_STRING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CV_STRING Call by reference Type reference (TYPE) STRING 20120822

Method ESCAPE_JSON_STRING on class /UI2/CL_NWBC_UTILITY has no exception.

Method ESCAPE_URL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_UNESCAPED Call by reference Type reference (TYPE) STRING Unencoded String 20120822
2 Returning RV_ESCAPED Value transfer Type reference (TYPE) STRING URL-Encoded String 20120822

Method ESCAPE_URL on class /UI2/CL_NWBC_UTILITY has no exception.

Method FIELDS_TO_STRING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_FIELDS Call by reference Type reference (TYPE) TIHTTPNVP Table with Name/Value Pairs 20120822
2 Importing IV_ENCODE_NAMES Call by reference Type reference (TYPE) BOOLE_D ABAP_TRUE Encode not only values but also names 20140813
3 Importing IV_QUERY Call by reference Type reference (TYPE) CSEQUENCE Existing Query String to append 20130117
4 Returning RV_STRING Value transfer Type reference (TYPE) STRING Query String 20120822

Method FIELDS_TO_STRING on class /UI2/CL_NWBC_UTILITY has no exception.

Method GET_BOOL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_STRING Call by reference Type reference (TYPE) CSEQUENCE 20130418
2 Returning RV_BOOL Value transfer Type reference (TYPE) ABAP_BOOL 20130418

Method GET_BOOL on class /UI2/CL_NWBC_UTILITY has no exception.

Method GET_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 UTC Time Stamp in Short Form (YYYYMMDDhhmmss) 20120822
2 Returning RV_DATE Value transfer Type reference (TYPE) STRING 20120822

Method GET_HTTP_DATE on class /UI2/CL_NWBC_UTILITY has no exception.

Method SPLIT_VALUE_PAIRS_STRING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_FIELDS Call by reference Type reference (TYPE) TIHTTPNVP HTTP Framework (iHTTP) Table Name/Value Pairs 20130418
2 Importing IV_CASE_SENSITIVE Call by reference Type reference (TYPE) ABAP_BOOL ABAP_TRUE 20130418
3 Importing IV_CONDENSE Call by reference Type reference (TYPE) ABAP_BOOL ABAP_TRUE 20130418
4 Importing IV_DECODE_NAMES Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE 20130418
5 Importing IV_DECODE_VALUES Call by reference Type reference (TYPE) ABAP_BOOL ABAP_TRUE 20130418
6 Importing IV_NAME_VALUE_SEPARATOR Call by reference Type reference (TYPE) CSEQUENCE '=' 20130418
7 Importing IV_PAIR_SEPARATOR Call by reference Type reference (TYPE) CSEQUENCE '&' 20130418
8 Importing IV_STRING Call by reference Type reference (TYPE) STRING 20130418
9 Importing IV_UNIQUE Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE 20130418

Method SPLIT_VALUE_PAIRS_STRING on class /UI2/CL_NWBC_UTILITY has no exception.

Method STRING_TO_FIELDS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_FIELDS Call by reference Type reference (TYPE) TIHTTPNVP Table with Name/Value Pairs 20120822
2 Importing IV_DECODE_NAMES Call by reference Type reference (TYPE) ABAP_BOOL ABAP_TRUE Decode not only values but also names 20120822
3 Importing IV_STRING Call by reference Type reference (TYPE) STRING Encoded Query String 20120822

Method STRING_TO_FIELDS on class /UI2/CL_NWBC_UTILITY has no exception.

Method TO_MD5 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_LENGTH Call by reference Type reference (TYPE) I 0 String length to be involved in calculation 20140425
2 Importing IV_VALUE Call by reference Type reference (TYPE) STRING Input string 20140425
3 Returning RV_RESULT Value transfer Type reference (TYPE) STRING Caluclated MD5 hash key 20140425

Method TO_MD5 on class /UI2/CL_NWBC_UTILITY has no exception.

Method UNESCAPE_URL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_ESCAPED Call by reference Type reference (TYPE) STRING URL-Encoded String 20120822
2 Returning RV_UNESCAPED Value transfer Type reference (TYPE) STRING Decoded string 20120822

Method UNESCAPE_URL on class /UI2/CL_NWBC_UTILITY has no exception.
History
Last changed by/on SAP  20141120 
SAP Release Created in 100