2011-11-07 22:13:53 +00:00
|
|
|
// Copyright 2011 Mark Cavage, Inc. All rights reserved.
|
|
|
|
|
2019-08-27 21:11:49 +00:00
|
|
|
var assert = require('assert-plus')
|
|
|
|
var util = require('util')
|
2011-11-07 22:13:53 +00:00
|
|
|
|
2019-08-27 21:11:49 +00:00
|
|
|
var LDAPMessage = require('./result')
|
|
|
|
// var Protocol = require('../protocol')
|
2011-11-07 22:13:53 +00:00
|
|
|
|
2019-08-27 21:11:49 +00:00
|
|
|
/// --- API
|
2011-11-07 22:13:53 +00:00
|
|
|
|
2019-08-27 21:11:49 +00:00
|
|
|
function AbandonResponse (options) {
|
|
|
|
options = options || {}
|
|
|
|
assert.object(options)
|
2011-11-07 22:13:53 +00:00
|
|
|
|
2019-08-27 21:11:49 +00:00
|
|
|
options.protocolOp = 0
|
|
|
|
LDAPMessage.call(this, options)
|
2011-11-07 22:13:53 +00:00
|
|
|
}
|
2019-08-27 21:11:49 +00:00
|
|
|
util.inherits(AbandonResponse, LDAPMessage)
|
2015-10-31 17:28:25 +00:00
|
|
|
Object.defineProperties(AbandonResponse.prototype, {
|
|
|
|
type: {
|
2019-08-27 21:11:49 +00:00
|
|
|
get: function getType () { return 'AbandonResponse' },
|
2015-10-31 17:28:25 +00:00
|
|
|
configurable: false
|
|
|
|
}
|
2019-08-27 21:11:49 +00:00
|
|
|
})
|
2011-11-07 22:13:53 +00:00
|
|
|
|
2019-08-27 21:11:49 +00:00
|
|
|
AbandonResponse.prototype.end = function (status) {}
|
2011-11-07 22:13:53 +00:00
|
|
|
|
2012-02-18 08:15:52 +00:00
|
|
|
AbandonResponse.prototype._json = function (j) {
|
2019-08-27 21:11:49 +00:00
|
|
|
return j
|
|
|
|
}
|
2015-10-31 17:28:25 +00:00
|
|
|
|
2019-08-27 21:11:49 +00:00
|
|
|
/// --- Exports
|
2015-10-31 17:28:25 +00:00
|
|
|
|
2019-08-27 21:11:49 +00:00
|
|
|
module.exports = AbandonResponse
|