use of org.jpos.iso.header.BASE1Header in project jPOS by jpos.
the class VAPChannel method sendMessageHeader.
/**
* @param m the message
* @param len already packed message len (to avoid re-pack)
* @exception IOException
*/
protected void sendMessageHeader(ISOMsg m, int len) throws IOException {
ISOHeader h = !isOverrideHeader() && m.getHeader() != null ? m.getISOHeader() : new BASE1Header(srcid, dstid, headerFormat);
if (h instanceof BASE1Header)
((BASE1Header) h).setLen(len);
serverOut.write(h.pack());
}
Aggregations