|
||||||||||
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 java.lang.String |
encodeForBase64(java.lang.String str)
Base64 encode a string. |
static java.lang.String |
encodeForBase64Charset(java.lang.String charset,
java.lang.String str)
Base64 encode a string after converting to bytes using the specified character set. |
static java.lang.String |
encodeForBase64CharsetWrap(java.lang.String charset,
java.lang.String str)
Base64 encode a string after converting to bytes using the specified character set and wrapping lines. |
static java.lang.String |
encodeForBase64Wrap(java.lang.String str)
Base64 encode a string with line wrapping. |
static java.lang.String |
encodeForCSS(java.lang.String str)
Encode string for use in CSS. |
static java.lang.String |
encodeForHTML(java.lang.String str)
Encode string for use in HTML. |
static java.lang.String |
encodeForHTMLAttribute(java.lang.String str)
Encode string for use in a HTML attribute. |
static java.lang.String |
encodeForJavaScript(java.lang.String str)
Encode string for use in JavaScript. |
static java.lang.String |
encodeForURL(java.lang.String str)
Encode string for use in a URL. |
static java.lang.String |
encodeForVBScript(java.lang.String str)
Encode string for use in VBScript. |
static java.lang.String |
encodeForXML(java.lang.String str)
Encode string for use in XML. |
static java.lang.String |
encodeForXMLAttribute(java.lang.String str)
Encode string for use in a XML attribute. |
static java.lang.String |
encodeForXPath(java.lang.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 java.lang.String encodeForBase64(java.lang.String str) throws java.io.UnsupportedEncodingException
str
- The string to encode.
java.io.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 java.lang.String encodeForBase64Wrap(java.lang.String str) throws java.io.UnsupportedEncodingException
str
- The string to encode.
java.io.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 java.lang.String encodeForBase64Charset(java.lang.String charset, java.lang.String str) throws java.io.UnsupportedEncodingException
charset
- The character set used to convert str to bytes.str
- The string to encode.
java.io.UnsupportedEncodingException
- if charset is an unsupported character set.Encoder.encodeForBase64(byte[],boolean)
public static java.lang.String encodeForBase64CharsetWrap(java.lang.String charset, java.lang.String str) throws java.io.UnsupportedEncodingException
charset
- The character set used to convert str to bytes.str
- The string to encode.
java.io.UnsupportedEncodingException
- if charset is an unsupported character set.Encoder.encodeForBase64(byte[],boolean)
public static java.lang.String encodeForCSS(java.lang.String str)
str
- The string to encode.
Encoder.encodeForCSS(String)
public static java.lang.String encodeForHTML(java.lang.String str)
str
- The string to encode.
Encoder.encodeForHTML(String)
public static java.lang.String encodeForHTMLAttribute(java.lang.String str)
str
- The string to encode.
Encoder.encodeForHTMLAttribute(String)
public static java.lang.String encodeForJavaScript(java.lang.String str)
str
- The string to encode.
Encoder.encodeForJavaScript(String)
public static java.lang.String encodeForURL(java.lang.String str) throws EncodingException
str
- The string to encode.
EncodingException
Encoder.encodeForURL(String)
public static java.lang.String encodeForVBScript(java.lang.String str)
str
- The string to encode.
Encoder.encodeForVBScript(String)
public static java.lang.String encodeForXML(java.lang.String str)
str
- The string to encode.
Encoder.encodeForXML(String)
public static java.lang.String encodeForXMLAttribute(java.lang.String str)
str
- The string to encode.
Encoder.encodeForXMLAttribute(String)
public static java.lang.String encodeForXPath(java.lang.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 |