public class ConnectionFactory
extends java.lang.Object
| Constructor and Description |
|---|
ConnectionFactory() |
| Modifier and Type | Method and Description |
|---|---|
java.net.HttpURLConnection |
attribution(java.lang.String writeKey)
Return a
HttpURLConnection that writes gets attribution information from https://mobile-service.segment.com/attribution. |
protected java.net.HttpURLConnection |
openConnection(java.lang.String url)
Configures defaults for connections opened with
upload(String), attribution(String) and projectSettings(String). |
java.net.HttpURLConnection |
projectSettings(java.lang.String writeKey)
Return a
HttpURLConnection that reads JSON formatted project settings. |
java.net.HttpURLConnection |
upload(java.lang.String writeKey)
Return a
HttpURLConnection that writes batched payloads to https://api.segment.io/v1/import. |
public java.net.HttpURLConnection projectSettings(java.lang.String writeKey)
throws java.io.IOException
HttpURLConnection that reads JSON formatted project settings.java.io.IOExceptionpublic java.net.HttpURLConnection upload(java.lang.String writeKey)
throws java.io.IOException
HttpURLConnection that writes batched payloads to https://api.segment.io/v1/import.java.io.IOExceptionpublic java.net.HttpURLConnection attribution(java.lang.String writeKey)
throws java.io.IOException
HttpURLConnection that writes gets attribution information from https://mobile-service.segment.com/attribution.java.io.IOExceptionprotected java.net.HttpURLConnection openConnection(java.lang.String url)
throws java.io.IOException
upload(String), attribution(String) and projectSettings(String).java.io.IOException