org.deegree_impl.services.wfs.protocol
Class WFSLockFeatureResponse_Impl

java.lang.Object
  extended byorg.deegree_impl.services.OGCWebServiceResponse_Impl
      extended byorg.deegree_impl.services.wfs.protocol.WFSBasicResponse_Impl
          extended byorg.deegree_impl.services.wfs.protocol.WFSLockFeatureResponse_Impl
All Implemented Interfaces:
OGCWebServiceResponse, WFSBasicResponse, WFSLockFeatureResponse

class WFSLockFeatureResponse_Impl
extends WFSBasicResponse_Impl
implements WFSLockFeatureResponse

In response to a LockFeature request, the web feature server shall generate an XML document containing a lock identifier that a client application can reference when operating upon the locked features. The response can also contain optional blocks depending on the value of the lockAction attribute.

--------------------------------------------------------

Version:
$Revision: 1.3 $ $Date: 2004/03/12 15:56:49 $
Author:
Andreas Poth Katharina Lupp

Field Summary
private  java.util.ArrayList featuresLocked
           
private  java.util.ArrayList featuresNotLocked
           
private  java.lang.String lockId
           
 
Fields inherited from class org.deegree_impl.services.OGCWebServiceResponse_Impl
 
Constructor Summary
(package private) WFSLockFeatureResponse_Impl(OGCWebServiceRequest request, org.w3c.dom.Document exception, java.lang.String[] affectedFeatureTypes, java.lang.String lockId, java.lang.String[] featuresLocked, java.lang.String[] featuresNotLocked)
          constructor initializing the class with the
 
Method Summary
 void addAffectedFeatureTypes(java.lang.String affectedFeatureTypes)
          adds the
 void addFeaturesLocked(java.lang.String featuresLocked)
          adds the
 void addFeaturesNotLocked(java.lang.String featuresNotLocked)
          adds the
 java.lang.String[] getAffectedFeatureTypes()
          returns a list of feature type names that has been affected by the response.
 java.lang.String[] getFeaturesLocked()
          The method returns the feature identifiers of all the features that were locked by the LockFeature request.
 java.lang.String[] getFeaturesNotLocked()
          The method returns the feature identifiers of all the features that could not be locked by the LockFeature request.
 java.lang.String getLockId()
          returns the id of the locking action. the may be used to identify the request that locks a feature.
 void setAffectedFeatureTypes(java.lang.String[] affectedFeatureTypes)
          sets the
 void setFeaturesLocked(java.lang.String[] featuresLocked)
          sets the
 void setFeaturesNotLocked(java.lang.String[] featuresNotLocked)
          sets the
 void setLockId(java.lang.String lockId)
          sets the id of the locking action. the may be used to identify the request that locks a feature.
 java.lang.String toString()
           
 
Methods inherited from class org.deegree_impl.services.OGCWebServiceResponse_Impl
getException, getRequest, setException, setRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.deegree.services.wfs.protocol.WFSBasicResponse
getAffectedFeatureTypes
 
Methods inherited from interface org.deegree.services.OGCWebServiceResponse
getException, getRequest, setException, setRequest
 

Field Detail

featuresLocked

private java.util.ArrayList featuresLocked

featuresNotLocked

private java.util.ArrayList featuresNotLocked

lockId

private java.lang.String lockId
Constructor Detail

WFSLockFeatureResponse_Impl

WFSLockFeatureResponse_Impl(OGCWebServiceRequest request,
                            org.w3c.dom.Document exception,
                            java.lang.String[] affectedFeatureTypes,
                            java.lang.String lockId,
                            java.lang.String[] featuresLocked,
                            java.lang.String[] featuresNotLocked)
constructor initializing the class with the

Method Detail

getLockId

public java.lang.String getLockId()
returns the id of the locking action. the may be used to identify the request that locks a feature.

Specified by:
getLockId in interface WFSLockFeatureResponse

setLockId

public void setLockId(java.lang.String lockId)
sets the id of the locking action. the may be used to identify the request that locks a feature.


getFeaturesLocked

public java.lang.String[] getFeaturesLocked()
The method returns the feature identifiers of all the features that were locked by the LockFeature request.

Specified by:
getFeaturesLocked in interface WFSLockFeatureResponse

addFeaturesLocked

public void addFeaturesLocked(java.lang.String featuresLocked)
adds the


setFeaturesLocked

public void setFeaturesLocked(java.lang.String[] featuresLocked)
sets the


getFeaturesNotLocked

public java.lang.String[] getFeaturesNotLocked()
The method returns the feature identifiers of all the features that could not be locked by the LockFeature request. (possibly because they were already locked by someone else).

Specified by:
getFeaturesNotLocked in interface WFSLockFeatureResponse

addFeaturesNotLocked

public void addFeaturesNotLocked(java.lang.String featuresNotLocked)
adds the


setFeaturesNotLocked

public void setFeaturesNotLocked(java.lang.String[] featuresNotLocked)
sets the


toString

public java.lang.String toString()
Overrides:
toString in class WFSBasicResponse_Impl
Returns:

getAffectedFeatureTypes

public java.lang.String[] getAffectedFeatureTypes()
returns a list of feature type names that has been affected by the response.

Specified by:
getAffectedFeatureTypes in interface WFSBasicResponse

addAffectedFeatureTypes

public void addAffectedFeatureTypes(java.lang.String affectedFeatureTypes)
adds the


setAffectedFeatureTypes

public void setAffectedFeatureTypes(java.lang.String[] affectedFeatureTypes)
sets the