static void processAlertNotification0( Command pduHeader, byte[] pdu, ResponseHandler responseHandler) { try { AlertNotification alertNotification = pduDecomposer.alertNotification(pdu); responseHandler.processAlertNotification(alertNotification); } catch (PDUStringException e) { logger.error("Failed decomposing alert_notification", e); // there is no response for alert notification } }
static void processDeliverSm0(Command pduHeader, byte[] pdu, ResponseHandler responseHandler) throws IOException { try { DeliverSm deliverSm = pduDecomposer.deliverSm(pdu); responseHandler.processDeliverSm(deliverSm); responseHandler.sendDeliverSmResp(pduHeader.getSequenceNumber()); } catch (PDUStringException e) { logger.error("Failed decomposing deliver_sm", e); responseHandler.sendNegativeResponse( pduHeader.getCommandId(), e.getErrorCode(), pduHeader.getSequenceNumber()); } catch (ProcessRequestException e) { logger.error("Failed processing deliver_sm", e); responseHandler.sendNegativeResponse( pduHeader.getCommandId(), e.getErrorCode(), pduHeader.getSequenceNumber()); } }