|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.microsoftopentechnologies.windowsazurestorage.helper.Utils
public class Utils
| Field Summary | |
|---|---|
static String |
DEF_BLOB_URL
|
static String |
FWD_SLASH
|
static String |
HTTP_PRT
|
static String |
PRT_SEP
|
static String |
TOKEN_FORMAT
|
static String |
VAL_CNT_NAME
|
| Constructor Summary | |
|---|---|
Utils()
|
|
| Method Summary | |
|---|---|
static boolean |
containTokens(String text)
This method checks if text contains tokens in the form of $TOKEN or ${TOKEN} |
static String |
getBlobEP(String storageAccName,
String blobURL)
Returns formatted blob end point in case if a non-default one is specified. |
static String |
getDefaultBlobURL()
Returns default blob url |
static boolean |
isNullOrEmpty(String name)
Utility method to check for null conditions or empty strings. |
static String |
removeTokens(String text)
This method find tokens in the form of $TOKEN or ${TOKEN} and removes them |
static String |
replaceTokens(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener,
String text)
Utility method to replace system environment variables in text |
static boolean |
validateContainerName(String containerName)
Checks for validity of container name after converting the input into lowercase. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String VAL_CNT_NAME
public static final String TOKEN_FORMAT
public static final String DEF_BLOB_URL
public static final String FWD_SLASH
public static final String HTTP_PRT
public static final String PRT_SEP
| Constructor Detail |
|---|
public Utils()
| Method Detail |
|---|
public static boolean validateContainerName(String containerName)
containerName - Name of the Windows Azure storage container
public static boolean isNullOrEmpty(String name)
name -
public static String replaceTokens(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener,
String text)
throws IOException,
InterruptedException
build - listener - text -
InterruptedException
IOExceptionpublic static String removeTokens(String text)
text - may contains tokens that are to be replaced
public static boolean containTokens(String text)
text -
public static String getBlobEP(String storageAccName,
String blobURL)
storageAccName - blobURL -
public static String getDefaultBlobURL()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||