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 boolean
protected boolean
protected boolean
protected boolean
protected long
protected TURL
protected boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRequestProperty
(String field, String newValue) abstract void
connect()
boolean
int
int
long
getDate()
static boolean
static String
getDefaultRequestProperty
(String field) Deprecated.boolean
boolean
boolean
long
getHeaderField
(int pos) getHeaderField
(String key) long
getHeaderFieldDate
(String field, long defaultValue) int
getHeaderFieldInt
(String field, int defaultValue) getHeaderFieldKey
(int posn) long
long
int
getRequestProperty
(String field) getURL()
boolean
void
setAllowUserInteraction
(boolean newValue) void
setConnectTimeout
(int timeout) static void
setDefaultAllowUserInteraction
(boolean allows) static void
setDefaultRequestProperty
(String field, String value) Deprecated.void
setDefaultUseCaches
(boolean newValue) void
setDoInput
(boolean newValue) void
setDoOutput
(boolean newValue) void
setIfModifiedSince
(long newValue) void
setReadTimeout
(int timeout) void
setRequestProperty
(String field, String newValue) void
setUseCaches
(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
-