res_this
asked on
Substitute for org.apache.cocoon.Utils.encode
Is there any known substitute for the org.apache.cocoon Utils encode method .I am planning to remove cocoon and hence need a method which will do the same function
ASKER
Hi,
I found that the encode function encode(javax.servlet.http. HttpServle tRequest req, boolean agent)
encodes the given request into a string using the format userAgent:method:protocol: //serverNa me:serverP ort/reques tURI?query with the agent flag controlling the presence of the userAgent field.
Is there any non-cocoon API which does this?
Thanks
I found that the encode function encode(javax.servlet.http.
encodes the given request into a string using the format userAgent:method:protocol:
Is there any non-cocoon API which does this?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLEncoder.html
Alternatively, if it's more of a Base64 encoding or similar then try looking at the encoders provided along with Bouncy Castle.
http://www.bouncycastle.org/docs/docs1.4/org/bouncycastle/util/encoders/Base64.html
Hope this helps
JC