org.apache.excalibur.instrument.client.http
Class AbstractHTTPData

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.excalibur.instrument.client.http.AbstractHTTPData
All Implemented Interfaces:
org.apache.avalon.framework.logger.LogEnabled, Data
Direct Known Subclasses:
AbstractHTTPElementData, HTTPInstrumentManagerData

abstract class AbstractHTTPData
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements Data

Since:
4.1
Version:
CVS $Revision: 1.4 $ $Date: 2004/02/28 11:47:23 $
Author:
Avalon Development Team

Field Summary
private  HTTPInstrumentManagerConnection m_connection
           
private  java.lang.String m_description
           
private  int m_stateVersion
          The current state version of the remote object.
 
Constructor Summary
protected AbstractHTTPData(HTTPInstrumentManagerConnection connection, java.lang.String description)
          Creates a new AbstractHTTPData.
 
Method Summary
 InstrumentManagerConnection getConnection()
          Returns the InstrumentManagerConnection that owns the data object.
 java.lang.String getDescription()
          Returns the description.
 int getStateVersion()
          Returns the state version.
protected  void update(org.apache.avalon.framework.configuration.Configuration configuration)
          Update the contents of the object using values from the Configuration object.
protected  java.lang.String urlEncode(java.lang.String val)
          URL encode the specified string.
 
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
 
Methods inherited from interface org.apache.excalibur.instrument.client.Data
update
 

Field Detail

m_connection

private HTTPInstrumentManagerConnection m_connection

m_description

private java.lang.String m_description

m_stateVersion

private int m_stateVersion
The current state version of the remote object.

Constructor Detail

AbstractHTTPData

protected AbstractHTTPData(HTTPInstrumentManagerConnection connection,
                           java.lang.String description)
Creates a new AbstractHTTPData.

Parameters:
connection - The connection used to communicate with the server.
description - An initial description.
Method Detail

getConnection

public InstrumentManagerConnection getConnection()
Returns the InstrumentManagerConnection that owns the data object.

Returns:
The InstrumentManagerConnection that owns the data object.

getDescription

public java.lang.String getDescription()
Returns the description.

Specified by:
getDescription in interface Data
Returns:
The description.

getStateVersion

public int getStateVersion()
Returns the state version.

Specified by:
getStateVersion in interface Data
Returns:
The state version.

update

protected void update(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Update the contents of the object using values from the Configuration object.

Parameters:
configuration - Configuration object to load from.
Throws:
org.apache.avalon.framework.configuration.ConfigurationException - If there are any problems.

urlEncode

protected java.lang.String urlEncode(java.lang.String val)
URL encode the specified string.

Parameters:
val - String to be URL encoded.
Returns:
The URL encoded string.