org.vfny.geoserver.responses.wfs
Class FeatureResponse

java.lang.Object
  extended byorg.vfny.geoserver.responses.wfs.FeatureResponse
All Implemented Interfaces:
Response

public class FeatureResponse
extends java.lang.Object
implements Response

Handles a Get Feature request and creates a Get Feature response GML string.


Constructor Summary
FeatureResponse()
          Empty constructor
 
Method Summary
 void abort(GeoServer gs)
          Release locks if we are into that sort of thing.
 void execute(FeatureRequest request)
          Performs a getFeatures, or getFeaturesWithLock (using gt2 locking ).
 void execute(Request req)
          Executes FeatureRequest.
 java.lang.String getContentType(GeoServer gs)
          DOCUMENT ME!
 void writeTo(java.io.OutputStream out)
          Jody here with one pass replacement for writeTo.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureResponse

public FeatureResponse()
Empty constructor

Method Detail

getContentType

public java.lang.String getContentType(GeoServer gs)
DOCUMENT ME!

Specified by:
getContentType in interface Response
Parameters:
gs - DOCUMENT ME!
Returns:
DOCUMENT ME!

writeTo

public void writeTo(java.io.OutputStream out)
             throws ServiceException
Jody here with one pass replacement for writeTo.

This code is a discussion point, when everyone has had there input we will try and set things up properly.

I am providing a mirror of the existing desing: - execute gathers the resultList - sets up the header

Specified by:
writeTo in interface Response
Parameters:
out - DOCUMENT ME!
Throws:
ServiceException - DOCUMENT ME!
java.lang.IllegalStateException - DOCUMENT ME!

execute

public void execute(Request req)
             throws ServiceException
Executes FeatureRequest.

Willing to execute a FetureRequest, or FeatureRequestWith Lock.

Specified by:
execute in interface Response
Parameters:
req - DOCUMENT ME!
Throws:
ServiceException - DOCUMENT ME!

execute

public void execute(FeatureRequest request)
             throws ServiceException
Performs a getFeatures, or getFeaturesWithLock (using gt2 locking ).

The idea is to grab the FeatureResulsts during execute, and use them during writeTo.

Parameters:
request -
Throws:
ServiceException
WfsException - DOCUMENT ME!

abort

public void abort(GeoServer gs)
Release locks if we are into that sort of thing.

Specified by:
abort in interface Response
See Also:
org.vfny.geoserver.responses.Response#abort()