当前页面:
在线文档首页 >
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
java.net.URLConnection
org.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
Methods inherited from class java.net.URLConnection |
addRequestProperty, getDefaultAllowUserInteraction, getDefaultRequestProperty, getFileNameMap, getHeaderFields, getRequestProperties, guessContentTypeFromName, guessContentTypeFromStream, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setFileNameMap |
delegateUrl
protected URL delegateUrl
delegateConnection
protected URLConnection delegateConnection
DelegatingURLConnection
public DelegatingURLConnection(URL url)
throws MalformedURLException,
IOException
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.