WebService Class

Abstract class used to map HTTP requests to either virtual or concrete methods found in the extending class.

Constructors

There are no public constructors.

Properties

console

Public Methods

addModel( Class c ) returns void
Register model that this service will support
cA Java class that extends the javaxt.sql.Model abstract class.
addModel( Class c, boolean readOnly ) returns void
Register model that this service will support
cA Java class that extends the javaxt.sql.Model abstract class.
readOnlyIf true, the CRUD operations will be disabled. PUT, POST, and DELETE requests will be handled the same as GET requests.
addClass( Class c ) returns void
addClass( Class c, boolean readOnly ) returns void
getServiceResponse( ServiceRequest request ) returns ServiceResponse
Returns a ServiceResponse for a given request.
getServiceResponse( ServiceRequest request, Database database ) returns ServiceResponse
Returns a ServiceResponse for a given request and database.
beforeCreate( Object obj, ServiceRequest request ) returns void
This method is called immediately before a record is inserted into the database. Override this method to process the event.
objObject. If this method is called by this class, the Object will correspond to an instance of a javaxt.sql.Model
request
onCreate( Object obj, ServiceRequest request ) returns void
This method is called immediately after a record is inserted into the database. Override this method to process the event.
objObject. If this method is called by this class, the Object will correspond to an instance of a javaxt.sql.Model
request
beforeUpdate( Object obj, ServiceRequest request ) returns void
This method is called immediately before a record is updated in the database. Override this method to process the event.
objObject. If this method is called by this class, the Object will correspond to an instance of a javaxt.sql.Model
request
onUpdate( Object obj, ServiceRequest request ) returns void
This method is called immediately after a record is updated in the database. Override this method to process the event.
objObject. If this method is called by this class, the Object will correspond to an instance of a javaxt.sql.Model
request
beforeDelete( Object obj, ServiceRequest request ) returns void
This method is called immediately before a record is deleted in the database. Override this method to process the event.
objObject. If this method is called by this class, the Object will correspond to an instance of a javaxt.sql.Model
request
onDelete( Object obj, ServiceRequest request ) returns void
This method is called immediately after a record is deleted in the database. Override this method to process the event.
objObject. If this method is called by this class, the Object will correspond to an instance of a javaxt.sql.Model
request
createGeom( String hex ) returns Object
Used to create a JTS Geometry from a EWKT formatted string returned from PostgreSQL/PostGIS