|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vfny.geoserver.responses.wfs.TransactionResponse
Handles a Transaction request and creates a TransactionResponse string.
| Field Summary | |
protected org.geotools.data.Transaction |
transaction
Geotools2 transaction used for this opperations |
| Constructor Summary | |
TransactionResponse()
Constructor |
|
| Method Summary | |
void |
abort(GeoServer gs)
Called when things go horriably wrong. |
void |
execute(Request request)
Excecutes a request. |
protected void |
execute(TransactionRequest transactionRequest)
Execute Transaction request. |
protected void |
featureValidation(org.geotools.feature.FeatureType type,
org.geotools.feature.FeatureCollection collection)
|
java.lang.String |
getContentType(GeoServer gs)
Responce MIME type as define by ServerConig. |
protected void |
integrityValidation(java.util.Map stores,
com.vividsolutions.jts.geom.Envelope check)
|
void |
writeTo(java.io.OutputStream out)
Writes generated xmlResponse. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected org.geotools.data.Transaction transaction
| Constructor Detail |
public TransactionResponse()
| Method Detail |
public void execute(Request request)
throws WfsException
ResponseWe should clarify when a ServiceException is thrown? I would assume that a "failed" request should still result in a Response that we could write out.
execute in interface Responserequest - a Request object that implementations should cast to it's
Request specialization, wich must contain the parsed and ready
to use parameters sent by the calling client. In general, such a
Request will be created by either a KVP or XML request reader;
resulting in a Request object more usefull than a set of raw
parameters, as can be the list of feature types requested as a
set of FeatureTypeInfo objects rather than just a list of String
type names
WfsException
protected void execute(TransactionRequest transactionRequest)
throws WfsException
The results of this opperation are stored for use by writeTo:
Because we are using geotools2 locking facilities our modification will simply fail with IOException if we have not provided proper authorization.
The specification allows a WFS to implement PARTIAL sucess if it is unable to rollback all the requested changes. This implementation is able to offer full Rollback support and will not require the use of PARTIAL success.
transactionRequest -
WfsException
WfsTransactionException - DOCUMENT ME!
protected void featureValidation(org.geotools.feature.FeatureType type,
org.geotools.feature.FeatureCollection collection)
throws java.io.IOException,
WfsTransactionException
java.io.IOException
WfsTransactionException
protected void integrityValidation(java.util.Map stores,
com.vividsolutions.jts.geom.Envelope check)
throws java.io.IOException,
WfsTransactionException
java.io.IOException
WfsTransactionExceptionpublic java.lang.String getContentType(GeoServer gs)
getContentType in interface Responsegs - DOCUMENT ME!
public void writeTo(java.io.OutputStream out)
throws ServiceException,
java.io.IOException
I have delayed commiting the result until we have returned it to the user, this gives us a chance to rollback if we are not able to provide a response.
I could not quite figure out what to about releasing locks. It could be we are supposed to release locks even if the transaction fails, or only if it succeeds.
writeTo in interface Responseout - DOCUMENT ME!
ServiceException - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!public void abort(GeoServer gs)
ResponseUsed 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 | |||||||||