FileDocCategorySizeDatePackage
HTTPServiceConfig.javaAPI DocGlassfish v2 API8331Fri May 04 22:30:34 BST 2007com.sun.appserv.management.config

HTTPServiceConfig

public interface HTTPServiceConfig implements com.sun.appserv.management.base.Container, ConfigElement, PropertiesAccess
Configuration for the <http-service> element.

Fields Summary
public static final String
J2EE_TYPE
The j2eeType as returned by {@link com.sun.appserv.management.base.AMX#getJ2EEType}.
Constructors Summary
Methods Summary
public AccessLogConfigcreateAccessLogConfig(java.util.Map params)
Creates access-log element with the given params.

param
params
return
Proxy to the AccessLogConfig MBean
see
AccessLogConfigKeys

public ConnectionPoolConfigcreateConnectionPoolConfig(java.util.Map params)
Creates connection-pool element with the given params.

param
params
return
the ObjectName of the ConnectionPoolConfig
see
ConnectionPoolConfigKeys

public HTTPFileCacheConfigcreateHTTPFileCacheConfig(java.util.Map params)
Creates http-file-cache element with the given params.

param
params
return
Proxy to the HTTPFileCacheConfig MBean
see
HTTPFileCacheConfigKeys

public HTTPListenerConfigcreateHTTPListenerConfig(java.lang.String name, java.lang.String address, int port, java.lang.String defaultVirtualServer, java.lang.String serverName, java.util.Map optional)
Create an Parameters:
  • {@link HTTPListenerConfigKeys#ADDRESS_KEY}
  • {@link HTTPListenerConfigKeys#PORT_KEY}
  • {@link HTTPListenerConfigKeys#ENABLED_KEY}
  • {@link HTTPListenerConfigKeys#SECURITY_ENABLED_KEY}
  • {@link HTTPListenerConfigKeys#DEFAULT_VIRTUAL_SERVER_KEY}
  • {@link HTTPListenerConfigKeys#ACCEPTOR_THREADS_KEY}
  • {@link HTTPListenerConfigKeys#XPOWERED_BY_KEY}
  • {@link HTTPListenerConfigKeys#XPOWERED_BY_KEY}
  • {@link HTTPListenerConfigKeys#IGNORE_MISSING_REFERENCES_KEY} (for defaultVirtualServer)

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

public HTTPProtocolConfigcreateHTTPProtocolConfig(java.util.Map params)
Creates http-protocol element with the given params.

param
params
return
Proxy to the HTTPProtocolConfig MBean
see
HTTPProtocolConfigKeys

public KeepAliveConfigcreateKeepAliveConfig(java.util.Map params)
Creates keep-alive element with the given params.

param
params
return
Proxy to the KeepAliveConfig MBean
see
KeepAliveConfigKeys

public RequestProcessingConfigcreateRequestProcessingConfig(java.util.Map params)
Creates request-processing element with the given params.

param
params
return
Proxy to the RequestProcessingConfig MBean
see
RequestProcessingConfigKeys

public VirtualServerConfigcreateVirtualServerConfig(java.lang.String name, java.lang.String hosts, java.util.Map optional)
Create a . Most fields will default to reasonable values. Legal keys include:
    {@link VirtualServerConfigKeys#HTTP_LISTENERS_KEY} {@link VirtualServerConfigKeys#STATE_KEY} {@link VirtualServerConfigKeys#DOC_ROOT_PROPERTY_KEY} {@link VirtualServerConfigKeys#ACCESS_LOG_PROPERTY_KEY}

param
name the name (id) of the newly created virtual server
param
hosts comma-separated list of hosts
param
optional optional params
return
A proxy to the VirtualServerConfig MBean.
see
VirtualServerConfigKeys

public AccessLogConfiggetAccessLogConfig()
Get the AccessLogConfig.

public ConnectionPoolConfiggetConnectionPoolConfig()
Get the ConnectionPoolConfig.

public HTTPFileCacheConfiggetHTTPFileCacheConfig()

return
Proxy to the HTTPFileCacheConfig MBean

public java.util.MapgetHTTPListenerConfigMap()
Calls Container.getContaineeMap( XTypes.HTTP_LISTENER_CONFIG ).

return
Map of all HTTPListenerConfig proxies, keyed by the name of the listener.
see
com.sun.appserv.management.base.Container#getContaineeMap

public HTTPProtocolConfiggetHTTPProtocolConfig()

return
Proxy to the HTTPProtocolConfig MBean

public KeepAliveConfiggetKeepAliveConfig()

return
Proxy to the KeepAliveConfig MBean

public RequestProcessingConfiggetRequestProcessingConfig()
Get the RequestProcessingConfig.

public java.util.MapgetVirtualServerConfigMap()
Calls Container.getContaineeMap( XTypes.VIRTUAL_SERVER_CONFIG ).

return
Map of all VirtualServerConfig proxies, keyed by the name of the virtual server.
see
com.sun.appserv.management.base.Container#getContaineeMap

public voidremoveAccessLogConfig()
Removes access-log element.

public voidremoveConnectionPoolConfig()
Removes connection-pool element.

public voidremoveHTTPFileCacheConfig()
Removes http-file-cache element.

public voidremoveHTTPListenerConfig(java.lang.String name)
Remove the <http-listener>. Will fail if the <http-listener> is referred to by other elements.

param
name the name (id) of the http listener to be removed.

public voidremoveHTTPProtocolConfig()
Removes http-protocol element.

public voidremoveKeepAliveConfig()
Removes keep-alive element.

public voidremoveRequestProcessingConfig()
Removes request-processing element.

public voidremoveVirtualServerConfig(java.lang.String virtualServerName)
Remove the <virtual-server>. Will fail if the <virtual-server> is referred to by other elements.

param
virtualServerName