Module java.base
Package java.net

# Class URLConnection

=
public abstract class URLConnection
extends java.lang.Object

## Fields

- =
  protected boolean allowUserInteraction
- =
  protected boolean connected
- =
  protected boolean doInput
- =
  protected boolean doOutput
- =
  protected long ifModifiedSince
- =
  protected java.net.URL url
- =
  protected boolean useCaches

## Constructors

- =
  protected URLConnection(java.net.URL arg0)

## Methods

- =
  public void addRequestProperty(java.lang.String arg0, java.lang.String arg1)
- =
  public abstract void connect() throws java.io.IOException
- =
  public boolean getAllowUserInteraction()
- =
  public int getConnectTimeout()
- =
  public java.lang.Object getContent() throws java.io.IOException
- =
  public java.lang.Object getContent(java.lang.Class<?>[] arg0) throws java.io.IOException
- =
  public java.lang.String getContentEncoding()
- =
  public int getContentLength()
- =
  public long getContentLengthLong()
- =
  public java.lang.String getContentType()
- =
  public long getDate()
- =
  public static boolean getDefaultAllowUserInteraction()
- =
  @Deprecated
  public static java.lang.String getDefaultRequestProperty(java.lang.String arg0)
- =
  public boolean getDefaultUseCaches()
- =
  public static boolean getDefaultUseCaches(java.lang.String arg0)
- =
  public boolean getDoInput()
- =
  public boolean getDoOutput()
- =
  public long getExpiration()
- =
  public static java.net.FileNameMap getFileNameMap()
- =
  public java.lang.String getHeaderField(int arg0)
- =
  public java.lang.String getHeaderField(java.lang.String arg0)
- =
  public long getHeaderFieldDate(java.lang.String arg0, long arg1)
- =
  public int getHeaderFieldInt(java.lang.String arg0, int arg1)
- =
  public java.lang.String getHeaderFieldKey(int arg0)
- =
  public long getHeaderFieldLong(java.lang.String arg0, long arg1)
- =
  public java.util.Map<java.lang.String, java.util.List<java.lang.String>> getHeaderFields()
- =
  public long getIfModifiedSince()
- =
  public java.io.InputStream getInputStream() throws java.io.IOException
- =
  public long getLastModified()
- =
  public java.io.OutputStream getOutputStream() throws java.io.IOException
- =
  public java.security.Permission getPermission() throws java.io.IOException
- =
  public int getReadTimeout()
- =
  public java.util.Map<java.lang.String, java.util.List<java.lang.String>> getRequestProperties()
- =
  public java.lang.String getRequestProperty(java.lang.String arg0)
- =
  public java.net.URL getURL()
- =
  public boolean getUseCaches()
- =
  public static java.lang.String guessContentTypeFromName(java.lang.String arg0)
- =
  public static java.lang.String guessContentTypeFromStream(java.io.InputStream arg0) throws java.io.IOException
- =
  public void setAllowUserInteraction(boolean arg0)
- =
  public void setConnectTimeout(int arg0)
- =
  public static void setContentHandlerFactory(java.net.ContentHandlerFactory arg0)
- =
  public static void setDefaultAllowUserInteraction(boolean arg0)
- =
  @Deprecated
  public static void setDefaultRequestProperty(java.lang.String arg0, java.lang.String arg1)
- =
  public void setDefaultUseCaches(boolean arg0)
- =
  public static void setDefaultUseCaches(java.lang.String arg0, boolean arg1)
- =
  public void setDoInput(boolean arg0)
- =
  public void setDoOutput(boolean arg0)
- =
  public static void setFileNameMap(java.net.FileNameMap arg0)
- =
  public void setIfModifiedSince(long arg0)
- =
  public void setReadTimeout(int arg0)
- =
  public void setRequestProperty(java.lang.String arg0, java.lang.String arg1)
- =
  public void setUseCaches(boolean arg0)
- =
  public java.lang.String toString()

## Summary

No differences.