com.ptc.hli.ecad
Class ECADServerVersion

java.lang.Object
  extended bycom.ptc.hli.ecad.ECADServerVersion

public class ECADServerVersion
extends Object


Nested Class Summary
protected static class ECADServerVersion.WGMECADVersionServer
           
 
Field Summary
(package private) static boolean SERVER
           
private static String SERVER_CLASS
           
private static String WMECAD_VER_CLIENT_CLASSES
           
private static String WMECAD_VER_CLIENT_CUSTOM
           
private static String WMECAD_VER_SERVER_CLASSES
           
private static String WMECAD_VER_SERVER_CUSTOM
           
 
Constructor Summary
ECADServerVersion()
           
 
Method Summary
private static String getServerVersionFromClassPath(boolean server)
           
private static String getServerVersionFromFilesystem(boolean server)
           
static String getVersion(boolean server, boolean fromClassPath)
           
private static String readToString(InputStream inputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WMECAD_VER_CLIENT_CLASSES

private static final String WMECAD_VER_CLIENT_CLASSES
See Also:
Constant Field Values

WMECAD_VER_CLIENT_CUSTOM

private static final String WMECAD_VER_CLIENT_CUSTOM
See Also:
Constant Field Values

WMECAD_VER_SERVER_CLASSES

private static final String WMECAD_VER_SERVER_CLASSES
See Also:
Constant Field Values

WMECAD_VER_SERVER_CUSTOM

private static final String WMECAD_VER_SERVER_CUSTOM
See Also:
Constant Field Values

SERVER_CLASS

private static final String SERVER_CLASS

SERVER

static final boolean SERVER
Constructor Detail

ECADServerVersion

public ECADServerVersion()
Method Detail

getVersion

public static String getVersion(boolean server,
                                boolean fromClassPath)
                         throws WTException
Throws:
WTException

getServerVersionFromClassPath

private static String getServerVersionFromClassPath(boolean server)
                                             throws WTException
Throws:
WTException

getServerVersionFromFilesystem

private static String getServerVersionFromFilesystem(boolean server)
                                              throws WTException
Throws:
WTException

readToString

private static String readToString(InputStream inputStream)
                            throws Exception
Throws:
Exception