|
SAP NetWeaver 7.31 Enterprise Portal (SP 16) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.portal.prt.util.DeprecatedStringUtils
public class DeprecatedStringUtils
This Class was created to delegate all portal internal usages of StringUtils to the new com.sap.security.core.server.csi.XSSEncode Do not use it in any future development
Most of the methods of this class are depreciated. Please use the class XSSEncoder for encoding / escaping according the SAP XSS Secure Programming Guide
XSSEncoder| Field Summary | |
|---|---|
protected static StringBufferPool |
BUFFER_POOL_URLS
Deprecated. |
protected static int |
URL_SIZE
Deprecated. |
| Constructor Summary | |
|---|---|
DeprecatedStringUtils()
Deprecated. |
|
| Method Summary | |
|---|---|
static String |
escapeScriptEndTag(String pStr)
Deprecated. Use the class XSSEncoder instead |
static String |
escapeToAttributeValue(String input)
Deprecated. Use the class XSSEncoder method encodeHTML instead |
static String |
escapeToAttributeValue(String input,
int maxLength)
Deprecated. Use the class XSSEncoder method encodeHTML instead |
static String |
escapeToHTML(String input)
Deprecated. Use the class XSSEncoder method encodeHTML instead |
static String |
escapeToHTML(String input,
int maxLength)
Deprecated. Use the class XSSEncoder method encodeHTML instead |
static String |
escapeToJS(String input)
Deprecated. Use the class XSSEncoder method encodeJavaScript instead |
static String |
escapeToJS(String input,
int maxLength)
Deprecated. Use the class XSSEncoder method encodeJavaScript instead |
static String |
escapeToURL(String input)
Deprecated. Use the class XSSEncoder method encodeHTML instead |
static String |
escapeToURL(String input,
int maxLength)
Deprecated. Use the class XSSEncoder method encodeHTML instead |
static String |
urlEncode(String s)
Deprecated. Use the class XSSEncoder method encodeURL instead |
static String |
urlEncode(String s,
char[] forceEncode)
Deprecated. Use the class XSSEncoder method encodeURL instead |
static SharedString |
urlEncodeShared(String s,
char[] forceEncode)
Deprecated. Use the class XSSEncoder method encodeURL instead |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static StringBufferPool BUFFER_POOL_URLS
protected static int URL_SIZE
| Constructor Detail |
|---|
public DeprecatedStringUtils()
| Method Detail |
|---|
public static String escapeToJS(String input)
input - The string to parse.
public static String escapeToJS(String input,
int maxLength)
input - The string to parse.maxLength - The maximum length the String input SHOULD havepublic static String escapeToHTML(String input)
input - The string to parse.
public static String escapeToHTML(String input,
int maxLength)
input - The string to parse.maxLength - The maximum length the String input SHOULD havepublic static String escapeToAttributeValue(String input)
input - The string to parse.
public static String escapeToAttributeValue(String input,
int maxLength)
input - The string to parse.maxLength - The maximum length the String input SHOULD havepublic static String escapeToURL(String input)
input - The string to parse.
public static String escapeToURL(String input,
int maxLength)
input - The string to parse.maxLength - The maximum length the String input SHOULD havepublic static String escapeScriptEndTag(String pStr)
pStr - input The string to parse.
public static String urlEncode(String s,
char[] forceEncode)
s - The String to be encodedforceEncode - An array of chars that are to be encoded
explicitly. Note: forceEncode should NOT contain digits nor
the percent sign!!public static String urlEncode(String s)
s - The String to be encoded
public static SharedString urlEncodeShared(String s,
char[] forceEncode)
s - The Shared String to be encoded.
forceEncode - An array of chars that are to be encoded
explicitly. Note: forceEncode should NOT contain digits nor
the percent sign!!| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com]
|
default
|
EP-PIN-PRT
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/api
|
api
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/lib/api
|
api
|
EP-PIN
|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/semantics/api
|
api
|
EP-PIN
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
|
SAP NetWeaver 7.31 Enterprise Portal (SP 16) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||