Package java.net
Class URLConnection
- java.lang.Object
-
- java.net.URLConnection
-
- Direct Known Subclasses:
HttpURLConnection
,JarURLConnection
public abstract class URLConnection extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
allowUserInteraction
protected boolean
connected
protected boolean
doInput
protected boolean
doOutput
protected long
ifModifiedSince
protected URL
url
protected boolean
useCaches
-
Constructor Summary
Constructors Modifier Constructor Description protected
URLConnection(URL var0)
-
Method Summary
-
-
-
Field Detail
-
url
protected URL 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 Detail
-
URLConnection
protected URLConnection(URL var0)
-
-
Method Detail
-
connect
public abstract void connect() throws IOException
- Throws:
IOException
-
getAllowUserInteraction
public boolean getAllowUserInteraction()
-
getContent
public Object getContent() throws IOException
- Throws:
IOException
-
getContent
public Object getContent(Class[] var0) throws IOException
- Throws:
IOException
-
getContentEncoding
public String getContentEncoding()
-
getContentLength
public int getContentLength()
-
getContentType
public String getContentType()
-
getDate
public long getDate()
-
getDefaultAllowUserInteraction
public static boolean getDefaultAllowUserInteraction()
-
getDefaultUseCaches
public boolean getDefaultUseCaches()
-
getDoInput
public boolean getDoInput()
-
getDoOutput
public boolean getDoOutput()
-
getExpiration
public long getExpiration()
-
getFileNameMap
public static FileNameMap getFileNameMap()
-
getHeaderField
public String getHeaderField(int var0)
-
getHeaderFieldDate
public long getHeaderFieldDate(String var0, long var1)
-
getHeaderFieldInt
public int getHeaderFieldInt(String var0, int var1)
-
getHeaderFieldKey
public String getHeaderFieldKey(int var0)
-
getIfModifiedSince
public long getIfModifiedSince()
-
getInputStream
public InputStream getInputStream() throws IOException
- Throws:
IOException
-
getLastModified
public long getLastModified()
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Throws:
IOException
-
getPermission
public Permission getPermission() throws IOException
- Throws:
IOException
-
getURL
public URL getURL()
-
getUseCaches
public boolean getUseCaches()
-
guessContentTypeFromStream
public static String guessContentTypeFromStream(InputStream var0) throws IOException
- Throws:
IOException
-
setAllowUserInteraction
public void setAllowUserInteraction(boolean var0)
-
setContentHandlerFactory
public static void setContentHandlerFactory(ContentHandlerFactory var0)
-
setDefaultAllowUserInteraction
public static void setDefaultAllowUserInteraction(boolean var0)
-
setDefaultUseCaches
public void setDefaultUseCaches(boolean var0)
-
setDoInput
public void setDoInput(boolean var0)
-
setDoOutput
public void setDoOutput(boolean var0)
-
setFileNameMap
public static void setFileNameMap(FileNameMap var0)
-
setIfModifiedSince
public void setIfModifiedSince(long var0)
-
setUseCaches
public void setUseCaches(boolean var0)
-
-