org.activemath.author.toc
Class SubconfigurationMaker

java.lang.Object
  extended by org.activemath.author.toc.SubconfigurationMaker

public class SubconfigurationMaker
extends Object

A class to create properties required to run an applet with the help of SubconfImpl.PropertiesConfig.


Constructor Summary
SubconfigurationMaker(String name)
           
 
Method Summary
 void addCookiesForAuthentication(HttpServletRequest request)
          Adds all cookies as cookies.
 void addMBaseRefService(String url)
          Inserts the properties used to build an MBaseRef service assuming an OJXmlRpcMBaseRef will be constructed here.
 void addProperty(String name, String value)
          Adds a property.
 void addUserModelService()
          Not implemented yet... should provide the coordinates to the user-model
 void declareServiceWithSubconf(String servicePrefix, String interfaceName, String className, String configPrefix)
          Declares the service to be constructed with a Subconfiguration leaving undone the property subtree defined by configPrefix used to construct the Subconfiguration handed to the constructor.
 Properties getProperties()
          Returns the properties being constructed.
 void output(OutputStream outStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubconfigurationMaker

public SubconfigurationMaker(String name)
Method Detail

output

public void output(OutputStream outStream)
            throws IOException
Throws:
IOException

declareServiceWithSubconf

public void declareServiceWithSubconf(String servicePrefix,
                                      String interfaceName,
                                      String className,
                                      String configPrefix)
Declares the service to be constructed with a Subconfiguration leaving undone the property subtree defined by configPrefix used to construct the Subconfiguration handed to the constructor.

Parameters:
servicePrefix - The xx used for service.xx
interfaceName - The service interface name
className - The class-name to be created.
configPrefix - The prefix from which to create a Subconfiguration provided to the constructor.

getProperties

public Properties getProperties()
Returns the properties being constructed.


addProperty

public void addProperty(String name,
                        String value)
Adds a property.

Parameters:
name - THe name (or key) of the property
value - The value of the property.

addCookiesForAuthentication

public void addCookiesForAuthentication(HttpServletRequest request)
Adds all cookies as cookies.<name> for each name as property values.


addMBaseRefService

public void addMBaseRefService(String url)
Inserts the properties used to build an MBaseRef service assuming an OJXmlRpcMBaseRef will be constructed here.

Parameters:
url - the url to be used by the OJXmlRpcMBaseRef

addUserModelService

public void addUserModelService()
Not implemented yet... should provide the coordinates to the user-model