Class AbstractFileSystemBrowser

    • Method Detail

      • cancel

        protected void cancel()
      • cleanUp

        protected void cleanUp()
      • runRequest

        protected abstract void runRequest()
                                    throws Exception
        Run the actual request. This method is called within the job created to actually get the directory or file information.
        Exception - if some problem with making the request or receiving response to the request.
      • createRemoteFileEvent

        protected IRemoteFileSystemEvent createRemoteFileEvent()
        file system directory event
      • setupProxy

        protected abstract void setupProxy​(Proxy proxy)
      • selectProxyFromProxies

        protected selectProxyFromProxies​(String protocol,
                                                                     [] proxies)
        Select a single proxy from a set of proxies available for the given host. This implementation selects in the following manner: 1) If proxies provided is null or array of 0 length, null is returned. If only one proxy is available (array of length 1) then the entry is returned. If proxies provided is length greater than 1, then if the type of a proxy in the array matches the given protocol (e.g. http, https), then the first matching proxy is returned. If the protocol does not match any of the proxies, then the *first* proxy (i.e. proxies[0]) is returned. Subclasses may override if desired.
        protocol - the target protocol (e.g. http, https, scp, etc). Will not be null.
        proxies - the proxies to select from. May be null or array of length 0.
        proxy data selected from the proxies provided.
      • setupProxies

        protected void setupProxies()
      • setException

        protected void setException​(Exception exception)
      • getException

        protected Exception getException()
      • isCanceled

        protected boolean isCanceled()
      • setCanceled

        protected void setCanceled​(Exception e)