/** * Receive notification of the parameter of a message. Parser will call * this method to report about parameter reading. * * @param name * the name of the paremeter * @param value * the value of the parameter. */ public void param(String name, String value) throws ParseException { if (name.equalsIgnoreCase("B")) { command.setBearerInformation(utils.decodeBearerInformation(value)); } }
/** * Receive notification of the parameter of a message. Parser will call * this method to report about parameter reading. * * @param name * the name of the paremeter * @param value * the value of the parameter. */ public void param(byte[] data,SplitDetails name,SplitDetails value) throws ParseException { if(name.getLength()==1) { if(data[name.getOffset()]==StringFunctions.LOW_B_BYTE || data[name.getOffset()]==StringFunctions.HIGH_B_BYTE) command.setBearerInformation(BearerInformationHandler.decode(data,value.getOffset(),value.getLength())); else logger.warn("Unidentified EPCF Request parameter " + new String(data,name.getOffset(),name.getLength()) + " with value = " + new String(data,value.getOffset(),value.getLength())); } else logger.warn("Unidentified EPCF Request parameter " + new String(data,name.getOffset(),name.getLength()) + " with value = " + new String(data,value.getOffset(),value.getLength())); }
/** * Receive notification of the parameter of a message. Parser will call * this method to report about parameter reading. * * @param name * the name of the paremeter * @param value * the value of the parameter. */ public void param(byte[] data,SplitDetails name,SplitDetails value) throws ParseException { if(name.getLength()==1) { if(data[name.getOffset()]==StringFunctions.LOW_B_BYTE || data[name.getOffset()]==StringFunctions.HIGH_B_BYTE) command.setBearerInformation(BearerInformationHandler.decode(data,value.getOffset(),value.getLength())); else logger.warn("Unidentified EPCF Request parameter " + new String(data,name.getOffset(),name.getLength()) + " with value = " + new String(data,value.getOffset(),value.getLength())); } else logger.warn("Unidentified EPCF Request parameter " + new String(data,name.getOffset(),name.getLength()) + " with value = " + new String(data,value.getOffset(),value.getLength())); }