|
Graphene Implementation 1.0.0.CR3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.arquillian.ajocado.utils.URLUtils
public final class URLUtils
Provides URL manipulations and functionality.
Method Summary | |
---|---|
static URL |
buildUrl(String context,
String... relocations)
Use URL context and one or more relocations to build end URL. |
static URL |
buildUrl(URL context,
String... relocations)
Use URL context and one or more relocations to build end URL. |
static String |
encodeBase64Credentials(String username,
String password)
Encodes credentials using Base64 encoding, which can be used to build a header for HTTP Basic authorization |
static String |
resourceMd5Digest(String url)
Gets a MD5 digest of some resource obtains as input stream from connection to URL given by URL string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static URL buildUrl(String context, String... relocations)
context
- first URL used like a context root for all relocation changesrelocations
- array of relocation URLs
AssertionError
- when context or some of relocations are malformed URLspublic static URL buildUrl(URL context, String... relocations)
context
- first URL used like a context root for all relocation changesrelocations
- array of relocation URLs
AssertionError
- when context or some of relocations are malformed URLspublic static String resourceMd5Digest(String url) throws IOException
url
- of the resource
IOException
- when connection to URL failspublic static String encodeBase64Credentials(String username, String password)
username
- User name to be encodedpassword
- Password to be encoded
username:password
encoded with Base64
|
Graphene Implementation 1.0.0.CR3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |