org.openejb.webadmin.main
Class ConfigHTMLWriter

java.lang.Object
  extended by org.openejb.webadmin.main.ConfigHTMLWriter

public class ConfigHTMLWriter
extends java.lang.Object

This class is a utility for the ConfigBean. It takes care of printing out all the HTML for the bean.

Author:
Tim Urberg
See Also:
ConfigBean

Field Summary
static java.lang.String CREATE
          create url type
static java.lang.String DELETE
          delete url type
static java.lang.String DEPLOYMENT_TYPE_DIR
          drop down value for a directory deployment type
static java.lang.String DEPLOYMENT_TYPE_JAR
          drop down value for a jar deployment type
static java.lang.String EDIT
          edit url type
static java.lang.String FORM_FIELD_CONTAINER_TYPE
          container type form field name
static java.lang.String FORM_FIELD_CONTENT
          content form field name
static java.lang.String FORM_FIELD_DEPLOYMENT_TEXT
          deployment text form field name
static java.lang.String FORM_FIELD_DEPLOYMENT_TYPE
          deployment type form field name
static java.lang.String FORM_FIELD_HANDLE_FILE
          handle file form field name
static java.lang.String FORM_FIELD_ID
          id form field name
static java.lang.String FORM_FIELD_INDEX
          index form field name
static java.lang.String FORM_FIELD_JAR
          jar form field name
static java.lang.String FORM_FIELD_JNDI_PARAMETERS
          JNDI Parameters form field name
static java.lang.String FORM_FIELD_PROVIDER
          provider form field name
static java.lang.String FORM_FIELD_SUBMIT_OPENEJB
          submit button name for the main openejb page
static java.lang.String FORM_FIELD_SUBMIT_SERVICE
          submit button name for a service page
static java.lang.String FORM_VALUE_SUBMIT_CONNECTION_MANAGER
          submit button value and label for a connection manager
static java.lang.String FORM_VALUE_SUBMIT_CONNECTOR
          submit button value and label for a connector
static java.lang.String FORM_VALUE_SUBMIT_CONTAINER
          submit button value and label for a container
static java.lang.String FORM_VALUE_SUBMIT_DEPLOYMENTS
          submit button value and label for deployments
static java.lang.String FORM_VALUE_SUBMIT_JNDI_PROVIDER
          submit button value and label for a JNDI provider
static java.lang.String FORM_VALUE_SUBMIT_PROXY_FACTORY
          submit button value and label for a proxy factory
static java.lang.String FORM_VALUE_SUBMIT_RESOURCE
          submit button value and label for a resource
static java.lang.String FORM_VALUE_SUBMIT_SECURITY_SERVICE
          submit button value and label for a security service
static java.lang.String FORM_VALUE_SUBMIT_TRANSACTION_SERVICE
          submit button value and label for a transaction service
static java.lang.String QUERY_PARAMETER_METHOD
          method query parameter
static java.lang.String QUERY_PARAMETER_TYPE
          type query parameter
static java.lang.String TYPE_CONNECTION_MANAGER
          Connection Manager object type
static java.lang.String TYPE_CONNECTOR
          Connector object type
static java.lang.String TYPE_CONTAINER
          Container object type
static java.lang.String TYPE_DEPLOYMENTS
          Deployments object type
static java.lang.String TYPE_JNDI_PROVIDER
          JndiProvider object type
static java.lang.String TYPE_PROXY_FACTORY
          Proxy Factory object type
static java.lang.String TYPE_RESOURCE
          Resource object type
static java.lang.String TYPE_SECURITY_SERVICE
          Securty Service object type
static java.lang.String TYPE_TRANSACTION_SERVICE
          Transaction Service object type
 
Method Summary
static void writeConnector(java.io.PrintWriter body, org.openejb.alt.config.sys.Connector connector, java.lang.String handle, int index)
          This method writes out the contents of the Connector object to the browser
static void writeContainer(java.io.PrintWriter body, ContainerData containerData, java.lang.String handle)
          This method writes out the contents of the Container object to the browser
static void writeDeployments(java.io.PrintWriter body, org.openejb.alt.config.sys.Deployments deployments, java.lang.String handle, int index)
          This method writes out the contents of the Deployments object to the browser
static void writeOpenejb(java.io.PrintWriter body, org.openejb.alt.config.sys.Openejb openejb, java.lang.String handle, java.lang.String configLocation)
          This method takes care of writing the contents of the Openejb configuration object to the browser.
static void writeResource(java.io.PrintWriter body, org.openejb.alt.config.sys.Resource resource, java.lang.String handle, int index)
          This method writes out the contents of the Resource object to the browser
static void writeService(java.io.PrintWriter body, org.openejb.alt.config.Service service, java.lang.String handle, java.lang.String submitValue, int index)
          This method writes out the contents of a generic service object to the browser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATE

public static final java.lang.String CREATE
create url type

See Also:
Constant Field Values

EDIT

public static final java.lang.String EDIT
edit url type

See Also:
Constant Field Values

DELETE

public static final java.lang.String DELETE
delete url type

See Also:
Constant Field Values

TYPE_CONNECTOR

public static final java.lang.String TYPE_CONNECTOR
Connector object type

See Also:
Constant Field Values

TYPE_CONTAINER

public static final java.lang.String TYPE_CONTAINER
Container object type

See Also:
Constant Field Values

TYPE_DEPLOYMENTS

public static final java.lang.String TYPE_DEPLOYMENTS
Deployments object type

See Also:
Constant Field Values

TYPE_JNDI_PROVIDER

public static final java.lang.String TYPE_JNDI_PROVIDER
JndiProvider object type

See Also:
Constant Field Values

TYPE_RESOURCE

public static final java.lang.String TYPE_RESOURCE
Resource object type

See Also:
Constant Field Values

TYPE_CONNECTION_MANAGER

public static final java.lang.String TYPE_CONNECTION_MANAGER
Connection Manager object type

See Also:
Constant Field Values

TYPE_PROXY_FACTORY

public static final java.lang.String TYPE_PROXY_FACTORY
Proxy Factory object type

See Also:
Constant Field Values

TYPE_SECURITY_SERVICE

public static final java.lang.String TYPE_SECURITY_SERVICE
Securty Service object type

See Also:
Constant Field Values

TYPE_TRANSACTION_SERVICE

public static final java.lang.String TYPE_TRANSACTION_SERVICE
Transaction Service object type

See Also:
Constant Field Values

QUERY_PARAMETER_TYPE

public static final java.lang.String QUERY_PARAMETER_TYPE
type query parameter

See Also:
Constant Field Values

QUERY_PARAMETER_METHOD

public static final java.lang.String QUERY_PARAMETER_METHOD
method query parameter

See Also:
Constant Field Values

FORM_FIELD_HANDLE_FILE

public static final java.lang.String FORM_FIELD_HANDLE_FILE
handle file form field name

See Also:
Constant Field Values

FORM_FIELD_ID

public static final java.lang.String FORM_FIELD_ID
id form field name

See Also:
Constant Field Values

FORM_FIELD_JAR

public static final java.lang.String FORM_FIELD_JAR
jar form field name

See Also:
Constant Field Values

FORM_FIELD_PROVIDER

public static final java.lang.String FORM_FIELD_PROVIDER
provider form field name

See Also:
Constant Field Values

FORM_FIELD_CONTAINER_TYPE

public static final java.lang.String FORM_FIELD_CONTAINER_TYPE
container type form field name

See Also:
Constant Field Values

FORM_FIELD_INDEX

public static final java.lang.String FORM_FIELD_INDEX
index form field name

See Also:
Constant Field Values

FORM_FIELD_DEPLOYMENT_TYPE

public static final java.lang.String FORM_FIELD_DEPLOYMENT_TYPE
deployment type form field name

See Also:
Constant Field Values

FORM_FIELD_DEPLOYMENT_TEXT

public static final java.lang.String FORM_FIELD_DEPLOYMENT_TEXT
deployment text form field name

See Also:
Constant Field Values

FORM_FIELD_JNDI_PARAMETERS

public static final java.lang.String FORM_FIELD_JNDI_PARAMETERS
JNDI Parameters form field name

See Also:
Constant Field Values

FORM_FIELD_CONTENT

public static final java.lang.String FORM_FIELD_CONTENT
content form field name

See Also:
Constant Field Values

FORM_FIELD_SUBMIT_SERVICE

public static final java.lang.String FORM_FIELD_SUBMIT_SERVICE
submit button name for a service page

See Also:
Constant Field Values

FORM_FIELD_SUBMIT_OPENEJB

public static final java.lang.String FORM_FIELD_SUBMIT_OPENEJB
submit button name for the main openejb page

See Also:
Constant Field Values

FORM_VALUE_SUBMIT_CONNECTOR

public static final java.lang.String FORM_VALUE_SUBMIT_CONNECTOR
submit button value and label for a connector

See Also:
Constant Field Values

FORM_VALUE_SUBMIT_CONTAINER

public static final java.lang.String FORM_VALUE_SUBMIT_CONTAINER
submit button value and label for a container

See Also:
Constant Field Values

FORM_VALUE_SUBMIT_DEPLOYMENTS

public static final java.lang.String FORM_VALUE_SUBMIT_DEPLOYMENTS
submit button value and label for deployments

See Also:
Constant Field Values

FORM_VALUE_SUBMIT_JNDI_PROVIDER

public static final java.lang.String FORM_VALUE_SUBMIT_JNDI_PROVIDER
submit button value and label for a JNDI provider

See Also:
Constant Field Values

FORM_VALUE_SUBMIT_RESOURCE

public static final java.lang.String FORM_VALUE_SUBMIT_RESOURCE
submit button value and label for a resource

See Also:
Constant Field Values

FORM_VALUE_SUBMIT_CONNECTION_MANAGER

public static final java.lang.String FORM_VALUE_SUBMIT_CONNECTION_MANAGER
submit button value and label for a connection manager

See Also:
Constant Field Values

FORM_VALUE_SUBMIT_PROXY_FACTORY

public static final java.lang.String FORM_VALUE_SUBMIT_PROXY_FACTORY
submit button value and label for a proxy factory

See Also:
Constant Field Values

FORM_VALUE_SUBMIT_SECURITY_SERVICE

public static final java.lang.String FORM_VALUE_SUBMIT_SECURITY_SERVICE
submit button value and label for a security service

See Also:
Constant Field Values

FORM_VALUE_SUBMIT_TRANSACTION_SERVICE

public static final java.lang.String FORM_VALUE_SUBMIT_TRANSACTION_SERVICE
submit button value and label for a transaction service

See Also:
Constant Field Values

DEPLOYMENT_TYPE_JAR

public static final java.lang.String DEPLOYMENT_TYPE_JAR
drop down value for a jar deployment type

See Also:
Constant Field Values

DEPLOYMENT_TYPE_DIR

public static final java.lang.String DEPLOYMENT_TYPE_DIR
drop down value for a directory deployment type

See Also:
Constant Field Values
Method Detail

writeOpenejb

public static void writeOpenejb(java.io.PrintWriter body,
                                org.openejb.alt.config.sys.Openejb openejb,
                                java.lang.String handle,
                                java.lang.String configLocation)
This method takes care of writing the contents of the Openejb configuration object to the browser. It takes in an Openejb object, gets all the parts and constructs the HTML

Parameters:
body - writes the HTML to the browser
openejb - the openejb object to write the contents of
handle - the location of the handle file string
configLocation - the location of the configuration file
See Also:
Openejb

writeConnector

public static void writeConnector(java.io.PrintWriter body,
                                  org.openejb.alt.config.sys.Connector connector,
                                  java.lang.String handle,
                                  int index)
                           throws java.io.IOException
This method writes out the contents of the Connector object to the browser

Parameters:
body - writes the HTML to the browser
connector - the connector object to write the contents of
handle - the location of the handle file string
index - the index of the connector array
Throws:
java.io.IOException
See Also:
Connector

writeContainer

public static void writeContainer(java.io.PrintWriter body,
                                  ContainerData containerData,
                                  java.lang.String handle)
                           throws java.io.IOException
This method writes out the contents of the Container object to the browser

Parameters:
body - writes the HTML to the browser
containerData - the container to write the contents of
handle - the location of the handle file string
Throws:
java.io.IOException
See Also:
Container

writeResource

public static void writeResource(java.io.PrintWriter body,
                                 org.openejb.alt.config.sys.Resource resource,
                                 java.lang.String handle,
                                 int index)
This method writes out the contents of the Resource object to the browser

Parameters:
body - writes the HTML to the browser
resource - the resource to write the contents of
handle - the location of the handle file string
index - the index of the connector array
See Also:
Container

writeDeployments

public static void writeDeployments(java.io.PrintWriter body,
                                    org.openejb.alt.config.sys.Deployments deployments,
                                    java.lang.String handle,
                                    int index)
                             throws java.io.IOException
This method writes out the contents of the Deployments object to the browser

Parameters:
body - writes the HTML to the browser
deployments - the deployment info to write to the browser
handle - the location of the handle file string
index - the index of the connector array
Throws:
java.io.IOException
See Also:
Deployments

writeService

public static void writeService(java.io.PrintWriter body,
                                org.openejb.alt.config.Service service,
                                java.lang.String handle,
                                java.lang.String submitValue,
                                int index)
This method writes out the contents of a generic service object to the browser

Parameters:
body - writes the HTML to the browser
service - the service to write to the browser
handle - the location of the handle file string
submitValue - the value/display for the submit button
index - the index of the connector array
See Also:
Service


Copyright © 1999-2011 OpenEJB. All Rights Reserved.