public class

CompleteURLEncoder

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.util.CompleteURLEncoder

Class Overview

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.

Summary

Constants
String FILE_PROTOCOL
Fields
public static final Logger log
Public Constructors
CompleteURLEncoder()
Public Methods
static String encode(String urlString, String enc)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String FILE_PROTOCOL

Constant Value: "file"

Fields

public static final Logger log

Public Constructors

public CompleteURLEncoder ()

Public Methods

public static String encode (String urlString, String enc)