on 12-31-2015 6:57 AM
I have to encode an incoming url in payload
I am using this udf
public String encodeURL(String str, Container container) throws StreamTransformationException{
try {
return URLEncoder.encode(str, "UTF-8");
} catch (UnsupportedEncodingException e) {
return str;
}
My UDF title is encodeURL
Execution type single values
Under Signature variables
Type Argument Name str Java Type String
I am getting this error
cannot find Symbol
symbol : variable URLEncoder
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Midhun,
Have you imported the required jars in Message Mapping ?
Regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.