edu.iastate.anthill.indus.agent
Class IndusHttpClient

java.lang.Object
  extended byedu.iastate.anthill.indus.agent.IndusHttpClient
All Implemented Interfaces:
IndusCommand

public class IndusHttpClient
extends java.lang.Object
implements IndusCommand

TCP client

Since:
1.0 - 2004-09-23
Author:
Jie Bao

Field Summary
 
Fields inherited from interface edu.iastate.anthill.indus.agent.IndusCommand
CMD_DELETE_MAPPING, CMD_DELETE_SCHEMA, CMD_DELETE_TYPE, CMD_DELETE_VIEW, CMD_GET_ALL_MAPPING, CMD_GET_ALL_SCHEMA, CMD_GET_ALL_TYPE, CMD_GET_ALL_VIEW, CMD_GET_MAPPING_DETAILS, CMD_GET_SCHEMA_DETAILS, CMD_GET_TYPE_DETAILS, CMD_GET_VIEW_DETAILS, CMD_HELLO, CMD_NEW_TYPE, CMD_UPDATE_MAPPING, CMD_UPDATE_SCHEMA, CMD_UPDATE_TYPE, CMD_UPDATE_VIEW, RES_GENERAL_ERROR, RES_OK, RES_UNKNOWN_CMD
 
Constructor Summary
protected IndusHttpClient()
           
 
Method Summary
protected static java.lang.String getDetails(java.lang.String cmd, java.lang.String name)
           
static java.lang.String getSuperType(java.lang.String name)
          Get the super type of the type
static java.lang.String getTopSuperType(java.lang.String name)
          Get the top level super type of the type
 java.lang.String sendCmd(java.lang.String cmd)
           
static boolean testServer()
          testServer: test if server is working
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndusHttpClient

protected IndusHttpClient()
Method Detail

sendCmd

public java.lang.String sendCmd(java.lang.String cmd)

getDetails

protected static java.lang.String getDetails(java.lang.String cmd,
                                             java.lang.String name)
Parameters:
name - String
Returns:
String
Since:
2004-10-08

getSuperType

public static java.lang.String getSuperType(java.lang.String name)
Get the super type of the type

Parameters:
name - String
Returns:
String
Since:
2004-10-15

getTopSuperType

public static java.lang.String getTopSuperType(java.lang.String name)
Get the top level super type of the type

Parameters:
name - String
Returns:
String the top level super type , null if no super type
Since:
2004-10-15

testServer

public static boolean testServer()
testServer: test if server is working