com.atlassian.confluence.util
Class CompleteURLEncoder
java.lang.Object
com.atlassian.confluence.util.CompleteURLEncoder
public class CompleteURLEncoder
- extends Object
This class caters for encoding of url strings for the following protocols: - file - http (see RFC 2396 for
reference)
The url strings passed in are converted into Java URI objects as it automatically does the encoding. Note we cannot
simply use Java's URLEncoder as it is only for HTML form encoding and does not cater for the entire url.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
@Deprecated
public static final org.apache.log4j.Logger log
- Deprecated.
FILE_PROTOCOL
public static final String FILE_PROTOCOL
- See Also:
- Constant Field Values
CompleteURLEncoder
public CompleteURLEncoder()
encode
public static String encode(String urlString,
String enc)
throws MalformedURLException,
UnsupportedEncodingException
- Throws:
MalformedURLException
UnsupportedEncodingException
Copyright © 2003-2013 Atlassian. All Rights Reserved.