-/**
- * @header@
+/*
+ * Copyright (c) 2014, 2015 Cable Television Laboratories, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
*/
+
package org.pcmm.messages.impl;
import org.pcmm.messages.IMessage.MessageProperties;
import org.umu.cops.stack.COPSDecision.Command;
import org.umu.cops.stack.COPSDecision.DecisionFlag;
import org.umu.cops.stack.COPSError.ErrorTypes;
-import org.umu.cops.stack.COPSHeader.ClientType;
import org.umu.cops.stack.COPSHeader.OPCode;
import org.umu.cops.stack.COPSObjHeader.CType;
final Map<COPSContext, Set<COPSDecision>> decisionMap = new HashMap<>();
decisionMap.put(new COPSContext(RType.CONFIG, (short)0), decisionSet);
- final COPSDecisionMsg msg = new COPSDecisionMsg(ClientType.TYPE_1, handle, decisionMap, null);
+ final COPSDecisionMsg msg = new COPSDecisionMsg(IPCMMClient.CLIENT_TYPE, handle, decisionMap, null, null);
// TODO - determine why this block has been commented out
// try {
else
d = new COPSData(InetAddress.getLocalHost().getHostName());
final COPSPepId pepId = new COPSPepId(d);
- return new COPSClientOpenMsg(ClientType.NA, pepId, clientSI, null, null);
+ return new COPSClientOpenMsg(IPCMMClient.CLIENT_TYPE, pepId, clientSI, null, null);
} catch (Exception e) {
logger.error("Error creating OPN message", e);
}
// just a random handle
copsHandle = new COPSHandle(new COPSData("" + Math.random() * 82730));
- return new COPSReqMsg(ClientType.TYPE_1, copsHandle, copsContext, null, null, null, null, null);
+ return new COPSReqMsg(IPCMMClient.CLIENT_TYPE, copsHandle, copsContext, null, null, null, null, null);
}
/**
*/
protected COPSMsg createKAMessage(final Properties prop) {
// TODO - determine why this isn't really doing anything
- return new COPSKAMsg(ClientType.NA, null);
+ return new COPSKAMsg(null);
/*
final COPSKATimer timer;
if (prop.get(MessageProperties.KA_TIMER) != null)