| java.lang.Object org.kuali.core.util.UrlFactory
UrlFactory | public class UrlFactory (Code) | | This class Provides utility methods for re/building URLs.
|
buildDocumentActionUrl | public static String buildDocumentActionUrl(String documentTypeName, Properties urlParams)(Code) | | Constructs a document action URL from the given documentTypeName, with the given Properties as URL parameters.
Parameters: documentTypeName - Parameters: urlParams - document action URL |
parameterizeUrl | public static String parameterizeUrl(String baseUrl, Properties params)(Code) | | Creates a new URL by taking the given URL and appending the parameter names and values from the given Properties instance to
it. Note: parameter names must be non-blank; parameter values must be non-null.
Parameters: baseUrl - the URL string used as the basis for reconstruction Parameters: params - Properties instance containing the desired parameters and their values throws: IllegalArgumentException - if the given url is null or empty throws: IllegalArgumentException - if the given Properties instance is null throws: IllegalArgumentException - if a parameter name is null or empty, or a parameter value is null throws: RuntimeException - if there is a problem encoding a parameter name or value into UTF-8 a newly-constructed URL string which has the given parameters and their values appended to it |
|
|