Package org.jsmpp.extra

Examples of org.jsmpp.extra.ProcessRequestException


                    LOG.trace("processing the new smpp exchange...");
                    getProcessor().process(exchange);
                    LOG.trace("processed the new smpp exchange");
                } catch (Exception e) {
                    getExceptionHandler().handleException(e);
                    throw new ProcessRequestException(e.getMessage(), 255, e);
                }

                return new DataSmResult(newMessageId, dataSm.getOptionalParametes());
            }
        };
View Full Code Here


    /* Perform special handling just to simulate something on the SMSC */
    private void onSpecialHandling(SubmitSm submitSm,
                                   SMPPServerSession source) throws ProcessRequestException {
        if (submitSm.getDestAddress().equals(Agreement.THROW_NO_DESTINATION_EXCEPTION)) {
            throw new ProcessRequestException ("Invalid Dest Addr", 0x0B);
        }
        if (new String(submitSm.getShortMessage()).equals(Agreement.DELAY_PROCESSING)) {
            try {
                logger.debug("Delaying handling for {} ms", messageDelay);
                Thread.sleep(3000);
View Full Code Here

                    LOG.trace("processing the new smpp exchange...");
                    getProcessor().process(exchange);
                    LOG.trace("processed the new smpp exchange");
                } catch (Exception e) {
                    getExceptionHandler().handleException(e);
                    throw new ProcessRequestException(e.getMessage(), 255, e);
                }

                return new DataSmResult(newMessageId, dataSm.getOptionalParametes());
            }
        };
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.