2
0
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:
Peter Hamilton
2014-12-04 08:31:09 -05:00
parent 3918c320fd
commit 6cbb3159ca
11 changed files with 771 additions and 31 deletions

View File

@@ -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):