mirror of
https://github.com/openkmip/pykmip
synced 2025-12-17 16:53:48 +00:00
Adding payload factories
This change adds a set of payload factories to the factory suite, which handle the construction of default request/response payload objects for KMIP operations. These factories replace the use of payload operation dictionaries for dynamic payload object lookup. A payload factory test suite and minor logging tweaks are included.
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import logging
|
||||
import time
|
||||
|
||||
from kmip.core.messages.messages import RequestMessage
|
||||
@@ -43,6 +44,7 @@ from kmip.core.utils import BytearrayStream
|
||||
|
||||
class Processor(object):
|
||||
def __init__(self, handler):
|
||||
self.logger = logging.getLogger(__name__)
|
||||
self._handler = handler
|
||||
|
||||
def process(self, istream, ostream):
|
||||
|
||||
Reference in New Issue
Block a user