org.apache.geronimo.jetty
Class JettyManagerImpl

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

public class JettyManagerImpl
extends Object
implements org.apache.geronimo.management.geronimo.WebManager

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


Field Summary
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
 
Fields inherited from interface org.apache.geronimo.management.geronimo.WebManager
PROTOCOL_AJP, PROTOCOL_HTTP, PROTOCOL_HTTPS
 
Constructor Summary
JettyManagerImpl(org.apache.geronimo.kernel.Kernel kernel)
           
 
Method Summary
 org.apache.geronimo.management.geronimo.WebConnector addConnector(org.apache.geronimo.management.geronimo.WebContainer container, String uniqueName, String protocol, String host, int port)
          Creates a new connector, and returns the ObjectName for it.
 org.apache.geronimo.management.geronimo.WebAccessLog getAccessLog(org.apache.geronimo.management.geronimo.WebContainer container)
           
 org.apache.geronimo.management.geronimo.NetworkConnector[] getConnectors()
          Gets the ObjectNames of any existing connectors.
 org.apache.geronimo.management.geronimo.NetworkConnector[] getConnectors(String protocol)
          Gets the ObjectNames of any existing connectors for the specified protocol.
 org.apache.geronimo.management.geronimo.NetworkConnector[] getConnectorsForContainer(Object container)
           
 org.apache.geronimo.management.geronimo.NetworkConnector[] getConnectorsForContainer(Object container, String protocol)
           
 Object[] getContainers()
          Get a list of containers for this web implementation.
static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
           
 String getProductName()
           
 String[] getSupportedProtocols()
          Gets the protocols that this web container supports (that you can create connectors for).
 void removeConnector(org.apache.geronimo.gbean.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 org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail

JettyManagerImpl

public JettyManagerImpl(org.apache.geronimo.kernel.Kernel kernel)
Method Detail

getProductName

public String getProductName()
Specified by:
getProductName in interface org.apache.geronimo.management.geronimo.NetworkManager

addConnector

public org.apache.geronimo.management.geronimo.WebConnector addConnector(org.apache.geronimo.management.geronimo.WebContainer container,
                                                                         String uniqueName,
                                                                         String protocol,
                                                                         String host,
                                                                         int port)
Creates a new connector, and returns the ObjectName for it. Note that the connector may well require further customization before being fully functional (e.g. SSL settings for an HTTPS connector).

Specified by:
addConnector in interface org.apache.geronimo.management.geronimo.WebManager

getContainers

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

Specified by:
getContainers in interface org.apache.geronimo.management.geronimo.NetworkManager

getSupportedProtocols

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

Specified by:
getSupportedProtocols in interface org.apache.geronimo.management.geronimo.NetworkManager

removeConnector

public void removeConnector(org.apache.geronimo.gbean.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 org.apache.geronimo.management.geronimo.NetworkManager
Parameters:
connectorName -

getConnectors

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

Specified by:
getConnectors in interface org.apache.geronimo.management.geronimo.NetworkManager
Parameters:
protocol - A protocol as returned by getSupportedProtocols

getAccessLog

public org.apache.geronimo.management.geronimo.WebAccessLog getAccessLog(org.apache.geronimo.management.geronimo.WebContainer container)
Specified by:
getAccessLog in interface org.apache.geronimo.management.geronimo.WebManager

getConnectors

public org.apache.geronimo.management.geronimo.NetworkConnector[] getConnectors()
Gets the ObjectNames of any existing connectors.

Specified by:
getConnectors in interface org.apache.geronimo.management.geronimo.NetworkManager

getConnectorsForContainer

public org.apache.geronimo.management.geronimo.NetworkConnector[] getConnectorsForContainer(Object container,
                                                                                            String protocol)
Specified by:
getConnectorsForContainer in interface org.apache.geronimo.management.geronimo.NetworkManager

getConnectorsForContainer

public org.apache.geronimo.management.geronimo.NetworkConnector[] getConnectorsForContainer(Object container)
Specified by:
getConnectorsForContainer in interface org.apache.geronimo.management.geronimo.NetworkManager

getGBeanInfo

public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()


Copyright © 2006 Apache Software Foundation. All Rights Reserved.