public class SuperTokensCustomHttpURLConnection
extends java.net.HttpURLConnection
HTTP_ACCEPTED, HTTP_BAD_GATEWAY, HTTP_BAD_METHOD, HTTP_BAD_REQUEST, HTTP_CLIENT_TIMEOUT, HTTP_CONFLICT, HTTP_CREATED, HTTP_ENTITY_TOO_LARGE, HTTP_FORBIDDEN, HTTP_GATEWAY_TIMEOUT, HTTP_GONE, HTTP_INTERNAL_ERROR, HTTP_LENGTH_REQUIRED, HTTP_MOVED_PERM, HTTP_MOVED_TEMP, HTTP_MULT_CHOICE, HTTP_NO_CONTENT, HTTP_NOT_ACCEPTABLE, HTTP_NOT_AUTHORITATIVE, HTTP_NOT_FOUND, HTTP_NOT_IMPLEMENTED, HTTP_NOT_MODIFIED, HTTP_OK, HTTP_PARTIAL, HTTP_PAYMENT_REQUIRED, HTTP_PRECON_FAILED, HTTP_PROXY_AUTH, HTTP_REQ_TOO_LONG, HTTP_RESET, HTTP_SEE_OTHER, HTTP_SERVER_ERROR, HTTP_UNAUTHORIZED, HTTP_UNAVAILABLE, HTTP_UNSUPPORTED_TYPE, HTTP_USE_PROXY, HTTP_VERSION
Constructor and Description |
---|
SuperTokensCustomHttpURLConnection(java.net.HttpURLConnection original,
android.content.Context applicationContext) |
SuperTokensCustomHttpURLConnection(java.net.HttpURLConnection original,
android.content.Context applicationContext,
boolean wasAuthHeaderRemovedInitially) |
Modifier and Type | Method and Description |
---|---|
void |
addRequestProperty(java.lang.String key,
java.lang.String value) |
void |
connect() |
void |
disconnect() |
boolean |
getAllowUserInteraction() |
int |
getConnectTimeout() |
java.lang.Object |
getContent() |
java.lang.Object |
getContent(java.lang.Class[] classes) |
java.lang.String |
getContentEncoding() |
int |
getContentLength() |
long |
getContentLengthLong() |
java.lang.String |
getContentType() |
long |
getDate() |
boolean |
getDefaultUseCaches() |
boolean |
getDoInput() |
boolean |
getDoOutput() |
java.io.InputStream |
getErrorStream() |
long |
getExpiration() |
java.lang.String |
getHeaderField(int n) |
java.lang.String |
getHeaderField(java.lang.String name) |
long |
getHeaderFieldDate(java.lang.String name,
long Default) |
int |
getHeaderFieldInt(java.lang.String name,
int Default) |
java.lang.String |
getHeaderFieldKey(int n) |
long |
getHeaderFieldLong(java.lang.String name,
long Default) |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getHeaderFields() |
long |
getIfModifiedSince() |
java.io.InputStream |
getInputStream() |
boolean |
getInstanceFollowRedirects() |
long |
getLastModified() |
java.io.OutputStream |
getOutputStream() |
java.security.Permission |
getPermission() |
int |
getReadTimeout() |
java.lang.String |
getRequestMethod() |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getRequestProperties() |
java.lang.String |
getRequestProperty(java.lang.String key) |
int |
getResponseCode() |
java.lang.String |
getResponseMessage() |
java.net.URL |
getURL() |
boolean |
getUseCaches() |
boolean |
getWasAuthHeaderRemovedInitially() |
void |
setAllowUserInteraction(boolean allowuserinteraction) |
void |
setChunkedStreamingMode(int chunklen) |
void |
setConnectTimeout(int timeout) |
void |
setDefaultUseCaches(boolean defaultusecaches) |
void |
setDoInput(boolean doinput) |
void |
setDoOutput(boolean dooutput) |
void |
setFixedLengthStreamingMode(int contentLength) |
void |
setFixedLengthStreamingMode(long contentLength) |
void |
setIfModifiedSince(long ifmodifiedsince) |
void |
setInstanceFollowRedirects(boolean followRedirects) |
void |
setReadTimeout(int timeout) |
void |
setRequestMethod(java.lang.String method) |
void |
setRequestProperty(java.lang.String key,
java.lang.String value) |
void |
setRequestProperty(java.lang.String key,
java.lang.String value,
boolean force) |
void |
setRequestPropertyIgnoringOverride(java.lang.String key,
java.lang.String value) |
void |
setUseCaches(boolean usecaches) |
java.lang.String |
toString() |
boolean |
usingProxy() |
public SuperTokensCustomHttpURLConnection(java.net.HttpURLConnection original, android.content.Context applicationContext)
public SuperTokensCustomHttpURLConnection(java.net.HttpURLConnection original, android.content.Context applicationContext, boolean wasAuthHeaderRemovedInitially)
public boolean getWasAuthHeaderRemovedInitially()
public void disconnect()
disconnect
in class java.net.HttpURLConnection
public boolean usingProxy()
usingProxy
in class java.net.HttpURLConnection
public void connect() throws java.io.IOException
connect
in class java.net.URLConnection
java.io.IOException
public java.lang.String getHeaderFieldKey(int n)
getHeaderFieldKey
in class java.net.HttpURLConnection
public void setFixedLengthStreamingMode(int contentLength)
setFixedLengthStreamingMode
in class java.net.HttpURLConnection
public void setFixedLengthStreamingMode(long contentLength)
setFixedLengthStreamingMode
in class java.net.HttpURLConnection
public void setChunkedStreamingMode(int chunklen)
setChunkedStreamingMode
in class java.net.HttpURLConnection
public java.lang.String getHeaderField(int n)
getHeaderField
in class java.net.HttpURLConnection
public void setInstanceFollowRedirects(boolean followRedirects)
setInstanceFollowRedirects
in class java.net.HttpURLConnection
public boolean getInstanceFollowRedirects()
getInstanceFollowRedirects
in class java.net.HttpURLConnection
public void setRequestMethod(java.lang.String method) throws java.net.ProtocolException
setRequestMethod
in class java.net.HttpURLConnection
java.net.ProtocolException
public java.lang.String getRequestMethod()
getRequestMethod
in class java.net.HttpURLConnection
public int getResponseCode() throws java.io.IOException
getResponseCode
in class java.net.HttpURLConnection
java.io.IOException
public java.lang.String getResponseMessage() throws java.io.IOException
getResponseMessage
in class java.net.HttpURLConnection
java.io.IOException
public long getHeaderFieldDate(java.lang.String name, long Default)
getHeaderFieldDate
in class java.net.HttpURLConnection
public java.security.Permission getPermission() throws java.io.IOException
getPermission
in class java.net.HttpURLConnection
java.io.IOException
public java.io.InputStream getErrorStream()
getErrorStream
in class java.net.HttpURLConnection
public void setConnectTimeout(int timeout)
setConnectTimeout
in class java.net.URLConnection
public int getConnectTimeout()
getConnectTimeout
in class java.net.URLConnection
public void setReadTimeout(int timeout)
setReadTimeout
in class java.net.URLConnection
public int getReadTimeout()
getReadTimeout
in class java.net.URLConnection
public java.net.URL getURL()
getURL
in class java.net.URLConnection
public int getContentLength()
getContentLength
in class java.net.URLConnection
public long getContentLengthLong()
getContentLengthLong
in class java.net.URLConnection
public java.lang.String getContentType()
getContentType
in class java.net.URLConnection
public java.lang.String getContentEncoding()
getContentEncoding
in class java.net.URLConnection
public long getExpiration()
getExpiration
in class java.net.URLConnection
public long getDate()
getDate
in class java.net.URLConnection
public long getLastModified()
getLastModified
in class java.net.URLConnection
public java.lang.String getHeaderField(java.lang.String name)
getHeaderField
in class java.net.URLConnection
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaderFields()
getHeaderFields
in class java.net.URLConnection
public int getHeaderFieldInt(java.lang.String name, int Default)
getHeaderFieldInt
in class java.net.URLConnection
public long getHeaderFieldLong(java.lang.String name, long Default)
getHeaderFieldLong
in class java.net.URLConnection
public java.lang.Object getContent() throws java.io.IOException
getContent
in class java.net.URLConnection
java.io.IOException
public java.lang.Object getContent(java.lang.Class[] classes) throws java.io.IOException
getContent
in class java.net.URLConnection
java.io.IOException
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class java.net.URLConnection
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in class java.net.URLConnection
java.io.IOException
public java.lang.String toString()
toString
in class java.net.URLConnection
public void setDoInput(boolean doinput)
setDoInput
in class java.net.URLConnection
public boolean getDoInput()
getDoInput
in class java.net.URLConnection
public void setDoOutput(boolean dooutput)
setDoOutput
in class java.net.URLConnection
public boolean getDoOutput()
getDoOutput
in class java.net.URLConnection
public void setAllowUserInteraction(boolean allowuserinteraction)
setAllowUserInteraction
in class java.net.URLConnection
public boolean getAllowUserInteraction()
getAllowUserInteraction
in class java.net.URLConnection
public void setUseCaches(boolean usecaches)
setUseCaches
in class java.net.URLConnection
public boolean getUseCaches()
getUseCaches
in class java.net.URLConnection
public void setIfModifiedSince(long ifmodifiedsince)
setIfModifiedSince
in class java.net.URLConnection
public long getIfModifiedSince()
getIfModifiedSince
in class java.net.URLConnection
public boolean getDefaultUseCaches()
getDefaultUseCaches
in class java.net.URLConnection
public void setDefaultUseCaches(boolean defaultusecaches)
setDefaultUseCaches
in class java.net.URLConnection
public void setRequestProperty(java.lang.String key, java.lang.String value, boolean force)
public void setRequestPropertyIgnoringOverride(java.lang.String key, java.lang.String value)
public void setRequestProperty(java.lang.String key, java.lang.String value)
setRequestProperty
in class java.net.URLConnection
public void addRequestProperty(java.lang.String key, java.lang.String value)
addRequestProperty
in class java.net.URLConnection
public java.lang.String getRequestProperty(java.lang.String key)
getRequestProperty
in class java.net.URLConnection
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getRequestProperties()
getRequestProperties
in class java.net.URLConnection