de.folt.rpc.webserver
Class ConfigurationHandler

java.lang.Object
  extended by de.folt.rpc.webserver.ConfigurationHandler

public class ConfigurationHandler
extends java.lang.Object

Author:
klemens To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code and Comments

Constructor Summary
ConfigurationHandler(java.lang.String xmlConfigurationFile)
           
 
Method Summary
 boolean bMethodSupported(java.lang.String method)
          bMethodSupported
 java.util.Vector<java.lang.String> executeTranslet(java.lang.String message, java.util.Hashtable<java.lang.String,java.lang.String> hashParams)
          executeTranslet executes a Translet
 java.lang.String getClassName(java.lang.String method)
          getClassName
 java.lang.String getMethod(java.lang.String method)
          getMethod
 java.lang.String getMethodFullName(java.lang.String method)
          getMethodFullName
 java.util.Hashtable<java.lang.String,java.lang.Object> getTransletTable()
           
 java.net.URLClassLoader getUcl()
           
 java.util.Hashtable<java.lang.String,java.lang.String> mapParams(java.lang.String method, java.util.Hashtable<java.lang.String,java.lang.String> inhash)
          mapParams maps the parameters of the input hash table to the parameters of the method map table
 void setTransletTable(java.util.Hashtable<java.lang.String,java.lang.Object> transletTable)
           
 void setUcl(java.net.URLClassLoader ucl)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationHandler

public ConfigurationHandler(java.lang.String xmlConfigurationFile)
Parameters:
xmlConfigurationFile -
Method Detail

bMethodSupported

public boolean bMethodSupported(java.lang.String method)
bMethodSupported

Parameters:
method -
Returns:
true if method is supported

executeTranslet

public java.util.Vector<java.lang.String> executeTranslet(java.lang.String message,
                                                          java.util.Hashtable<java.lang.String,java.lang.String> hashParams)
executeTranslet executes a Translet

Parameters:
message - which should be eecutes
hashParams - contains the parameters for the execution
Returns:
a Vector with result of the execution

getClassName

public java.lang.String getClassName(java.lang.String method)
getClassName

Parameters:
method - the class name of the method
Returns:

getMethod

public java.lang.String getMethod(java.lang.String method)
getMethod

Parameters:
method -
Returns:
the method

getMethodFullName

public java.lang.String getMethodFullName(java.lang.String method)
getMethodFullName

Parameters:
method -
Returns:
the full (qualified) name of the method

getTransletTable

public java.util.Hashtable<java.lang.String,java.lang.Object> getTransletTable()
Returns:
the transletTable

getUcl

public java.net.URLClassLoader getUcl()
Returns:
the ucl

mapParams

public java.util.Hashtable<java.lang.String,java.lang.String> mapParams(java.lang.String method,
                                                                        java.util.Hashtable<java.lang.String,java.lang.String> inhash)
mapParams maps the parameters of the input hash table to the parameters of the method map table

Parameters:
method -
inhash -
Returns:
mapped hash table of the input hash table

setTransletTable

public void setTransletTable(java.util.Hashtable<java.lang.String,java.lang.Object> transletTable)
Parameters:
transletTable - the transletTable to set

setUcl

public void setUcl(java.net.URLClassLoader ucl)
Parameters:
ucl - the ucl to set