java.net
Class URLConnection
java.lang.Object
|
+--java.net.URLConnection
- public abstract synchronized class URLConnection
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
url
protected URL url
doInput
protected boolean doInput
doOutput
protected boolean doOutput
allowUserInteraction
protected boolean allowUserInteraction
useCaches
protected boolean useCaches
ifModifiedSince
protected long ifModifiedSince
connected
protected boolean connected
URLConnection
protected URLConnection(URL)
getFileNameMap
public static FileNameMap getFileNameMap()
setFileNameMap
public static void setFileNameMap(FileNameMap)
connect
public abstract void connect()
throws java.io.IOException
getURL
public URL getURL()
getContentLength
public int getContentLength()
getContentType
public java.lang.String getContentType()
getContentEncoding
public java.lang.String getContentEncoding()
getExpiration
public long getExpiration()
getDate
public long getDate()
getLastModified
public long getLastModified()
getHeaderField
public java.lang.String getHeaderField(java.lang.String)
getHeaderFieldInt
public int getHeaderFieldInt(java.lang.String,
int)
getHeaderFieldDate
public long getHeaderFieldDate(java.lang.String,
long)
getHeaderFieldKey
public java.lang.String getHeaderFieldKey(int)
getHeaderField
public java.lang.String getHeaderField(int)
getContent
public java.lang.Object getContent()
throws java.io.IOException
getContent
public java.lang.Object getContent(java.lang.Class[])
throws java.io.IOException
getPermission
public java.security.Permission getPermission()
throws java.io.IOException
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
getOutputStream
public java.io.OutputStream getOutputStream()
throws java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
setDoInput
public void setDoInput(boolean)
getDoInput
public boolean getDoInput()
setDoOutput
public void setDoOutput(boolean)
getDoOutput
public boolean getDoOutput()
setAllowUserInteraction
public void setAllowUserInteraction(boolean)
getAllowUserInteraction
public boolean getAllowUserInteraction()
setDefaultAllowUserInteraction
public static void setDefaultAllowUserInteraction(boolean)
getDefaultAllowUserInteraction
public static boolean getDefaultAllowUserInteraction()
setUseCaches
public void setUseCaches(boolean)
getUseCaches
public boolean getUseCaches()
setIfModifiedSince
public void setIfModifiedSince(long)
getIfModifiedSince
public long getIfModifiedSince()
getDefaultUseCaches
public boolean getDefaultUseCaches()
setDefaultUseCaches
public void setDefaultUseCaches(boolean)
setRequestProperty
public void setRequestProperty(java.lang.String,
java.lang.String)
getRequestProperty
public java.lang.String getRequestProperty(java.lang.String)
setDefaultRequestProperty
public static void setDefaultRequestProperty(java.lang.String,
java.lang.String)
getDefaultRequestProperty
public static java.lang.String getDefaultRequestProperty(java.lang.String)
setContentHandlerFactory
public static void setContentHandlerFactory(ContentHandlerFactory)
guessContentTypeFromName
protected static java.lang.String guessContentTypeFromName(java.lang.String)
guessContentTypeFromStream
public static java.lang.String guessContentTypeFromStream(java.io.InputStream)
throws java.io.IOException