thrownewTAPException("Incorrect upload schema! Its ADQL name MUST be \""+TAPMetadata.STDSchema.UPLOADSCHEMA.label+"\" ; here is is \""+uplSchema.getADQLName()+"\".",UWSException.INTERNAL_SERVER_ERROR);
else
this.uploadSchema=uplSchema;
}
// ...or the default one:
else
this.uploadSchema=newTAPSchema(TAPMetadata.STDSchema.UPLOADSCHEMA.label,"Schema for tables uploaded by users.");
// Ensure UPLOAD is allowed by the TAP service specification...
if(this.service.uploadEnabled()){
// ...and set the rows or bytes limit:
@@ -103,9 +132,9 @@ public class Uploader {
* <p>Upload all the given VOTable inputs.</p>
*
* <p><i>Note:
* The {@link TAPTable} objects representing the uploaded tables will be associated with the TAP_UPLOAD schema defined in the TAP metadata.
* If no such schema is defined, a default one (whose DB name will be equals to the ADQL name, that's to say {@link STDSchema#UPLOADSCHEMA})
* is created and added into the TAP metadata. The corresponding schema should be then created in the database automatically by the {@link DBConnection}.
* The {@link TAPTable} objects representing the uploaded tables will be associated with the TAP_UPLOAD schema specified at the creation of this {@link Uploader}.
* If no such schema was specified, a default one (whose DB name will be equals to the ADQL name, that's to say {@link STDSchema#UPLOADSCHEMA})
* is created, will be associated with the uploaded tables and will be returned by this function.