public class URLUtils extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
URLUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
addParameterToURL(String url,
String paramName,
String paramValue) |
static String |
addParameterToURL(String url,
String paramName,
String paramValue,
boolean useEncoding) |
static String |
addQueryStringToURL(String url,
Map<String,String[]> queryStringParams) |
static String |
addQueryStringToURL(String url,
Map<String,String[]> queryStringParams,
de.xima.cmn.filter.IGenericFilter<String> filter) |
static String |
addQueryStringToURL(String url,
String queryString) |
static String |
addQueryStringToURL(String url,
String queryString,
de.xima.cmn.filter.IGenericFilter<String> filter) |
static String |
changeScheme(String url,
String newScheme)
Changes the scheme of a URL (such as
https ) to the given schema. |
static String |
decrypt(String str)
Methode zum Entschlüsseln eines Strings
|
static String |
encrypt(String str)
Methode zum Verschlüsseln eines Strings
|
static Map<String,String[]> |
getUrlParameters(String queryString) |
static String |
removeParameter(String url,
String paramName) |
static String |
removeParameter(String url,
String paramName,
boolean useEncoding) |
static String |
setParameter(String url,
String paramName,
String paramValue) |
static String |
setParameter(String url,
String paramName,
String paramValue,
boolean useEncoding) |
public static String addParameterToURL(String url, String paramName, String paramValue)
public static String addParameterToURL(String url, String paramName, String paramValue, boolean useEncoding)
public static String setParameter(String url, String paramName, String paramValue, boolean useEncoding)
public static String changeScheme(String url, String newScheme)
https
) to the given schema.url
- URL to modify.newScheme
- New schema for the URL.public static String removeParameter(String url, String paramName, boolean useEncoding)
public static String addQueryStringToURL(String url, String queryString, de.xima.cmn.filter.IGenericFilter<String> filter)
public static String addQueryStringToURL(String url, Map<String,String[]> queryStringParams)
public static String addQueryStringToURL(String url, Map<String,String[]> queryStringParams, de.xima.cmn.filter.IGenericFilter<String> filter)
public static Map<String,String[]> getUrlParameters(String queryString) throws UnsupportedEncodingException
UnsupportedEncodingException
public static String encrypt(String str)
str
- String to encryptCopyright © 2021 XIMA MEDIA GmbH. All rights reserved.