com.github.kpavlov.jreactive8583.iso.MessageFactory.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of netty-iso8583 Show documentation
Show all versions of netty-iso8583 Show documentation
ISO8583 protocol client and server Netty connectors.
@file:JvmName("MessageFactory")
package com.github.kpavlov.jreactive8583.iso
import java.io.UnsupportedEncodingException
import java.text.ParseException
public interface MessageFactory {
public fun newMessage(type: Int): T
public fun newMessage(
messageClass: MessageClass,
messageFunction: MessageFunction,
messageOrigin: MessageOrigin,
): T
/**
* Creates a new message with a default message origin (i.e. role)
*/
public fun newMessage(
messageClass: MessageClass,
messageFunction: MessageFunction,
): T
public fun createResponse(requestMessage: T): T
public fun createResponse(
request: T,
copyAllFields: Boolean,
): T
@Throws(ParseException::class, UnsupportedEncodingException::class)
public fun parseMessage(
buf: ByteArray,
isoHeaderLength: Int,
binaryIsoHeader: Boolean,
): T
@Throws(UnsupportedEncodingException::class, ParseException::class)
public fun parseMessage(
buf: ByteArray,
isoHeaderLength: Int,
): T
}