Java EE 5 SDK

com.sun.appserv.management.config
Interface HTTPServiceConfig

All Superinterfaces:
AMX, AMXConfig, AMXMBeanLogging, ConfigElement, Container, NotificationBroadcaster, NotificationEmitter, PropertiesAccess

public interface HTTPServiceConfig
extends ConfigElement, PropertiesAccess, Container

Configuration for the <http-service> element.


Field Summary
static String J2EE_TYPE
          The j2eeType as returned by AMX.getJ2EEType().
 
Fields inherited from interface com.sun.appserv.management.config.AMXConfig
CONFIG_CREATED_NOTIFICATION_TYPE, CONFIG_OBJECT_NAME_KEY, CONFIG_REMOVED_NOTIFICATION_TYPE
 
Fields inherited from interface com.sun.appserv.management.base.AMX
FULL_TYPE_DELIM, GROUP_CONFIGURATION, GROUP_JSR77, GROUP_MONITORING, GROUP_OTHER, GROUP_UTILITY, J2EE_TYPE_KEY, JMX_DOMAIN, NAME_KEY, NO_NAME, NOTIFICATION_PREFIX, NULL_NAME
 
Fields inherited from interface com.sun.appserv.management.config.PropertiesAccess
PROPERTY_PREFIX
 
Fields inherited from interface com.sun.appserv.management.base.Container
ATTR_CONTAINEE_J2EE_TYPES
 
Method Summary
 AccessLogConfig createAccessLogConfig(Map<String,String> params)
          Creates access-log element with the given params.
 ConnectionPoolConfig createConnectionPoolConfig(Map<String,String> params)
          Creates connection-pool element with the given params.
 HTTPFileCacheConfig createHTTPFileCacheConfig(Map<String,String> params)
          Creates http-file-cache element with the given params.
 HTTPListenerConfig createHTTPListenerConfig(String name, String address, int port, String defaultVirtualServer, String serverName, Map<String,String> optional)
          Create an Parameters: HTTPListenerConfigKeys.ADDRESS_KEY HTTPListenerConfigKeys.PORT_KEY HTTPListenerConfigKeys.ENABLED_KEY HTTPListenerConfigKeys.SECURITY_ENABLED_KEY HTTPListenerConfigKeys.DEFAULT_VIRTUAL_SERVER_KEY HTTPListenerConfigKeys.ACCEPTOR_THREADS_KEY HTTPListenerConfigKeys.XPOWERED_BY_KEY HTTPListenerConfigKeys.XPOWERED_BY_KEY CommonConfigKeys.IGNORE_MISSING_REFERENCES_KEY (for defaultVirtualServer)
 HTTPProtocolConfig createHTTPProtocolConfig(Map<String,String> params)
          Creates http-protocol element with the given params.
 KeepAliveConfig createKeepAliveConfig(Map<String,String> params)
          Creates keep-alive element with the given params.
 RequestProcessingConfig createRequestProcessingConfig(Map<String,String> params)
          Creates request-processing element with the given params.
 VirtualServerConfig createVirtualServerConfig(String name, String hosts, Map<String,String> optional)
          Create a .
 AccessLogConfig getAccessLogConfig()
          Get the AccessLogConfig.
 ConnectionPoolConfig getConnectionPoolConfig()
          Get the ConnectionPoolConfig.
 HTTPFileCacheConfig getHTTPFileCacheConfig()
           
 Map<String,HTTPListenerConfig> getHTTPListenerConfigMap()
          Calls Container.getContaineeMap( XTypes.HTTP_LISTENER_CONFIG ).
 HTTPProtocolConfig getHTTPProtocolConfig()
           
 KeepAliveConfig getKeepAliveConfig()
           
 RequestProcessingConfig getRequestProcessingConfig()
          Get the RequestProcessingConfig.
 Map<String,VirtualServerConfig> getVirtualServerConfigMap()
          Calls Container.getContaineeMap( XTypes.VIRTUAL_SERVER_CONFIG ).
 void removeAccessLogConfig()
          Removes access-log element.
 void removeConnectionPoolConfig()
          Removes connection-pool element.
 void removeHTTPFileCacheConfig()
          Removes http-file-cache element.
 void removeHTTPListenerConfig(String name)
          Remove the <http-listener>.
 void removeHTTPProtocolConfig()
          Removes http-protocol element.
 void removeKeepAliveConfig()
          Removes keep-alive element.
 void removeRequestProcessingConfig()
          Removes request-processing element.
 void removeVirtualServerConfig(String virtualServerName)
          Remove the <virtual-server>.
 
Methods inherited from interface com.sun.appserv.management.base.AMX
getContainer, getDomainRoot, getFullType, getGroup, getJ2EEType, getName, isDAS
 
Methods inherited from interface javax.management.NotificationEmitter
removeNotificationListener
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 
Methods inherited from interface com.sun.appserv.management.base.AMXMBeanLogging
getMBeanLoggerName, getMBeanLogLevel, setMBeanLogLevel
 
Methods inherited from interface com.sun.appserv.management.config.PropertiesAccess
createProperty, existsProperty, getProperties, getPropertyNames, getPropertyValue, removeProperty, setPropertyValue
 
Methods inherited from interface com.sun.appserv.management.base.Container
getByNameContaineeSet, getContainee, getContainee, getContaineeJ2EETypes, getContaineeMap, getContaineeSet, getContaineeSet, getContaineeSet, getMultiContaineeMap
 

Field Detail

J2EE_TYPE

static final String J2EE_TYPE
The j2eeType as returned by AMX.getJ2EEType().

See Also:
Constant Field Values
Method Detail

getHTTPListenerConfigMap

Map<String,HTTPListenerConfig> getHTTPListenerConfigMap()
Calls Container.getContaineeMap( XTypes.HTTP_LISTENER_CONFIG ).

Returns:
Map of all HTTPListenerConfig proxies, keyed by the name of the listener.
See Also:
Container.getContaineeMap(java.lang.String)

getVirtualServerConfigMap

Map<String,VirtualServerConfig> getVirtualServerConfigMap()
Calls Container.getContaineeMap( XTypes.VIRTUAL_SERVER_CONFIG ).

Returns:
Map of all VirtualServerConfig proxies, keyed by the name of the virtual server.
See Also:
Container.getContaineeMap(java.lang.String)

createAccessLogConfig

AccessLogConfig createAccessLogConfig(Map<String,String> params)
Creates access-log element with the given params.

Parameters:
params -
Returns:
Proxy to the AccessLogConfig MBean
See Also:
AccessLogConfigKeys

removeAccessLogConfig

void removeAccessLogConfig()
Removes access-log element.


createRequestProcessingConfig

RequestProcessingConfig createRequestProcessingConfig(Map<String,String> params)
Creates request-processing element with the given params.

Parameters:
params -
Returns:
Proxy to the RequestProcessingConfig MBean
See Also:
RequestProcessingConfigKeys

removeRequestProcessingConfig

void removeRequestProcessingConfig()
Removes request-processing element.


getKeepAliveConfig

KeepAliveConfig getKeepAliveConfig()
Returns:
Proxy to the KeepAliveConfig MBean

createKeepAliveConfig

KeepAliveConfig createKeepAliveConfig(Map<String,String> params)
Creates keep-alive element with the given params.

Parameters:
params -
Returns:
Proxy to the KeepAliveConfig MBean
See Also:
KeepAliveConfigKeys

removeKeepAliveConfig

void removeKeepAliveConfig()
Removes keep-alive element.


createConnectionPoolConfig

ConnectionPoolConfig createConnectionPoolConfig(Map<String,String> params)
Creates connection-pool element with the given params.

Parameters:
params -
Returns:
the ObjectName of the ConnectionPoolConfig
See Also:
ConnectionPoolConfigKeys

removeConnectionPoolConfig

void removeConnectionPoolConfig()
Removes connection-pool element.


getHTTPProtocolConfig

HTTPProtocolConfig getHTTPProtocolConfig()
Returns:
Proxy to the HTTPProtocolConfig MBean

createHTTPProtocolConfig

HTTPProtocolConfig createHTTPProtocolConfig(Map<String,String> params)
Creates http-protocol element with the given params.

Parameters:
params -
Returns:
Proxy to the HTTPProtocolConfig MBean
See Also:
HTTPProtocolConfigKeys

removeHTTPProtocolConfig

void removeHTTPProtocolConfig()
Removes http-protocol element.


getHTTPFileCacheConfig

HTTPFileCacheConfig getHTTPFileCacheConfig()
Returns:
Proxy to the HTTPFileCacheConfig MBean

createHTTPFileCacheConfig

HTTPFileCacheConfig createHTTPFileCacheConfig(Map<String,String> params)
Creates http-file-cache element with the given params.

Parameters:
params -
Returns:
Proxy to the HTTPFileCacheConfig MBean
See Also:
HTTPFileCacheConfigKeys

removeHTTPFileCacheConfig

void removeHTTPFileCacheConfig()
Removes http-file-cache element.


createHTTPListenerConfig

HTTPListenerConfig createHTTPListenerConfig(String name,
                                            String address,
                                            int port,
                                            String defaultVirtualServer,
                                            String serverName,
                                            Map<String,String> optional)
Create an Parameters:

Parameters:
name - the name (id) of the newly created listener
address - IP address of the listener
port - port of the listener
defaultVirtualServer - The name of the default virtual server for this particular connection group.
serverName -
optional - optional parameters keyed by one of XXX_KEY
Returns:
A proxy to the HTTPListenerConfig MBean
See Also:
HTTPListenerConfigKeys

removeHTTPListenerConfig

void removeHTTPListenerConfig(String name)
Remove the <http-listener>. Will fail if the <http-listener> is referred to by other elements.

Parameters:
name - the name (id) of the http listener to be removed.

createVirtualServerConfig

VirtualServerConfig createVirtualServerConfig(String name,
                                              String hosts,
                                              Map<String,String> optional)
Create a . Most fields will default to reasonable values. Legal keys include:

Parameters:
name - the name (id) of the newly created virtual server
hosts - comma-separated list of hosts
optional - optional params
Returns:
A proxy to the VirtualServerConfig MBean.
See Also:
VirtualServerConfigKeys

removeVirtualServerConfig

void removeVirtualServerConfig(String virtualServerName)
Remove the <virtual-server>. Will fail if the <virtual-server> is referred to by other elements.

Parameters:
virtualServerName -

getAccessLogConfig

AccessLogConfig getAccessLogConfig()
Get the AccessLogConfig.


getRequestProcessingConfig

RequestProcessingConfig getRequestProcessingConfig()
Get the RequestProcessingConfig.


getConnectionPoolConfig

ConnectionPoolConfig getConnectionPoolConfig()
Get the ConnectionPoolConfig.


Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.