abstract class AbstractHTTPData extends org.apache.avalon.framework.logger.AbstractLogEnabled implements Data
| Modifier and Type | Field and Description |
|---|---|
private HTTPInstrumentManagerConnection |
m_connection |
private java.lang.String |
m_description |
private int |
m_stateVersion
The current state version of the remote object.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractHTTPData(HTTPInstrumentManagerConnection connection,
java.lang.String description)
Creates a new AbstractHTTPData.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerprivate HTTPInstrumentManagerConnection m_connection
private java.lang.String m_description
private int m_stateVersion
protected AbstractHTTPData(HTTPInstrumentManagerConnection connection, java.lang.String description)
connection - The connection used to communicate with the server.description - An initial description.public InstrumentManagerConnection getConnection()
public java.lang.String getDescription()
getDescription in interface Datapublic int getStateVersion()
getStateVersion in interface Dataprotected void update(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
configuration - Configuration object to load from.org.apache.avalon.framework.configuration.ConfigurationException - If there are any problems.protected java.lang.String urlEncode(java.lang.String val)
val - String to be URL encoded.