站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 common API Documentation 英文版文档

DelegatingURLConnection (JBoss/Common API) - JBoss 4.0.1 sp1 common API Documentation 英文版文档


org.jboss.net.protocol
Class DelegatingURLConnection

java.lang.Object
  extended byjava.net.URLConnection
      extended byorg.jboss.net.protocol.DelegatingURLConnection
Direct Known Subclasses:
ResourceURLConnection

public class DelegatingURLConnection
extends URLConnection

An delegating URLConnection support class.

Version:
$Revision: 1.5 $
Author:
Jason Dillon

Field Summary
protected  URLConnection delegateConnection
           
protected  URL delegateUrl
           
 
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Constructor Summary
DelegatingURLConnection(URL url)
           
 
Method Summary
 void connect()
           
 boolean getAllowUserInteraction()
           
 Object getContent()
           
 Object getContent(Class[] classes)
           
 String getContentEncoding()
           
 int getContentLength()
           
 String getContentType()
           
 long getDate()
           
 boolean getDefaultUseCaches()
           
 boolean getDoInput()
           
 boolean getDoOutput()
           
 long getExpiration()
           
 String getHeaderField(int n)
           
 String getHeaderField(String name)
           
 long getHeaderFieldDate(String name, long _default)
           
 int getHeaderFieldInt(String name, int _default)
           
 String getHeaderFieldKey(int n)
           
 long getIfModifiedSince()
           
 InputStream getInputStream()
           
 long getLastModified()
           
 OutputStream getOutputStream()
           
 Permission getPermission()
           
 String getRequestProperty(String key)
           
 URL getURL()
           
 boolean getUseCaches()
           
protected  URL makeDelegateUrl(URL url)
           
protected  URLConnection makeDelegateUrlConnection(URL url)
           
 void setAllowUserInteraction(boolean allowuserinteraction)
           
 void setDefaultUseCaches(boolean defaultusecaches)
           
 void setDoInput(boolean doinput)
           
 void setDoOutput(boolean dooutput)
           
 void setIfModifiedSince(long ifmodifiedsince)
           
 void setRequestProperty(String key, String value)
           
 void setUseCaches(boolean usecaches)
           
 String toString()
           
 
Methods inherited from class java.net.URLConnection
addRequestProperty, getDefaultAllowUserInteraction, getDefaultRequestProperty, getFileNameMap, getHeaderFields, getRequestProperties, guessContentTypeFromName, guessContentTypeFromStream, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setFileNameMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

delegateUrl

protected URL delegateUrl

delegateConnection

protected URLConnection delegateConnection
Constructor Detail

DelegatingURLConnection

public DelegatingURLConnection(URL url)
                        throws MalformedURLException,
                               IOException
Method Detail

makeDelegateUrl

protected URL makeDelegateUrl(URL url)
                       throws MalformedURLException,
                              IOException
Throws:
MalformedURLException
IOException

makeDelegateUrlConnection

protected URLConnection makeDelegateUrlConnection(URL url)
                                           throws IOException
Throws:
IOException

connect

public void connect()
             throws IOException
Throws:
IOException

getURL

public URL getURL()

getContentLength

public int getContentLength()

getContentType

public String getContentType()

getContentEncoding

public String getContentEncoding()

getExpiration

public long getExpiration()

getDate

public long getDate()

getLastModified

public long getLastModified()

getHeaderField

public String getHeaderField(String name)

getHeaderFieldInt

public int getHeaderFieldInt(String name,
                             int _default)

getHeaderFieldDate

public long getHeaderFieldDate(String name,
                               long _default)

getHeaderFieldKey

public String getHeaderFieldKey(int n)

getHeaderField

public String getHeaderField(int n)

getContent

public Object getContent()
                  throws IOException
Throws:
IOException

getContent

public Object getContent(Class[] classes)
                  throws IOException
Throws:
IOException

getPermission

public Permission getPermission()
                         throws IOException
Throws:
IOException

getInputStream

public InputStream getInputStream()
                           throws IOException
Throws:
IOException

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Throws:
IOException

toString

public String toString()

setDoInput

public void setDoInput(boolean doinput)

getDoInput

public boolean getDoInput()

setDoOutput

public void setDoOutput(boolean dooutput)

getDoOutput

public boolean getDoOutput()

setAllowUserInteraction

public void setAllowUserInteraction(boolean allowuserinteraction)

getAllowUserInteraction

public boolean getAllowUserInteraction()

setUseCaches

public void setUseCaches(boolean usecaches)

getUseCaches

public boolean getUseCaches()

setIfModifiedSince

public void setIfModifiedSince(long ifmodifiedsince)

getIfModifiedSince

public long getIfModifiedSince()

getDefaultUseCaches

public boolean getDefaultUseCaches()

setDefaultUseCaches

public void setDefaultUseCaches(boolean defaultusecaches)

setRequestProperty

public void setRequestProperty(String key,
                               String value)

getRequestProperty

public String getRequestProperty(String key)


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.