Package com.mparticle.networking
Class NetworkConnection
- java.lang.Object
-
- com.mparticle.networking.BaseNetworkConnection
-
- com.mparticle.networking.NetworkConnection
-
public class NetworkConnection extends BaseNetworkConnection
-
-
Field Summary
Fields Modifier and Type Field Description static int
HTTP_TOO_MANY_REQUESTS
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.io.OutputStream
getOutputStream(MPConnection connection)
protected javax.net.ssl.SSLSocketFactory
getSocketFactory(MParticleBaseClientImpl.Endpoint endpoint)
Custom socket factory used for certificate pinning.MPConnection
makeUrlRequest(MParticleBaseClientImpl.Endpoint endpoint, MPConnection connection, java.lang.String payload, boolean identity)
-
Methods inherited from class com.mparticle.networking.BaseNetworkConnection
setNextAllowedRequestTime, setNextRequestTime
-
-
-
-
Field Detail
-
HTTP_TOO_MANY_REQUESTS
public static final int HTTP_TOO_MANY_REQUESTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
makeUrlRequest
public MPConnection makeUrlRequest(MParticleBaseClientImpl.Endpoint endpoint, MPConnection connection, java.lang.String payload, boolean identity) throws java.io.IOException
- Specified by:
makeUrlRequest
in classBaseNetworkConnection
- Throws:
java.io.IOException
-
getOutputStream
protected java.io.OutputStream getOutputStream(MPConnection connection) throws java.io.IOException
- Throws:
java.io.IOException
-
getSocketFactory
protected javax.net.ssl.SSLSocketFactory getSocketFactory(MParticleBaseClientImpl.Endpoint endpoint) throws java.lang.Exception
Custom socket factory used for certificate pinning.- Throws:
java.lang.Exception
-
-