public class HttpURLFileSystemHelper extends URLFileSystemHelper
HttpURLFileSystemHelper class provides an implementation
 of URLFileSystemHelper for http URLs.| Modifier | Constructor and Description | 
|---|---|
  | 
HttpURLFileSystemHelper()
Create the default version of this operation that accesses information
 using a GET. 
 | 
protected  | 
HttpURLFileSystemHelper(java.lang.String requestMethod,
                       java.lang.String quickMethod)
Allow the client to specify the HTTP methods used for the request
 and metadata operations. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
canCreate(java.net.URL url)
Tests whether the application can create the resource at the specified
  
URL. | 
boolean | 
exists(java.net.URL url)
Returns  
true if the specified URL points to a
  resource that currently exists; returns false
  otherwise. | 
static int | 
getConnectionTimeout()  | 
long | 
getLength(java.net.URL url)
Returns the number of bytes contained in the resource that the
  specified  
URL points to. | 
java.net.URL | 
getParent(java.net.URL url)
Returns the  
URL representing the parent directory of
  the specified URL. | 
protected int | 
getPort(java.net.URL url)  | 
java.lang.String | 
getSystemDisplayName(java.net.URL url)
Returns the name of a resource as it would be displayed in a system
  file browser. 
 | 
static boolean | 
isUnreachable(java.net.URL url)  | 
long | 
lastModified(java.net.URL url)
Returns the last modification time (timestamp) of the resource
  indicated by the specified  
URL in milliseconds since
  00:00:00 GMT, Jan 1, 1970. | 
static void | 
markUnreachable(java.net.URL url)  | 
protected java.net.URLConnection | 
openConnection(java.net.URL url)
Open a HttpURConnection, it might be required to clear up the
 protocol of the URL if we are using one of the extended types
 such as http-OPTIONS. 
 | 
java.io.InputStream | 
openInputStream(java.net.URL url)
Opens an  
InputStream on the specified URL. | 
addURLFileSystemListener, appendRelativePath, areEqual, areEqualPathElems, canDelete, canonicalize, canRead, canWrite, code, convertSuffix, createReader, createTempFile, delete, ensureSuffix, equals, getBaseParent, getDefaultIcon, getFileName, getName, getPath, getPathNoExt, getPlatformPathName, getSuffix, getSystemIcon, getTempDirectory, hashCode, hasSuffix, haveSameAuthority, haveSameHost, haveSamePath, haveSamePort, haveSameProtocol, haveSameQuery, haveSameRef, haveSameUserInfo, isBaseURLFor, isDirectory, isDirectoryPath, isHidden, isLocal, isReadOnly, isRegularFile, isValid, list, list, list, listRoots, ls, ls, lsCached, lsCached, mkdir, mkdirs, openOutputStream, removeURLFileSystemListener, rename, setLastModified, setReadOnly, toDisplayString, toEncodedString, toEncodedString, toRelativeSpec, toRelativeSpec, verifyListpublic HttpURLFileSystemHelper()
protected HttpURLFileSystemHelper(java.lang.String requestMethod,
                                  java.lang.String quickMethod)
public static int getConnectionTimeout()
public java.lang.String getSystemDisplayName(java.net.URL url)
getSystemDisplayName in class URLFileSystemHelperurl - the URL of the resourceURLFileSystemHelper.getSystemIcon(URL)public long getLength(java.net.URL url)
URL points to.  If the length cannot be
  determined, -1 is returned.
  The default implementation attempts to get the content length from
  the URLConnection associated with the URL.  If that
  fails for some reason (e.g. the resource does not exist, there was
  some other an I/O exception, etc.), -1 is returned.
getLength in class URLFileSystemHelperURLConnectionpublic long lastModified(java.net.URL url)
URL in milliseconds since
  00:00:00 GMT, Jan 1, 1970.  If the timestamp can't be determined,
  -1 is returned.
  The default implementation attemps to get the last modified time
  from the URLConnection associated with the URL.  If
  that fails for some reason (e.g. the resource does not exist, there
  was some other I/O exception, etc.), -1 is returned.
lastModified in class URLFileSystemHelperURLConnectionpublic boolean exists(java.net.URL url)
URLFileSystemHelpertrue if the specified URL points to a
  resource that currently exists; returns false
  otherwise.
  The default implementation simply returns false
  without doing anything.
exists in class URLFileSystemHelperpublic boolean canCreate(java.net.URL url)
URL.canCreate in class URLFileSystemHelpertrue if the resource at the specified URL
 exists or can be created; false otherwise.public java.net.URL getParent(java.net.URL url)
URLFileSystemHelperURL representing the parent directory of
  the specified URL.  If there is no parent directory,
  then null is returned.
  The default implementation returns the value of invoking
  URLFactory.newURL( url, ".." ), removing the reference
  portion of the URL.
getParent in class URLFileSystemHelperpublic java.io.InputStream openInputStream(java.net.URL url)
                                    throws java.io.IOException
InputStream on the specified URL.
  The default implementation attempts to open the InputStream
  through the URLConnection associated with the URL.
  If the URLConnection implementation does not support an
  InputStream then an UnknownServiceException
  (a runtime exception) will be thrown.
openInputStream in class URLFileSystemHelperjava.io.FileNotFoundException - if the resource at the
  specified URL does not exist.java.io.IOException - if an I/O error occurs when trying to open
  the InputStream.java.net.UnknownServiceException - if the
  URLConnection backing the specified URL does not
  support an InputStream.IOException, 
URLConnection, 
UnknownServiceExceptionprotected java.net.URLConnection openConnection(java.net.URL url)
                                         throws java.io.IOException
url - java.io.IOExceptionpublic static boolean isUnreachable(java.net.URL url)
url - The host to checkpublic static void markUnreachable(java.net.URL url)
url - the host to note as unreachableprotected int getPort(java.net.URL url)
getPort in class URLFileSystemHelper