AeroGear Android Library 1.2.1

org.jboss.aerogear.android.impl.util
Class UrlUtils

java.lang.Object
  extended by org.jboss.aerogear.android.impl.util.UrlUtils

public final class UrlUtils
extends Object


Method Summary
static URL appendQueryToBaseURL(URL baseURL, String query)
          Append the base url with the query.
static URL appendToBaseURL(URL baseURL, String endpoint)
          Append the base url with endpoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

appendToBaseURL

public static URL appendToBaseURL(URL baseURL,
                                  String endpoint)
Append the base url with endpoint

Parameters:
baseURL -
endpoint -
Returns:
a new url baseUrl + endpoint
Throws:
IllegalArgumentException - if baseUrl+endpoint is not a real url.

appendQueryToBaseURL

public static URL appendQueryToBaseURL(URL baseURL,
                                       String query)
Append the base url with the query.

Parameters:
baseURL -
query -
Returns:
a new url baseUrl + endpoint
Throws:
IllegalArgumentException - if baseUrl+endpoint is not a real url.

AeroGear Android Library 1.2.1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.