Package com.mparticle.networking
Interface MPConnection
-
public interface MPConnection
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.InputStreamgetErrorStream()java.lang.StringgetHeaderField(java.lang.String key)java.util.Map<java.lang.String,java.util.List<java.lang.String>>getHeaderFields()java.io.InputStreamgetInputStream()java.io.OutputStreamgetOutputStream()java.lang.StringgetRequestMethod()intgetResponseCode()java.lang.StringgetResponseMessage()javax.net.ssl.SSLSocketFactorygetSSLSocketFactory()MPUrlgetURL()booleanisHttps()voidsetConnectTimeout(java.lang.Integer timeout)voidsetDoOutput(java.lang.Boolean doOutput)voidsetReadTimeout(java.lang.Integer readTimeout)voidsetRequestMethod(java.lang.String method)voidsetRequestProperty(java.lang.String key, java.lang.String value)voidsetSSLSocketFactory(javax.net.ssl.SSLSocketFactory factory)
-
-
-
Method Detail
-
isHttps
boolean isHttps()
-
setRequestMethod
void setRequestMethod(java.lang.String method) throws java.net.ProtocolException- Throws:
java.net.ProtocolException
-
setDoOutput
void setDoOutput(java.lang.Boolean doOutput)
-
setConnectTimeout
void setConnectTimeout(java.lang.Integer timeout)
-
setReadTimeout
void setReadTimeout(java.lang.Integer readTimeout)
-
setRequestProperty
void setRequestProperty(java.lang.String key, java.lang.String value)
-
getURL
MPUrl getURL()
-
getRequestMethod
java.lang.String getRequestMethod()
-
getHeaderField
java.lang.String getHeaderField(java.lang.String key)
-
getHeaderFields
java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaderFields()
-
getOutputStream
java.io.OutputStream getOutputStream() throws java.io.IOException- Throws:
java.io.IOException
-
getInputStream
java.io.InputStream getInputStream() throws java.io.IOException- Throws:
java.io.IOException
-
getErrorStream
java.io.InputStream getErrorStream()
-
getResponseCode
int getResponseCode() throws java.io.IOException- Throws:
java.io.IOException
-
getResponseMessage
java.lang.String getResponseMessage() throws java.io.IOException- Throws:
java.io.IOException
-
setSSLSocketFactory
void setSSLSocketFactory(javax.net.ssl.SSLSocketFactory factory)
-
getSSLSocketFactory
javax.net.ssl.SSLSocketFactory getSSLSocketFactory()
-
-