1 package org.umu.cops.stack;
4 * Class designed for simply containing the COPSHeader and the total message's byte count.
6 * No need to test as this class will be tested implicitly via other tests and this does not contain or need
7 * any domain specific logic
9 public class COPSObjHeaderData {
12 * The actual header to be injected into the appropriate COPSMsg object
14 final public COPSObjHeader header;
17 * The total number of bytes contained within the inbound message being parsed.
19 final public int msgByteCount;
23 * @param hdr - the COPS message header
24 * @param numBytes - the total number of bytes contained within the message envelope
26 public COPSObjHeaderData(final COPSObjHeader hdr, final int numBytes) {
28 this.msgByteCount = numBytes;