|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.vfny.geoserver.responses.wfs.DescribeResponse
Handles a DescribeFeatureType request and creates a DescribeFeatureType response GML string.
Constructor Summary | |
DescribeResponse()
|
Method Summary | |
void |
abort(GeoServer gs)
Called when things go horriably wrong. |
boolean |
allSameType(java.util.Collection featureTypeNames,
Request request)
Checks that the collection of featureTypeNames all have the same prefix. |
void |
execute(Request request)
Constructor with request. |
java.lang.String |
getContentType(GeoServer gs)
DOCUMENT ME! |
java.lang.String |
writeFile(java.lang.String inputFileName)
Adds a feature type object to the final output buffer |
void |
writeTo(java.io.OutputStream out)
Writes the describe response to the output stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DescribeResponse()
Method Detail |
public void execute(Request request) throws WfsException
execute
in interface Response
request
- The DescribeFeatureType request object.
WfsException
- For any problems making the xml response.public java.lang.String getContentType(GeoServer gs)
getContentType
in interface Response
gs
- DOCUMENT ME!
public void writeTo(java.io.OutputStream out) throws WfsException
writeTo
in interface Response
out
- Where to write to.
WfsException
- For any io exceptions. Needs to be a buffer or
file strategy, if on SPEED it's already too late at this point
and the client is going to get some odd errors.public java.lang.String writeFile(java.lang.String inputFileName) throws WfsException
inputFileName
- The name of the feature type.
WfsException
- For io problems reading the file.public boolean allSameType(java.util.Collection featureTypeNames, Request request) throws WfsException
featureTypeNames
- list of featureTypes, generally from a
DescribeFeatureType request.request
- DOCUMENT ME!
WfsException
- if any of the names do not exist in this
repository.public void abort(GeoServer gs)
Response
Used try and restore application state when things go wrong. This is called by AbstractAction to try and recover when sending out a ServiceException.
Allows a Response a chance to clean up after its self when AbstractionAction is error handling.
abort
in interface Response
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |