Package org.jsmpp.extra

Examples of org.jsmpp.extra.ProcessRequestException


    protected DataSmResult fireAcceptDataSm(DataSm dataSm) throws ProcessRequestException {
        GenericMessageReceiverListener messageReceiverListener = messageReceiverListener();
        if (messageReceiverListener != null) {
            return messageReceiverListener.onAcceptDataSm(dataSm, this);
        } else {
            throw new ProcessRequestException("MessageReceveiverListener hasn't been set yet", SMPPConstant.STAT_ESME_RX_R_APPN);
        }
    }
View Full Code Here


            return messageReceiverListener.onAcceptSubmitSm(submitSm, this);
        }
        String msg = "Receiving message but server hasn't " + ServerMessageReceiverListener.class + " yet";
        logger.warn(msg);
        System.err.println(msg);
        throw new ProcessRequestException(msg, SMPPConstant.STAT_ESME_RX_R_APPN);
    }
View Full Code Here

            return messageReceiverListener.onAcceptSubmitMulti(submitMulti, this);
        }
        String msg = "Receiving message but server hasn't " + ServerMessageReceiverListener.class + " yet";
        logger.warn(msg);
        System.err.println(msg);
        throw new ProcessRequestException(msg, SMPPConstant.STAT_ESME_RX_R_APPN);
    }
View Full Code Here

            return messageReceiverListener.onAcceptQuerySm(querySm, this);
        }
        String msg = "Receiving message but server hasn't " + ServerMessageReceiverListener.class + " yet";
        logger.warn(msg);
        System.err.println(msg);
        throw new ProcessRequestException(msg, SMPPConstant.STAT_ESME_RX_R_APPN);
    }
View Full Code Here

            messageReceiverListener.onAcceptReplaceSm(replaceSm, this);
        } else {
            String msg = "Receiving message but server hasn't " + ServerMessageReceiverListener.class + " yet";
            logger.warn(msg);
            System.err.println(msg);
            throw new ProcessRequestException(msg, SMPPConstant.STAT_ESME_RX_R_APPN);
        }
    }
View Full Code Here

            messageReceiverListener.onAcceptCancelSm(cancelSm, this);
        } else {
            String msg = "Receiving message but server hasn't " + ServerMessageReceiverListener.class + " yet";
            logger.warn(msg);
            System.err.println(msg);
            throw new ProcessRequestException(msg, SMPPConstant.STAT_ESME_RX_R_APPN);
        }
    }
View Full Code Here

                throws ProcessRequestException {
            MessageId messageId = fireAcceptSubmitSm(submitSm);
            if (messageId == null) {
                String msg = "Invalid message_id, shouldn't null value. " + ServerMessageReceiverListener.class + "#onAcceptSubmitSm(SubmitSm) return null value";
                System.err.println(msg);
                throw new ProcessRequestException(msg, SMPPConstant.STAT_ESME_RX_R_APPN);
            }
            return messageId;
        }
View Full Code Here

  private void fireAcceptDeliverSm(DeliverSm deliverSm) throws ProcessRequestException {
    if (messageReceiverListener != null) {
      messageReceiverListener.onAcceptDeliverSm(deliverSm);
        } else {
      logger.warn("Receive deliver_sm but MessageReceiverListener is null. Short message = " + new String(deliverSm.getShortMessage()));
      throw new ProcessRequestException("No message receiver listener registered", SMPPConstant.STAT_ESME_RX_T_APPN);
        }
  }
View Full Code Here

      } catch(ProcessRequestException e) {
        throw e;
      } catch(Exception e) {
        String msg = "Invalid runtime exception thrown when processing DeliverSm";
        logger.error(msg, e);
        throw new ProcessRequestException(msg, SMPPConstant.STAT_ESME_RX_T_APPN);
      }
    }
View Full Code Here

      } catch(ProcessRequestException e) {
        throw e;
      } catch(Exception e) {
        String msg = "Invalid runtime exception thrown when processing DataSm";
        logger.error(msg, e);
        throw new ProcessRequestException(msg, SMPPConstant.STAT_ESME_RX_T_APPN);
      }
    }
View Full Code Here

TOP

Related Classes of org.jsmpp.extra.ProcessRequestException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.