public class DelegatingURLConnection extends URLConnection
| Modifier and Type | Field and Description |
|---|---|
protected URLConnection |
delegateConnection |
protected URL |
delegateUrl |
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches| Constructor and Description |
|---|
DelegatingURLConnection(URL url) |
addRequestProperty, getConnectTimeout, getContentLengthLong, getDefaultAllowUserInteraction, getDefaultRequestProperty, getFileNameMap, getHeaderFieldLong, getHeaderFields, getReadTimeout, getRequestProperties, guessContentTypeFromName, guessContentTypeFromStream, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setFileNameMap, setReadTimeoutprotected URL delegateUrl
protected URLConnection delegateConnection
public DelegatingURLConnection(URL url) throws MalformedURLException, IOException
MalformedURLExceptionIOExceptionprotected URL makeDelegateUrl(URL url) throws MalformedURLException, IOException
MalformedURLExceptionIOExceptionprotected URLConnection makeDelegateUrlConnection(URL url) throws IOException
IOExceptionpublic void connect()
throws IOException
connect in class URLConnectionIOExceptionpublic URL getURL()
getURL in class URLConnectionpublic int getContentLength()
getContentLength in class URLConnectionpublic String getContentType()
getContentType in class URLConnectionpublic String getContentEncoding()
getContentEncoding in class URLConnectionpublic long getExpiration()
getExpiration in class URLConnectionpublic long getDate()
getDate in class URLConnectionpublic long getLastModified()
getLastModified in class URLConnectionpublic String getHeaderField(String name)
getHeaderField in class URLConnectionpublic int getHeaderFieldInt(String name, int _default)
getHeaderFieldInt in class URLConnectionpublic long getHeaderFieldDate(String name, long _default)
getHeaderFieldDate in class URLConnectionpublic String getHeaderFieldKey(int n)
getHeaderFieldKey in class URLConnectionpublic String getHeaderField(int n)
getHeaderField in class URLConnectionpublic Object getContent() throws IOException
getContent in class URLConnectionIOExceptionpublic Object getContent(Class[] classes) throws IOException
getContent in class URLConnectionIOExceptionpublic Permission getPermission() throws IOException
getPermission in class URLConnectionIOExceptionpublic InputStream getInputStream() throws IOException
getInputStream in class URLConnectionIOExceptionpublic OutputStream getOutputStream() throws IOException
getOutputStream in class URLConnectionIOExceptionpublic String toString()
toString in class URLConnectionpublic void setDoInput(boolean doinput)
setDoInput in class URLConnectionpublic boolean getDoInput()
getDoInput in class URLConnectionpublic void setDoOutput(boolean dooutput)
setDoOutput in class URLConnectionpublic boolean getDoOutput()
getDoOutput in class URLConnectionpublic void setAllowUserInteraction(boolean allowuserinteraction)
setAllowUserInteraction in class URLConnectionpublic boolean getAllowUserInteraction()
getAllowUserInteraction in class URLConnectionpublic void setUseCaches(boolean usecaches)
setUseCaches in class URLConnectionpublic boolean getUseCaches()
getUseCaches in class URLConnectionpublic void setIfModifiedSince(long ifmodifiedsince)
setIfModifiedSince in class URLConnectionpublic long getIfModifiedSince()
getIfModifiedSince in class URLConnectionpublic boolean getDefaultUseCaches()
getDefaultUseCaches in class URLConnectionpublic void setDefaultUseCaches(boolean defaultusecaches)
setDefaultUseCaches in class URLConnectionpublic void setRequestProperty(String key, String value)
setRequestProperty in class URLConnectionpublic String getRequestProperty(String key)
getRequestProperty in class URLConnectionCopyright © 2015 JBoss by Red Hat. All rights reserved.