Merge "Copyright"
[packetcable.git] / packetcable-driver / src / main / java / org / umu / cops / stack / COPSObjHeaderData.java
1 package org.umu.cops.stack;
2
3 /**
4  * Class designed for simply containing the COPSHeader and the total message's byte count.
5  *
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
8  */
9 public class COPSObjHeaderData {
10
11     /**
12      * The actual header to be injected into the appropriate COPSMsg object
13      */
14     final public COPSObjHeader header;
15
16     /**
17      * The total number of bytes contained within the inbound message being parsed.
18      */
19     final public int msgByteCount;
20
21     /**
22      * Constructor
23      * @param hdr - the COPS message header
24      * @param numBytes - the total number of bytes contained within the message envelope
25      */
26     public COPSObjHeaderData(final COPSObjHeader hdr, final int numBytes) {
27         this.header = hdr;
28         this.msgByteCount = numBytes;
29     }
30 }