/** * Receive notification of the parameter of a message. Parser will call * this method to report about parameter reading. * * @param name * the name of the parameter * @param value * the value of the parameter. */ public void param(String name, String value) throws ParseException { if (name.equalsIgnoreCase("F")) { command.setRequestedInfo(utils.decodeInfoCodeList(value)); } else { logger.error("Unknown code " + name); } }
/** * Receive notification of the parameter of a message. Parser will call * this method to report about parameter reading. * * @param name * the name of the parameter * @param value * the value of the parameter. */ public void param(byte[] data,SplitDetails name,SplitDetails value) throws ParseException { if(name.getLength()!=1) logger.warn("Unidentified AUEP Request parameter " + new String(data,name.getOffset(),name.getLength()) + " with value = " + new String(data,value.getOffset(),value.getLength())); else { switch(data[name.getOffset()]) { case StringFunctions.LOW_F_BYTE: case StringFunctions.HIGH_F_BYTE: command.setRequestedInfo(InfoCodeHandler.decodeList(data,value.getOffset(),value.getLength())); break; default: logger.warn("Unidentified AUEP Request parameter " + new String(data,name.getOffset(),name.getLength()) + " with value = " + new String(data,value.getOffset(),value.getLength())); break; } } }
/** * Receive notification of the parameter of a message. Parser will call * this method to report about parameter reading. * * @param name * the name of the parameter * @param value * the value of the parameter. */ public void param(byte[] data,SplitDetails name,SplitDetails value) throws ParseException { if(name.getLength()!=1) logger.warn("Unidentified AUEP Request parameter " + new String(data,name.getOffset(),name.getLength()) + " with value = " + new String(data,value.getOffset(),value.getLength())); else { switch(data[name.getOffset()]) { case StringFunctions.LOW_F_BYTE: case StringFunctions.HIGH_F_BYTE: command.setRequestedInfo(InfoCodeHandler.decodeList(data,value.getOffset(),value.getLength())); break; default: logger.warn("Unidentified AUEP Request parameter " + new String(data,name.getOffset(),name.getLength()) + " with value = " + new String(data,value.getOffset(),value.getLength())); break; } } }