new IndividualResourceHandler(ds, dboFactory, rsrcPath [, options])
Create new handler.
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
ds |
module:x2node-dbos.DataSource | Data source. | |
dboFactory |
module:x2node-dbos~DBOFactory | DBO factory. | |
rsrcPath |
string | Resource path. | |
options |
Object |
<optional> |
Options. |
- Implements:
Extends
Members
-
_dboFactory :module:x2node-dbos~DBOFactory
-
The DBO factory.
Type:
-
_log :function
-
Debug logger.
Type:
- function
- Inherited From:
- Overrides:
-
_options :Object
-
Options. Always present, always has sections for the methods.
Type:
- Object
-
_recordTypeDesc :module:x2node-records~RecordTypeDescriptor
-
Record type descriptor.
Type:
-
_recordTypeName :string
-
Record type name.
Type:
- string
-
_recordTypes :module:x2node-records~RecordTypesLibrary
-
Record types library.
Type:
-
_txFactory :module:x2node-dbos~TxFactory
-
The transaction factory.
Type:
Methods
-
_createTransactionContext(call)
-
Create new transaction context object.
Parameters:
Name Type Description call
module:x2node-ws~ServiceCall The call. - Inherited From:
- Overrides:
Returns:
New context. -
OPTIONS(call, call)
-
If present on the handler, gives it a chance to add handler-specific headers to an OPTIONS HTTP request response.
Parameters:
Name Type Description call
module:x2node-ws~ServiceCall The call. call
module:x2node-ws~ServiceResponse The response. - Implements: