public abstract class TURLConnection extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowUserInteraction |
protected boolean |
connected |
protected boolean |
doInput |
protected boolean |
doOutput |
protected long |
ifModifiedSince |
protected TURL |
url |
protected boolean |
useCaches |
Modifier | Constructor and Description |
---|---|
protected |
TURLConnection(TURL url) |
protected TURL url
protected long ifModifiedSince
protected boolean useCaches
protected boolean connected
protected boolean doOutput
protected boolean doInput
protected boolean allowUserInteraction
protected TURLConnection(TURL url)
public abstract void connect() throws IOException
IOException
public boolean getAllowUserInteraction()
public String getContentEncoding()
public int getContentLength()
public String getContentType()
public long getDate()
public static boolean getDefaultAllowUserInteraction()
@Deprecated public static String getDefaultRequestProperty(String field)
public boolean getDefaultUseCaches()
public boolean getDoInput()
public boolean getDoOutput()
public long getExpiration()
public String getHeaderField(int pos)
public long getHeaderFieldDate(String field, long defaultValue)
public int getHeaderFieldInt(String field, int defaultValue)
public String getHeaderFieldKey(int posn)
public long getIfModifiedSince()
public InputStream getInputStream() throws IOException
IOException
public long getLastModified()
public OutputStream getOutputStream() throws IOException
IOException
public TURL getURL()
public boolean getUseCaches()
public void setAllowUserInteraction(boolean newValue)
public static void setDefaultAllowUserInteraction(boolean allows)
@Deprecated public static void setDefaultRequestProperty(String field, String value)
public void setDefaultUseCaches(boolean newValue)
public void setDoInput(boolean newValue)
public void setDoOutput(boolean newValue)
public void setIfModifiedSince(long newValue)
public void setUseCaches(boolean newValue)
public void setConnectTimeout(int timeout)
public int getConnectTimeout()
public void setReadTimeout(int timeout)
public int getReadTimeout()
Copyright © 2019. All rights reserved.