org.apache.geronimo.jetty6
Class JettyManagerImpl

java.lang.Object
  extended by org.apache.geronimo.jetty6.JettyManagerImpl
All Implemented Interfaces:
NetworkManager, WebManager

public class JettyManagerImpl
extends Object
implements WebManager

Jetty implementation of WebManager. Knows how to manipulate other Jetty objects for management purposes.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.geronimo.management.geronimo.WebManager
WebManager.ConnectorAttribute<T>, WebManager.ConnectorType
 
Field Summary
static GBeanInfo GBEAN_INFO
           
 
Fields inherited from interface org.apache.geronimo.management.geronimo.WebManager
PROTOCOL_AJP, PROTOCOL_HTTP, PROTOCOL_HTTPS
 
Constructor Summary
JettyManagerImpl(Kernel kernel)
           
 
Method Summary
 WebAccessLog getAccessLog(WebContainer container)
          Gets the WebAccessLog implementation for a web container.
 List<WebManager.ConnectorAttribute> getConnectorAttributes(WebManager.ConnectorType connectorType)
           
 AbstractName getConnectorConfiguration(WebManager.ConnectorType connectorType, List<WebManager.ConnectorAttribute> connectorAttributes, WebContainer container, String uniqueName)
           
 NetworkConnector[] getConnectors()
          Gets the ObjectNames of any existing connectors.
 NetworkConnector[] getConnectors(String protocol)
          Gets the ObjectNames of any existing connectors for the specified protocol.
 NetworkConnector[] getConnectorsForContainer(Object container)
          Gets the ObjectNames of any existing connectors for the specified container.
 NetworkConnector[] getConnectorsForContainer(Object container, String protocol)
          Gets the ObjectNames of any existing connectors for the specified container for the specified protocol.
 WebManager.ConnectorType getConnectorType(AbstractName connectorName)
           
 List<WebManager.ConnectorType> getConnectorTypes()
           
 Object[] getContainers()
          Get a list of containers for this web implementation.
static GBeanInfo getGBeanInfo()
           
 String getProductName()
          Gets the name of the product that this manager manages.
 String[] getSupportedProtocols()
          Gets the protocols that this web container supports (that you can create connectors for).
 void removeConnector(AbstractName connectorName)
          Removes a connector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO
Constructor Detail

JettyManagerImpl

public JettyManagerImpl(Kernel kernel)
Method Detail

getProductName

public String getProductName()
Description copied from interface: NetworkManager
Gets the name of the product that this manager manages.

Specified by:
getProductName in interface NetworkManager

getContainers

public Object[] getContainers()
Get a list of containers for this web implementation.

Specified by:
getContainers in interface NetworkManager

getSupportedProtocols

public String[] getSupportedProtocols()
Gets the protocols that this web container supports (that you can create connectors for).

Specified by:
getSupportedProtocols in interface NetworkManager

removeConnector

public void removeConnector(AbstractName connectorName)
Removes a connector. This shuts it down if necessary, and removes it from the server environment. It must be a connector that this container is responsible for.

Specified by:
removeConnector in interface NetworkManager
Parameters:
connectorName -

getConnectors

public NetworkConnector[] getConnectors(String protocol)
Gets the ObjectNames of any existing connectors for the specified protocol.

Specified by:
getConnectors in interface NetworkManager
Parameters:
protocol - A protocol as returned by getSupportedProtocols

getAccessLog

public WebAccessLog getAccessLog(WebContainer container)
Description copied from interface: WebManager
Gets the WebAccessLog implementation for a web container. May be null if the access log cannot be managed.

Specified by:
getAccessLog in interface WebManager
Parameters:
container - The container whose access log is interesting

getConnectorTypes

public List<WebManager.ConnectorType> getConnectorTypes()
Specified by:
getConnectorTypes in interface WebManager

getConnectorAttributes

public List<WebManager.ConnectorAttribute> getConnectorAttributes(WebManager.ConnectorType connectorType)
Specified by:
getConnectorAttributes in interface WebManager

getConnectorConfiguration

public AbstractName getConnectorConfiguration(WebManager.ConnectorType connectorType,
                                              List<WebManager.ConnectorAttribute> connectorAttributes,
                                              WebContainer container,
                                              String uniqueName)
Specified by:
getConnectorConfiguration in interface WebManager

getConnectorType

public WebManager.ConnectorType getConnectorType(AbstractName connectorName)
Specified by:
getConnectorType in interface WebManager

getConnectors

public NetworkConnector[] getConnectors()
Gets the ObjectNames of any existing connectors.

Specified by:
getConnectors in interface NetworkManager

getConnectorsForContainer

public NetworkConnector[] getConnectorsForContainer(Object container,
                                                    String protocol)
Description copied from interface: NetworkManager
Gets the ObjectNames of any existing connectors for the specified container for the specified protocol.

Specified by:
getConnectorsForContainer in interface NetworkManager
Parameters:
container - The container to get connectors for
protocol - A protocol as returned by getSupportedProtocols

getConnectorsForContainer

public NetworkConnector[] getConnectorsForContainer(Object container)
Description copied from interface: NetworkManager
Gets the ObjectNames of any existing connectors for the specified container.

Specified by:
getConnectorsForContainer in interface NetworkManager
Parameters:
container - The container to get connectors for

getGBeanInfo

public static GBeanInfo getGBeanInfo()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.