org.apache.excalibur.instrument.manager.http
Class InstrumentManagerHTTPConnector

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.excalibur.instrument.AbstractLogEnabledInstrumentable
          extended byorg.apache.excalibur.instrument.manager.http.InstrumentManagerHTTPConnector
All Implemented Interfaces:
Configurable, DefaultInstrumentManagerConnector, Instrumentable, LogEnabled, Startable

public class InstrumentManagerHTTPConnector
extends AbstractLogEnabledInstrumentable
implements DefaultInstrumentManagerConnector, Configurable, Startable

An HTTP connector which allows a client to connect to the ServiceManager using the HTTP protocol. This connector makes use of an extremely lightweight internal HTTP server to provide this access. If the application is already running a full blown Servlet Engine, one alternative to this connector is to make use of the InstrumentManagerServlet.

Since:
4.1
Version:
CVS $Revision: 1.6 $ $Date: 2004/03/06 14:01:28 $
Author:
Avalon Development Team

Field Summary
static int DEFAULT_PORT
          The default port.
static java.lang.String ENCODING
          The encoding to use when writing out pages and reading in parameters.
static java.lang.String XML_BANNER
           
 
Fields inherited from interface org.apache.excalibur.instrument.Instrumentable
EMPTY_INSTRUMENT_ARRAY, EMPTY_INSTRUMENTABLE_ARRAY
 
Constructor Summary
InstrumentManagerHTTPConnector()
          Creates a new InstrumentManagerHTTPConnector.
 
Method Summary
 void configure(Configuration configuration)
          Pass the Configuration to the Configurable class.
 void setInstrumentManager(DefaultInstrumentManager manager)
          Set the InstrumentManager to which the Connecter will provide access.
 void start()
          Starts the component.
 void stop()
          Stops the component.
 
Methods inherited from class org.apache.excalibur.instrument.AbstractLogEnabledInstrumentable
addChildInstrumentable, addInstrument, getChildInstrumentables, getInstrumentableName, getInstruments, setInstrumentableName
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PORT

public static final int DEFAULT_PORT
The default port.

See Also:
Constant Field Values

ENCODING

public static final java.lang.String ENCODING
The encoding to use when writing out pages and reading in parameters.

See Also:
Constant Field Values

XML_BANNER

public static final java.lang.String XML_BANNER
See Also:
Constant Field Values
Constructor Detail

InstrumentManagerHTTPConnector

public InstrumentManagerHTTPConnector()
Creates a new InstrumentManagerHTTPConnector.

Method Detail

setInstrumentManager

public void setInstrumentManager(DefaultInstrumentManager manager)
Set the InstrumentManager to which the Connecter will provide access. This method is called before the new connector is configured or started.

Specified by:
setInstrumentManager in interface DefaultInstrumentManagerConnector

configure

public void configure(Configuration configuration)
               throws ConfigurationException
Description copied from interface: Configurable
Pass the Configuration to the Configurable class.

Specified by:
configure in interface Configurable
Parameters:
configuration - the class configurations. Must not be null.
Throws:
ConfigurationException - if an error occurs

start

public void start()
           throws java.lang.Exception
Description copied from interface: Startable
Starts the component.

Specified by:
start in interface Startable
Throws:
java.lang.Exception - if Component can not be started

stop

public void stop()
          throws java.lang.Exception
Description copied from interface: Startable
Stops the component.

Specified by:
stop in interface Startable
Throws:
java.lang.Exception - if the Component can not be Stopped.


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.