|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.util.UrlUtils
public class UrlUtils
Method Summary | |
---|---|
static java.lang.String |
appendSlashIfDoesntExist(java.lang.String theString)
Checks whether or not the given string has a '/' character as the last character, and appends one if it doesn't |
static java.lang.String |
correctlyFormatUrl(java.lang.String host)
|
static java.lang.String |
prependSlashIfDoesntExist(java.lang.String theString)
Checks whether or not the given string has a '/' character as the first character, and puts one in if it doesn't |
static java.lang.String |
replaceOrInsertParamValue(java.lang.String queryString,
java.lang.String newParamValue)
|
static java.lang.String |
replacePlanResultKeyInUrl(java.lang.String url,
PlanKey planKey,
int newBuildNumber)
|
static java.lang.String |
sanitizeUri(java.lang.String uri)
Removes XSS related characters from URI: backslash, double and single quotes, angle brackets. |
static java.lang.String |
stripLeadingSlashes(java.lang.String toStrip)
Strips any leading '/' characters off the front of the string, if any. |
static java.lang.String |
stripTailingSlashes(java.lang.String toStrip)
Strips any leading '/' characters off the end of the string, if any. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
@NotNull public static java.lang.String sanitizeUri(@NotNull java.lang.String uri)
uri
-
@Nullable public static java.lang.String replaceOrInsertParamValue(java.lang.String queryString, java.lang.String newParamValue)
public static java.lang.String replacePlanResultKeyInUrl(java.lang.String url, PlanKey planKey, int newBuildNumber)
public static java.lang.String correctlyFormatUrl(java.lang.String host)
@NotNull public static java.lang.String stripLeadingSlashes(@Nullable java.lang.String toStrip)
toStrip
- - the string to strip
@NotNull public static java.lang.String stripTailingSlashes(@Nullable java.lang.String toStrip)
toStrip
- - the string to strip
@NotNull public static java.lang.String appendSlashIfDoesntExist(@Nullable java.lang.String theString)
theString
- to check and append.
@NotNull public static java.lang.String prependSlashIfDoesntExist(@Nullable java.lang.String theString)
theString
- to check and prepend.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |