org.gvsig.remoteclient.wfs
Class WFSStatus

java.lang.Object
  extended by org.gvsig.remoteclient.RemoteClientStatus
      extended by org.gvsig.remoteclient.wfs.WFSStatus

public class WFSStatus
extends RemoteClientStatus

The status of the current WFS connection

Author:
Jorge Piera LlodrĂ¡ (piera_jor@gva.es)
See Also:
OpenGIS Web Feature Service (WFS) Implementation Specification

Field Summary
static int RESULTYPE_HITS
          The value hits indicates that a web feature service should process the GetFeature request and rather than return the entire result set, it should simply indicate the number of feature instance of the requested feature type(s) that satisfy the request.
static int RESULTYPE_RESULTS
          The default value results indicates that a web feature service should generate a complete response that contains all the features that satisfy the request.
 
Constructor Summary
WFSStatus(java.lang.String featureName)
           
WFSStatus(java.lang.String featureName, java.lang.String namespace)
           
 
Method Summary
 void addFeatureLocked(java.lang.String lockId)
          Adds a new Id
 void addFeatureToLock(java.lang.String idFeature)
          Adds a new feature locked
 void addFeatureToLock(java.lang.String propertyName, java.lang.String propertyValue)
          Adds a new feature locked
 WFSTTransaction createNewTransaction()
           
 int getExpiry()
           
 java.lang.String getFeatureFullName()
           
 java.lang.String getFeatureLockedAt(int i)
          Gets an identifier tha is blocked
 java.lang.String getFeatureName()
           
 int getFeaturesLocked()
           
 int getFeaturesToLockSize()
           
 java.lang.String getFeatureToLockAt(int i)
          Gets an identifier of a feature that is blocked
 java.lang.String[] getFields()
           
 WFSSpatialFilterOperation getFilterByArea()
           
 java.lang.String getFilterByAttribute()
           
 java.lang.String getFilterQueryLocked()
           
 java.lang.String getFilterQueryLockedPost()
           
 java.lang.String getLockAction()
           
 java.awt.geom.Rectangle2D getLockedArea()
           
 java.lang.Integer getMaxFeatures()
           
 java.lang.String getNamespaceLocation()
           
 java.lang.String getNamespacePrefix()
           
 java.lang.String getOnlineResource()
           
 java.lang.String getPassword()
           
 int getResultType()
           
 java.lang.Integer getTimeout()
           
 WFSTTransaction getTransaction()
           
 java.lang.String getUserName()
           
 void removeAllFilters()
           
 void removeFeaturesToLock()
          Remove all the features to lock
 void removeFilterByArea()
           
 void removeFilterByAttribute()
           
 void setExpiry(int expiry)
           
 void setFeatureName(java.lang.String featureName)
           
 void setFields(java.lang.String fields)
           
 void setFields(java.lang.String[] fields)
           
 void setFilterByArea(org.gvsig.fmap.geom.primitive.Envelope envelope, java.lang.String attributeName, java.lang.String srs, java.lang.Integer operation)
           
 void setFilterByArea(org.gvsig.fmap.geom.Geometry geometry, java.lang.String attributeName, java.lang.String srs, java.lang.Integer operation)
           
 void setFilterByAttribute(java.lang.String filterQuery)
           
 void setLockActionToAll()
          Set the lock action to all
 void setLockActionToSome()
          Set teh lock action to some
 void setLockedArea(java.awt.geom.Rectangle2D lockedArea, java.lang.String lockedAreaProperty)
           
 void setMaxFeatures(java.lang.Integer buffer)
           
 void setNamespaceLocation(java.lang.String namespaceLocation)
           
 void setNamespacePrefix(java.lang.String namespacePrefix)
           
 void setOnlineResource(java.lang.String url)
           
 void setPassword(java.lang.String password)
           
 void setResultType(int resultType)
           
 void setTimeout(java.lang.Integer timeout)
           
 void setUserName(java.lang.String userName)
           
 
Methods inherited from class org.gvsig.remoteclient.RemoteClientStatus
getExceptionFormat, getFormat, getHeight, getInfoFormat, getProtocol, getSrs, getWidth, setExceptionFormat, setFormat, setHeight, setInfoFormat, setProtocol, setSrs, setWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESULTYPE_HITS

public static final int RESULTYPE_HITS
The value hits indicates that a web feature service should process the GetFeature request and rather than return the entire result set, it should simply indicate the number of feature instance of the requested feature type(s) that satisfy the request.

See Also:
Constant Field Values

RESULTYPE_RESULTS

public static final int RESULTYPE_RESULTS
The default value results indicates that a web feature service should generate a complete response that contains all the features that satisfy the request.

See Also:
Constant Field Values
Constructor Detail

WFSStatus

public WFSStatus(java.lang.String featureName)

WFSStatus

public WFSStatus(java.lang.String featureName,
                 java.lang.String namespace)
Method Detail

addFeatureLocked

public void addFeatureLocked(java.lang.String lockId)
Adds a new Id

Parameters:
idLocked - the idLocked to add

addFeatureToLock

public void addFeatureToLock(java.lang.String idFeature)
Adds a new feature locked

Parameters:
idFeature - the feature id

addFeatureToLock

public void addFeatureToLock(java.lang.String propertyName,
                             java.lang.String propertyValue)
Adds a new feature locked

Parameters:
idFeature - the feature id

createNewTransaction

public WFSTTransaction createNewTransaction()

getExpiry

public int getExpiry()
Returns:
the expiry

getFeatureFullName

public java.lang.String getFeatureFullName()

getFeatureLockedAt

public java.lang.String getFeatureLockedAt(int i)
Gets an identifier tha is blocked

Parameters:
i - The id position
Returns:
The Id

getFeatureName

public java.lang.String getFeatureName()
Returns:
Returns the featureName.

getFeaturesLocked

public int getFeaturesLocked()
Returns:
the idsLocked size

getFeaturesToLockSize

public int getFeaturesToLockSize()
Returns:
the neumber of features blocked

getFeatureToLockAt

public java.lang.String getFeatureToLockAt(int i)
Gets an identifier of a feature that is blocked

Parameters:
i - The id position
Returns:
The Id

getFields

public java.lang.String[] getFields()
Returns:
Returns the fields.

getFilterByArea

public WFSSpatialFilterOperation getFilterByArea()
Returns:
the filterByArea

getFilterByAttribute

public java.lang.String getFilterByAttribute()
Returns:
Returns the filterQuery.

getFilterQueryLocked

public java.lang.String getFilterQueryLocked()
Returns:
the filterQueryLocked

getFilterQueryLockedPost

public java.lang.String getFilterQueryLockedPost()
Returns:
the filterQueryLocked

getLockAction

public java.lang.String getLockAction()
Returns:
the lockAction

getLockedArea

public java.awt.geom.Rectangle2D getLockedArea()
Returns:
the lockedArea

getMaxFeatures

public java.lang.Integer getMaxFeatures()
Returns:
Returns the buffer.

getNamespaceLocation

public java.lang.String getNamespaceLocation()
Returns:
the namespace URL

getNamespacePrefix

public java.lang.String getNamespacePrefix()
Returns:
the namespace prefix

getOnlineResource

public java.lang.String getOnlineResource()

getPassword

public java.lang.String getPassword()
Returns:
Returns the password.

getResultType

public int getResultType()
Returns:
the resultType

getTimeout

public java.lang.Integer getTimeout()
Returns:
Returns the timeout.

getTransaction

public WFSTTransaction getTransaction()

getUserName

public java.lang.String getUserName()
Returns:
Returns the userName.

removeAllFilters

public void removeAllFilters()

removeFeaturesToLock

public void removeFeaturesToLock()
Remove all the features to lock


removeFilterByArea

public void removeFilterByArea()

removeFilterByAttribute

public void removeFilterByAttribute()

setExpiry

public void setExpiry(int expiry)
Parameters:
expiry - the expiry to set

setFeatureName

public void setFeatureName(java.lang.String featureName)
Parameters:
featureName - The featureName to set.

setFields

public void setFields(java.lang.String fields)

setFields

public void setFields(java.lang.String[] fields)
Parameters:
fields - The fields to set.

setFilterByArea

public void setFilterByArea(org.gvsig.fmap.geom.primitive.Envelope envelope,
                            java.lang.String attributeName,
                            java.lang.String srs,
                            java.lang.Integer operation)
Parameters:
filterByArea - the filterByArea to set
operation - The geometric operation to apply. It has to be a value from AbstractFilter

setFilterByArea

public void setFilterByArea(org.gvsig.fmap.geom.Geometry geometry,
                            java.lang.String attributeName,
                            java.lang.String srs,
                            java.lang.Integer operation)
Parameters:
filterByArea - the filterByArea to set
operation - The geometric operation to apply. It has to be a value from AbstractFilter

setFilterByAttribute

public void setFilterByAttribute(java.lang.String filterQuery)
Parameters:
filterQuery - The filterQuery to set.

setLockActionToAll

public void setLockActionToAll()
Set the lock action to all


setLockActionToSome

public void setLockActionToSome()
Set teh lock action to some


setLockedArea

public void setLockedArea(java.awt.geom.Rectangle2D lockedArea,
                          java.lang.String lockedAreaProperty)
Parameters:
lockedArea - the lockedArea to set

setMaxFeatures

public void setMaxFeatures(java.lang.Integer buffer)
Parameters:
buffer - The buffer to set.

setNamespaceLocation

public void setNamespaceLocation(java.lang.String namespaceLocation)
Parameters:
namespace - the namespace to set

setNamespacePrefix

public void setNamespacePrefix(java.lang.String namespacePrefix)
Parameters:
namespaceprefix - the namespaceprefix to set

setOnlineResource

public void setOnlineResource(java.lang.String url)

setPassword

public void setPassword(java.lang.String password)
Parameters:
password - The password to set.

setResultType

public void setResultType(int resultType)
Parameters:
resultType - the resultType to set

setTimeout

public void setTimeout(java.lang.Integer timeout)
Parameters:
timeout - The timeout to set.

setUserName

public void setUserName(java.lang.String userName)
Parameters:
userName - The userName to set.


Copyright © 2014 gvSIG Association. All Rights Reserved.