com.gargoylesoftware.htmlunit.protocol.javascript
Class JavaScriptURLConnection
java.lang.Object
java.net.URLConnection
com.gargoylesoftware.htmlunit.protocol.javascript.JavaScriptURLConnection
public class JavaScriptURLConnection
- extends URLConnection
A URLConnection for supporting JavaScript URLs.
- Version:
- $Revision: 8931 $
- Author:
- Mike Bowler
Method Summary |
void |
connect()
This method does nothing in this implementation but is required to be implemented. |
InputStream |
getInputStream()
Returns the input stream - in this case the content of the URL. |
Methods inherited from class java.net.URLConnection |
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString |
JAVASCRIPT_PREFIX
public static final String JAVASCRIPT_PREFIX
- The JavaScript "URL" prefix.
- See Also:
- Constant Field Values
JavaScriptURLConnection
public JavaScriptURLConnection(URL newUrl)
- Creates an instance.
- Parameters:
newUrl
- the JavaScript URL
connect
public void connect()
- This method does nothing in this implementation but is required to be implemented.
- Specified by:
connect
in class URLConnection
getInputStream
public InputStream getInputStream()
- Returns the input stream - in this case the content of the URL.
- Overrides:
getInputStream
in class URLConnection
- Returns:
- the input stream
Copyright © 2002–2014 Gargoyle Software Inc.. All rights reserved.