public class MessageProtocolInnerMessageParser
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static interface |
MessageProtocolInnerMessageParser.ErrorHandler |
Constructor | Description |
---|---|
MessageProtocolInnerMessageParser(ProtocolFactory protocolFactory) |
|
MessageProtocolInnerMessageParser(ProtocolFactory protocolFactory,
ConnectionConfiguration config) |
Modifier and Type | Method | Description |
---|---|---|
Message |
parse(byte[] bytes) |
This method will try to extract IMessage object from the given byte array.
|
Message |
parse(byte[] bytes,
int pos,
int len) |
This method will try to extract IMessage object from the given byte array,
beginning from specified position.
|
void |
setErrorHandler(MessageProtocolInnerMessageParser.ErrorHandler errorHandler) |
Message parser can detect some errors which are not critical to message parsing.
|
public MessageProtocolInnerMessageParser(ProtocolFactory protocolFactory)
public MessageProtocolInnerMessageParser(ProtocolFactory protocolFactory, ConnectionConfiguration config)
public Message parse(byte[] bytes, int pos, int len) throws ProtocolException
bytes
- binary array containing representation of message.pos
- position where message (number of attributes byte) begins.len
- length of binary representation.ProtocolException
- if message can't be parsedpublic Message parse(byte[] bytes) throws ProtocolException
bytes
- binary aray containing representation of messageProtocolException
- if message can't be parsedpublic void setErrorHandler(MessageProtocolInnerMessageParser.ErrorHandler errorHandler)
errorHandler
- erro handler to report non-critical errorsSend comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.