Java Code Examples for org.owasp.encoder.Encode#forUri()

The following examples show how to use org.owasp.encoder.Encode#forUri() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ForUriTag.java    From owasp-java-encoder with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Override
public void doTag() throws JspException, IOException {
    Encode.forUri(getJspContext().getOut(), _value);
}
 
Example 2
Source File: ESAPIEncoder.java    From owasp-java-encoder with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
/** {@inheritDoc} */
public String encodeForURL(String s) throws EncodingException {
    return Encode.forUri(s);
}
 
Example 3
Source File: EncodeHostObject.java    From carbon-apimgt with Apache License 2.0 4 votes vote down vote up
public static String jsFunction_forUri(Context cx, Scriptable thisObj, Object[] args, Function funObj)
        throws APIManagementException{
    return Encode.forUri(validateInput(args));
}