org.jboss.net.protocol
Class DelegatingURLConnection
java.lang.Object
java.net.URLConnection
org.jboss.net.protocol.DelegatingURLConnection
- Direct Known Subclasses:
- ResourceURLConnection (src)
- public class DelegatingURLConnection
- extends java.net.URLConnection
An delegating URLConnection support class.
Fields inherited from class java.net.URLConnection |
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
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 |
delegateUrl
protected java.net.URL delegateUrl
delegateConnection
protected java.net.URLConnection delegateConnection
DelegatingURLConnection
public DelegatingURLConnection(java.net.URL url)
throws java.net.MalformedURLException,
java.io.IOException
makeDelegateUrl
protected java.net.URL makeDelegateUrl(java.net.URL url)
throws java.net.MalformedURLException,
java.io.IOException
- Throws:
java.net.MalformedURLException
java.io.IOException
makeDelegateUrlConnection
protected java.net.URLConnection makeDelegateUrlConnection(java.net.URL url)
throws java.io.IOException
- Throws:
java.io.IOException
connect
public void connect()
throws java.io.IOException
- Throws:
java.io.IOException
getURL
public java.net.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 name)
getHeaderFieldInt
public int getHeaderFieldInt(java.lang.String name,
int _default)
getHeaderFieldDate
public long getHeaderFieldDate(java.lang.String name,
long _default)
getHeaderFieldKey
public java.lang.String getHeaderFieldKey(int n)
getHeaderField
public java.lang.String getHeaderField(int n)
getContent
public java.lang.Object getContent()
throws java.io.IOException
- Throws:
java.io.IOException
getContent
public java.lang.Object getContent(java.lang.Class[] classes)
throws java.io.IOException
- Throws:
java.io.IOException
getPermission
public java.security.Permission getPermission()
throws java.io.IOException
- Throws:
java.io.IOException
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Throws:
java.io.IOException
getOutputStream
public java.io.OutputStream getOutputStream()
throws java.io.IOException
- Throws:
java.io.IOException
toString
public java.lang.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(java.lang.String key,
java.lang.String value)
getRequestProperty
public java.lang.String getRequestProperty(java.lang.String key)