|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.owasp.esapi.tags.ELEncodeFunctions
public class ELEncodeFunctions
Static encoder methods for JSP EL expression functions.
Method Summary | |
---|---|
static String |
encodeForBase64(String str)
Base64 encode a string. |
static String |
encodeForBase64Charset(String charset,
String str)
Base64 encode a string after converting to bytes using the specified character set. |
static String |
encodeForBase64CharsetWrap(String charset,
String str)
Base64 encode a string after converting to bytes using the specified character set and wrapping lines. |
static String |
encodeForBase64Wrap(String str)
Base64 encode a string with line wrapping. |
static String |
encodeForCSS(String str)
Encode string for use in CSS. |
static String |
encodeForHTML(String str)
Encode string for use in HTML. |
static String |
encodeForHTMLAttribute(String str)
Encode string for use in a HTML attribute. |
static String |
encodeForJavaScript(String str)
Encode string for use in JavaScript. |
static String |
encodeForURL(String str)
Encode string for use in a URL. |
static String |
encodeForVBScript(String str)
Encode string for use in VBScript. |
static String |
encodeForXML(String str)
Encode string for use in XML. |
static String |
encodeForXMLAttribute(String str)
Encode string for use in a XML attribute. |
static String |
encodeForXPath(String str)
Encode string for use in XPath. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String encodeForBase64(String str) throws UnsupportedEncodingException
str
- The string to encode.
UnsupportedEncodingException
- if UTF-8 is an unsupported character set. This should not happen as UTF-8 is required to be supported by the JVM spec.Encoder.encodeForBase64(byte[],boolean)
public static String encodeForBase64Wrap(String str) throws UnsupportedEncodingException
str
- The string to encode.
UnsupportedEncodingException
- if UTF-8 is an unsupported character set. This should not happen as UTF-8 is required to be supported by the JVM spec.Encoder.encodeForBase64(byte[],boolean)
public static String encodeForBase64Charset(String charset, String str) throws UnsupportedEncodingException
charset
- The character set used to convert str to bytes.str
- The string to encode.
UnsupportedEncodingException
- if charset is an unsupported character set.Encoder.encodeForBase64(byte[],boolean)
public static String encodeForBase64CharsetWrap(String charset, String str) throws UnsupportedEncodingException
charset
- The character set used to convert str to bytes.str
- The string to encode.
UnsupportedEncodingException
- if charset is an unsupported character set.Encoder.encodeForBase64(byte[],boolean)
public static String encodeForCSS(String str)
str
- The string to encode.
Encoder.encodeForCSS(String)
public static String encodeForHTML(String str)
str
- The string to encode.
Encoder.encodeForHTML(String)
public static String encodeForHTMLAttribute(String str)
str
- The string to encode.
Encoder.encodeForHTMLAttribute(String)
public static String encodeForJavaScript(String str)
str
- The string to encode.
Encoder.encodeForJavaScript(String)
public static String encodeForURL(String str) throws EncodingException
str
- The string to encode.
EncodingException
Encoder.encodeForURL(String)
public static String encodeForVBScript(String str)
str
- The string to encode.
Encoder.encodeForVBScript(String)
public static String encodeForXML(String str)
str
- The string to encode.
Encoder.encodeForXML(String)
public static String encodeForXMLAttribute(String str)
str
- The string to encode.
Encoder.encodeForXMLAttribute(String)
public static String encodeForXPath(String str)
str
- The string to encode.
Encoder.encodeForXPath(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |