java.net
Class URLConnection

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

public abstract class URLConnection
extends Object


Field Summary
protected  boolean allowUserInteraction
           
protected  boolean connected
           
protected  boolean doInput
           
protected  boolean doOutput
           
protected  long ifModifiedSince
           
protected  URL url
           
protected  boolean useCaches
           
 
Constructor Summary
protected URLConnection(URL var0)
           
 
Method Summary
abstract  void connect()
           
 boolean getAllowUserInteraction()
           
 Object getContent()
           
 Object getContent(Class[] var0)
           
 String getContentEncoding()
           
 int getContentLength()
           
 String getContentType()
           
 long getDate()
           
static boolean getDefaultAllowUserInteraction()
           
 boolean getDefaultUseCaches()
           
 boolean getDoInput()
           
 boolean getDoOutput()
           
 long getExpiration()
           
static FileNameMap getFileNameMap()
           
 String getHeaderField(int var0)
           
 String getHeaderField(String var0)
           
 long getHeaderFieldDate(String var0, long var1)
           
 int getHeaderFieldInt(String var0, int var1)
           
 String getHeaderFieldKey(int var0)
           
 long getIfModifiedSince()
           
 InputStream getInputStream()
           
 long getLastModified()
           
 OutputStream getOutputStream()
           
 Permission getPermission()
           
 String getRequestProperty(String var0)
           
 URL getURL()
           
 boolean getUseCaches()
           
protected static String guessContentTypeFromName(String var0)
           
static String guessContentTypeFromStream(InputStream var0)
           
 void setAllowUserInteraction(boolean var0)
           
static void setContentHandlerFactory(ContentHandlerFactory var0)
           
static void setDefaultAllowUserInteraction(boolean var0)
           
 void setDefaultUseCaches(boolean var0)
           
 void setDoInput(boolean var0)
           
 void setDoOutput(boolean var0)
           
static void setFileNameMap(FileNameMap var0)
           
 void setIfModifiedSince(long var0)
           
 void setRequestProperty(String var0, String var1)
           
 void setUseCaches(boolean var0)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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)

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


Copyright © 2006-2010 OSGi Alliance. All Rights Reserved.