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 | ![]() |
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 | ![]() |
Static Attribute | Private | Type reference (TYPE) | STRING | 20120822 | |||
2 | ![]() |
Static Attribute | Private | Type reference (TYPE) | D | 20120822 | |||
3 | ![]() |
Static Attribute | Private | Type reference (TYPE) | STRING | 20120822 | |||
4 | ![]() |
Static Attribute | Private | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | If true, new escaping should be used | 20120905 | |
5 | ![]() |
Constant | Private | Type reference (TYPE) | STRING | '=' | Name/Value separator | 20120822 | |
6 | ![]() |
Constant | Private | Type reference (TYPE) | STRING | '&' | Parameter separator | 20120822 | |
7 | ![]() |
Constant | Private | Type reference (TYPE) | STRING | '?' | Query/paeamaters separator | 20120822 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | ![]() |
Static method | Public | Constructor | CLASS_CONSTRUCTOR | 20120905 |
2 | ![]() |
Static method | Public | Method | Executes HTML Escaping on a attribute string | 20120822 |
3 | ![]() |
Static method | Public | Method | Executes CSS Escaping on a String | 20130201 |
4 | ![]() |
Static method | Public | Method | Executes HTML Escaping on a String | 20120822 |
5 | ![]() |
Static method | Public | Method | Executes Javascript Escaping on String | 20120822 |
6 | ![]() |
Static method | Public | Method | Escapes a JSON String | 20120822 |
7 | ![]() |
Static method | Public | Method | Executes URL Escaping on a String | 20120822 |
8 | ![]() |
Static method | Public | Method | Encodes a List of Fields as a Query String | 20120822 |
9 | ![]() |
Static method | Public | Method | Returns ABAP_BOOL representation of value | 20130418 |
10 | ![]() |
Static method | Public | Method | Get HTTP formatted date | 20120822 |
11 | ![]() |
Static method | Public | Method | Decodes a Query String into a List of Fields | 20130418 |
12 | ![]() |
Static method | Public | Method | Decodes a Query String into a List of Fields | 20120822 |
13 | ![]() |
Static method | Public | Method | Creates md5 key out of the string | 20140425 |
14 | ![]() |
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 | ![]() |
IV_UNESCAPED | Call by reference | Type reference (TYPE) | STRING | Unencoded String | 20120822 | ||
2 | ![]() |
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 | ![]() |
IV_UNESCAPED | Call by reference | Type reference (TYPE) | STRING | Unencoded String | 20130201 | ||
2 | ![]() |
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 | ![]() |
IV_UNESCAPED | Call by reference | Type reference (TYPE) | STRING | Unencoded String | 20120822 | ||
2 | ![]() |
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 | ![]() |
IV_UNESCAPED | Call by reference | Type reference (TYPE) | STRING | 20120822 | |||
2 | ![]() |
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 | ![]() |
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 | ![]() |
IV_UNESCAPED | Call by reference | Type reference (TYPE) | STRING | Unencoded String | 20120822 | ||
2 | ![]() |
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 | ![]() |
IT_FIELDS | Call by reference | Type reference (TYPE) | TIHTTPNVP | Table with Name/Value Pairs | 20120822 | ||
2 | ![]() |
IV_ENCODE_NAMES | Call by reference | Type reference (TYPE) | BOOLE_D | ABAP_TRUE | Encode not only values but also names | 20140813 | |
3 | ![]() |
IV_QUERY | Call by reference | Type reference (TYPE) | CSEQUENCE | Existing Query String to append | 20130117 | ||
4 | ![]() |
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 | ![]() |
IV_STRING | Call by reference | Type reference (TYPE) | CSEQUENCE | 20130418 | |||
2 | ![]() |
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 | ![]() |
IV_TIMESTAMP | Call by reference | Type reference (TYPE) | TIMESTAMP | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | 20120822 | ||
2 | ![]() |
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 | ![]() |
ET_FIELDS | Call by reference | Type reference (TYPE) | TIHTTPNVP | HTTP Framework (iHTTP) Table Name/Value Pairs | 20130418 | ||
2 | ![]() |
IV_CASE_SENSITIVE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | 20130418 | ||
3 | ![]() |
IV_CONDENSE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | 20130418 | ||
4 | ![]() |
IV_DECODE_NAMES | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20130418 | ||
5 | ![]() |
IV_DECODE_VALUES | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | 20130418 | ||
6 | ![]() |
IV_NAME_VALUE_SEPARATOR | Call by reference | Type reference (TYPE) | CSEQUENCE | '=' | 20130418 | ||
7 | ![]() |
IV_PAIR_SEPARATOR | Call by reference | Type reference (TYPE) | CSEQUENCE | '&' | 20130418 | ||
8 | ![]() |
IV_STRING | Call by reference | Type reference (TYPE) | STRING | 20130418 | |||
9 | ![]() |
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 | ![]() |
ET_FIELDS | Call by reference | Type reference (TYPE) | TIHTTPNVP | Table with Name/Value Pairs | 20120822 | ||
2 | ![]() |
IV_DECODE_NAMES | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | Decode not only values but also names | 20120822 | |
3 | ![]() |
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 | ![]() |
IV_LENGTH | Call by reference | Type reference (TYPE) | I | 0 | String length to be involved in calculation | 20140425 | |
2 | ![]() |
IV_VALUE | Call by reference | Type reference (TYPE) | STRING | Input string | 20140425 | ||
3 | ![]() |
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 | ![]() |
IV_ESCAPED | Call by reference | Type reference (TYPE) | STRING | URL-Encoded String | 20120822 | ||
2 | ![]() |
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 |