Package org.teavm.classlib.java.net
Class TURLConnection
java.lang.Object
org.teavm.classlib.java.net.TURLConnection
- Direct Known Subclasses:
THttpURLConnection
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected booleanprotected booleanprotected longprotected TURLprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRequestProperty(String field, String newValue) abstract voidconnect()booleanintintlonggetDate()static booleanstatic StringgetDefaultRequestProperty(String field) Deprecated.booleanbooleanbooleanlonggetHeaderField(int pos) getHeaderField(String key) longgetHeaderFieldDate(String field, long defaultValue) intgetHeaderFieldInt(String field, int defaultValue) getHeaderFieldKey(int posn) longlongintgetRequestProperty(String field) getURL()booleanvoidsetAllowUserInteraction(boolean newValue) voidsetConnectTimeout(int timeout) static voidsetDefaultAllowUserInteraction(boolean allows) static voidsetDefaultRequestProperty(String field, String value) Deprecated.voidsetDefaultUseCaches(boolean newValue) voidsetDoInput(boolean newValue) voidsetDoOutput(boolean newValue) voidsetIfModifiedSince(long newValue) voidsetReadTimeout(int timeout) voidsetRequestProperty(String field, String newValue) voidsetUseCaches(boolean newValue) toString()
-
Field Details
-
url
-
ifModifiedSince
protected long ifModifiedSince -
useCaches
protected boolean useCaches -
connected
protected boolean connected -
doOutput
protected boolean doOutput -
doInput
protected boolean doInput -
allowUserInteraction
protected boolean allowUserInteraction
-
-
Constructor Details
-
TURLConnection
-
-
Method Details
-
connect
- Throws:
IOException
-
getAllowUserInteraction
public boolean getAllowUserInteraction() -
getContentEncoding
-
getContentLength
public int getContentLength() -
getContentType
-
getDate
public long getDate() -
getDefaultAllowUserInteraction
public static boolean getDefaultAllowUserInteraction() -
getDefaultRequestProperty
Deprecated. -
getDefaultUseCaches
public boolean getDefaultUseCaches() -
getDoInput
public boolean getDoInput() -
getDoOutput
public boolean getDoOutput() -
getExpiration
public long getExpiration() -
getHeaderField
-
getHeaderFields
-
getRequestProperties
-
addRequestProperty
-
getHeaderField
-
getHeaderFieldDate
-
getHeaderFieldInt
-
getHeaderFieldKey
-
getIfModifiedSince
public long getIfModifiedSince() -
getInputStream
- Throws:
IOException
-
getLastModified
public long getLastModified() -
getOutputStream
- Throws:
IOException
-
getRequestProperty
-
getURL
-
getUseCaches
public boolean getUseCaches() -
setAllowUserInteraction
public void setAllowUserInteraction(boolean newValue) -
setDefaultAllowUserInteraction
public static void setDefaultAllowUserInteraction(boolean allows) -
setDefaultRequestProperty
Deprecated. -
setDefaultUseCaches
public void setDefaultUseCaches(boolean newValue) -
setDoInput
public void setDoInput(boolean newValue) -
setDoOutput
public void setDoOutput(boolean newValue) -
setIfModifiedSince
public void setIfModifiedSince(long newValue) -
setRequestProperty
-
setUseCaches
public void setUseCaches(boolean newValue) -
setConnectTimeout
public void setConnectTimeout(int timeout) -
getConnectTimeout
public int getConnectTimeout() -
setReadTimeout
public void setReadTimeout(int timeout) -
getReadTimeout
public int getReadTimeout() -
toString
-