wt.clients.checker
Class RMIConnectChecker

java.lang.Object
  extended bywt.clients.checker.Checkable
      extended bywt.clients.checker.RMIConnectChecker
All Implemented Interfaces:
CheckerLog

public class RMIConnectChecker
extends Checkable

Checks if the client can make a RMI connection. If not, then the boot.jar is installed which includes additional socket factories which may be able to complete the connection.


Field Summary
private static String BOOT_PROPERTIES
           
private  FileAccess fileAccess
           
private  Properties localJarProperties
           
private  PropAccess propAccess
           
private  Properties remoteJarProperties
           
private static String VERSION
           
 
Fields inherited from class wt.clients.checker.Checkable
locale, log, properties, rb, RESOURCE, silent, verbose
 
Constructor Summary
RMIConnectChecker()
           
 
Method Summary
private  void cantWrite(String path)
           
private  boolean checkVersions()
           
 void configureClient()
          Attempts to set the client's plugin cache size.
private  void cp(InputStream is, OutputStream os)
           
private static String decode(String string)
           
private  File getFileFromFileURIString(String uriString)
           
private  void getRemoteJarProperties(URL codebase)
           
private  boolean install(String remoteJarResource, File installFile, boolean updatingKnownJar)
           
private  boolean install(String remoteJarResource, File installFile, boolean updatingKnownJar, boolean showConfirmDialog)
           
private  void installExtension(boolean updateOnly)
           
private  void installFailed()
           
static void main(String[] args)
           
private  void restartBrowserReq()
           
 
Methods inherited from class wt.clients.checker.Checkable
isSilent, isVerbose, logException, logMessage, setLocale, setLogger, setProperties, setSilent, setVerbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BOOT_PROPERTIES

private static final String BOOT_PROPERTIES
See Also:
Constant Field Values

VERSION

private static final String VERSION
See Also:
Constant Field Values

propAccess

private PropAccess propAccess

fileAccess

private FileAccess fileAccess

localJarProperties

private Properties localJarProperties

remoteJarProperties

private Properties remoteJarProperties
Constructor Detail

RMIConnectChecker

public RMIConnectChecker()
Method Detail

configureClient

public void configureClient()
Attempts to set the client's plugin cache size. Prompts the user that the cache size should be raised and allows the user to raise the cache size directly.

Specified by:
configureClient in class Checkable

installExtension

private void installExtension(boolean updateOnly)

getFileFromFileURIString

private File getFileFromFileURIString(String uriString)

decode

private static String decode(String string)

install

private boolean install(String remoteJarResource,
                        File installFile,
                        boolean updatingKnownJar)

install

private boolean install(String remoteJarResource,
                        File installFile,
                        boolean updatingKnownJar,
                        boolean showConfirmDialog)

cp

private void cp(InputStream is,
                OutputStream os)
         throws IOException
Throws:
IOException

cantWrite

private void cantWrite(String path)

restartBrowserReq

private void restartBrowserReq()

installFailed

private void installFailed()

getRemoteJarProperties

private void getRemoteJarProperties(URL codebase)
                             throws IOException
Throws:
IOException

checkVersions

private boolean checkVersions()

main

public static void main(String[] args)