/** * 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) { switch(data[name.getOffset()]) { case StringFunctions.LOW_I_BYTE: case StringFunctions.HIGH_I_BYTE: //do nothing, should not be here , but sent by mms break; case StringFunctions.LOW_P_BYTE: case StringFunctions.HIGH_P_BYTE: response.setConnectionParms(ConnectionParmHandler.decodeList(data,value.getOffset(),value.getLength())); break; default: logger.warn("Unidentified DLCX Response parameter " + new String(data,name.getOffset(),name.getLength()) + " with value = " + new String(data,value.getOffset(),value.getLength())); } } else logger.warn("Unidentified DLCX Response 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) { switch(data[name.getOffset()]) { case StringFunctions.LOW_I_BYTE: case StringFunctions.HIGH_I_BYTE: //do nothing, should not be here , but sent by mms break; case StringFunctions.LOW_P_BYTE: case StringFunctions.HIGH_P_BYTE: response.setConnectionParms(ConnectionParmHandler.decodeList(data,value.getOffset(),value.getLength())); break; default: logger.warn("Unidentified DLCX Response parameter " + new String(data,name.getOffset(),name.getLength()) + " with value = " + new String(data,value.getOffset(),value.getLength())); } } else logger.warn("Unidentified DLCX Response parameter " + new String(data,name.getOffset(),name.getLength()) + " with value = " + new String(data,value.getOffset(),value.getLength())); }