com.gargoylesoftware.htmlunit.protocol.javascript
Class JavaScriptURLConnection

java.lang.Object
  extended by java.net.URLConnection
      extended by com.gargoylesoftware.htmlunit.protocol.javascript.JavaScriptURLConnection

public class JavaScriptURLConnection
extends URLConnection

A URLConnection for supporting JavaScript URLs.

Version:
$Revision: 8931 $
Author:
Mike Bowler

Field Summary
static String JAVASCRIPT_PREFIX
          The JavaScript "URL" prefix.
 
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Constructor Summary
JavaScriptURLConnection(URL newUrl)
          Creates an instance.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

JAVASCRIPT_PREFIX

public static final String JAVASCRIPT_PREFIX
The JavaScript "URL" prefix.

See Also:
Constant Field Values
Constructor Detail

JavaScriptURLConnection

public JavaScriptURLConnection(URL newUrl)
Creates an instance.

Parameters:
newUrl - the JavaScript URL
Method Detail

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.