org.eclipse.ohf.stem.ui.ge.servlet
Class VerifyClient

java.lang.Object
  extended by org.eclipse.ohf.stem.ui.ge.servlet.VerifyClient

public class VerifyClient
extends java.lang.Object

Holder for the verify method that will verify that the specified webserver is available and that the Stem-GoogleEarth servlets are deployed. It will also send the setting of the DEBUG flag to the servlet codebase so it can be used there. String url = "http://localhost:8080/STEM/verify" VerifyClient vc = new VerifyClient(); boolean ok = vc.verify(url) if (! ok) { System.out.println(vc.getError()); return; } ...


Field Summary
static java.lang.String expectedText
          String that client should send us.
static java.lang.String outputText
          String that we will send the client
 
Constructor Summary
VerifyClient()
           
 
Method Summary
 java.lang.String getError()
          Return the error message from the last check.
static void main(java.lang.String[] args)
           
 boolean verify(java.lang.String urlstr)
          Verify: (1) that the web server is active (2) that the servlets are deployed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

outputText

public static java.lang.String outputText
String that we will send the client


expectedText

public static java.lang.String expectedText
String that client should send us.

Constructor Detail

VerifyClient

public VerifyClient()
Method Detail

verify

public boolean verify(java.lang.String urlstr)
Verify: (1) that the web server is active (2) that the servlets are deployed

Parameters:
urlstr - URL like //localhost:8080/STEM/verify
Returns:
OK" or an error message

getError

public java.lang.String getError()
Return the error message from the last check.

Returns:
Error message from the previous call to VerifyClient.

main

public static void main(java.lang.String[] args)
Parameters:
args -