Package com.mparticle.networking
Class MPUrl
- java.lang.Object
-
- com.mparticle.networking.MPUrl
-
public abstract class MPUrl extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MPUrl()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.String
getAuthority()
MPUrl
getDefaultUrl()
returns an instance of the Default URL, if NetworkOptions is being used to override it.abstract java.lang.String
getFile()
abstract java.lang.String
getPath()
static MPUrl
getUrl(java.lang.String url, MPUrl defaultUrl)
abstract MPConnection
openConnection()
java.lang.String
toString()
-
-
-
Method Detail
-
getUrl
public static MPUrl getUrl(java.lang.String url, @Nullable MPUrl defaultUrl) throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
openConnection
public abstract MPConnection openConnection() throws java.io.IOException
- Throws:
java.io.IOException
-
getFile
public abstract java.lang.String getFile()
-
getAuthority
public abstract java.lang.String getAuthority()
-
getPath
public abstract java.lang.String getPath()
-
getDefaultUrl
@NonNull public MPUrl getDefaultUrl()
returns an instance of the Default URL, if NetworkOptions is being used to override it. Otherwise, a reference to itself will be returned- Returns:
- an MPUrl instance with the the default URL
-
-