uk.org.ogsadai.dataresource
Class StatusOfDataServices

java.lang.Object
  |
  +--uk.org.ogsadai.dataresource.StatusOfDataServices
All Implemented Interfaces:
PropertyCallback

public class StatusOfDataServices
extends java.lang.Object
implements PropertyCallback

This class facilitates the dynamic properties of the SQLMultipleDataResource data resource accessor.

Author:
The OGSA-DAI Project Team.

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement
static java.lang.String DATA_SERVICE
          Constant describing the data service resource's name used when creating the element with info about it.
static java.lang.String DESCRIPTION
          Constant giving a description about the data service resource used when creating the element with info about it.
(package private)  SQLMultipleDataResourceAccessor mDataResource
          An SQLMultipleDataResourceAccessor accessor
static java.lang.String RESPONSE
          Constant describing the data service resource's last response used when creating the element with info about it.
 
Constructor Summary
StatusOfDataServices(SQLMultipleDataResourceAccessor dataRes)
          The constructor of the class.
 
Method Summary
private  org.w3c.dom.Element getStatus()
          First, call the data resource and get info about data services.
 java.lang.Object getValue(javax.xml.namespace.QName name)
          get the value of the property
 void setSecurityContext(SecurityContext sec)
          Set the security context
 void setValue(javax.xml.namespace.QName name, java.lang.Object value)
          set value to a property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
Copyright statement

See Also:
Constant Field Values

DATA_SERVICE

public static final java.lang.String DATA_SERVICE
Constant describing the data service resource's name used when creating the element with info about it.

See Also:
Constant Field Values

DESCRIPTION

public static final java.lang.String DESCRIPTION
Constant giving a description about the data service resource used when creating the element with info about it.

See Also:
Constant Field Values

RESPONSE

public static final java.lang.String RESPONSE
Constant describing the data service resource's last response used when creating the element with info about it.

See Also:
Constant Field Values

mDataResource

SQLMultipleDataResourceAccessor mDataResource
An SQLMultipleDataResourceAccessor accessor

Constructor Detail

StatusOfDataServices

public StatusOfDataServices(SQLMultipleDataResourceAccessor dataRes)
The constructor of the class.

Parameters:
dataRes - An SQLMultipleDataResourceAccessor accessor.
Method Detail

getValue

public java.lang.Object getValue(javax.xml.namespace.QName name)
get the value of the property

Specified by:
getValue in interface PropertyCallback
Parameters:
name - the name of the property whose value will be extracted.
Returns:
property value

setValue

public void setValue(javax.xml.namespace.QName name,
                     java.lang.Object value)
set value to a property

Specified by:
setValue in interface PropertyCallback
Parameters:
name - The name of the property.
value - the value of the property.
Throws:
java.lang.UnsupportedOperationException

setSecurityContext

public void setSecurityContext(SecurityContext sec)
Set the security context

Specified by:
setSecurityContext in interface PropertyCallback
Parameters:
sec - Security context

getStatus

private org.w3c.dom.Element getStatus()
First, call the data resource and get info about data services. Then, construct the element on the info.

Returns:
Element which is to be sent to client as property