Package java.net

Class URLConnection

java.lang.Object
java.net.URLConnection
Direct Known Subclasses:
HttpURLConnection, JarURLConnection

public abstract class URLConnection extends Object
  • Field Details

    • 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 Details

    • URLConnection

      protected URLConnection(URL var0)
  • Method Details

    • 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)
    • getHeaderField

      public String getHeaderField(String 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
    • getRequestProperty

      public String getRequestProperty(String var0)
    • getURL

      public URL getURL()
    • getUseCaches

      public boolean getUseCaches()
    • guessContentTypeFromName

      protected static String guessContentTypeFromName(String var0)
    • 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)
    • setRequestProperty

      public void setRequestProperty(String var0, String var1)
    • setUseCaches

      public void setUseCaches(boolean var0)
    • toString

      public String toString()
      Overrides:
      toString in class Object