Package com.mparticle.networking
Interface MPConnection
-
public interface MPConnection
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.InputStream
getErrorStream()
java.lang.String
getHeaderField(java.lang.String key)
java.util.Map<java.lang.String,java.util.List<java.lang.String>>
getHeaderFields()
java.io.InputStream
getInputStream()
java.io.OutputStream
getOutputStream()
java.lang.String
getRequestMethod()
int
getResponseCode()
java.lang.String
getResponseMessage()
javax.net.ssl.SSLSocketFactory
getSSLSocketFactory()
MPUrl
getURL()
boolean
isHttps()
void
setConnectTimeout(java.lang.Integer timeout)
void
setDoOutput(java.lang.Boolean doOutput)
void
setReadTimeout(java.lang.Integer readTimeout)
void
setRequestMethod(java.lang.String method)
void
setRequestProperty(java.lang.String key, java.lang.String value)
void
setSSLSocketFactory(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()
-
-