Class JavaScriptURLConnection
java.lang.Object
java.net.URLConnection
org.htmlunit.protocol.javascript.JavaScriptURLConnection
A URLConnection for supporting JavaScript URLs.
- Author:
- Mike Bowler
-
Field Summary
FieldsFields inherited from class URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect()This method does nothing in this implementation but is required to be implemented.Returns the input stream - in this case the content of the URL.Methods inherited from class URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
-
Field Details
-
JAVASCRIPT_PREFIX
-
-
Constructor Details
-
JavaScriptURLConnection
Creates an instance.- Parameters:
newUrl- the JavaScript URL
-
-
Method Details
-
connect
public void connect()This method does nothing in this implementation but is required to be implemented.- Specified by:
connectin classURLConnection
-
getInputStream
Returns the input stream - in this case the content of the URL.- Overrides:
getInputStreamin classURLConnection- Returns:
- the input stream
-