Examples of GenericNack


Examples of com.cloudhopper.smpp.pdu.GenericNack

            } else if (commandId == SmppConstants.CMD_ID_BIND_TRANSMITTER_RESP) {
                pdu = new BindTransmitterResp();
            } else if (commandId == SmppConstants.CMD_ID_UNBIND_RESP) {
                pdu = new UnbindResp();
            } else if (commandId == SmppConstants.CMD_ID_GENERIC_NACK) {
                pdu = new GenericNack();
            } else {
                pdu = new PartialPduResp(commandId);
            }
        }
View Full Code Here

Examples of com.cloudhopper.smpp.pdu.GenericNack

            } else if (commandId == SmppConstants.CMD_ID_BIND_TRANSMITTER_RESP) {
                pdu = new BindTransmitterResp();
            } else if (commandId == SmppConstants.CMD_ID_UNBIND_RESP) {
                pdu = new UnbindResp();
            } else if (commandId == SmppConstants.CMD_ID_GENERIC_NACK) {
                pdu = new GenericNack();
            } else {
                pdu = new PartialPduResp(commandId);
            }
        }
View Full Code Here

Examples of ie.omk.smpp.message.GenericNack

    public static SMPPPacket newInstance(int id) throws BadCommandIDException {
        SMPPPacket response = null;

        switch (id) {
        case SMPPPacket.GENERIC_NACK:
            response = new GenericNack();
            break;

        case SMPPPacket.BIND_RECEIVER:
            response = new BindReceiver();
            break;
View Full Code Here

Examples of org.jsmpp.bean.GenericNack

        DataInputStream in = new DataInputStream(new ByteArrayInputStream(out.toByteArray()));
        Command header = pduReader.readPDUHeader(in);
        assertEquals(header.getCommandId(), SMPPConstant.CID_GENERIC_NACK, "Unexpected command_id");
       
        byte[] pdu = pduReader.readPDU(in, header);
        GenericNack nack = decomposer.genericNack(pdu);
        assertNotNull(nack);
    }
View Full Code Here

Examples of org.jsmpp.bean.GenericNack

     * (non-Javadoc)
     *
     * @see org.jsmpp.util.PDUDecomposer#genericNack(byte[])
     */
    public GenericNack genericNack(byte[] b) {
        GenericNack req = new GenericNack();
        assignHeader(req, b);
        return req;
    }
View Full Code Here

Examples of org.smpp.pdu.GenericNack

   * @see Transmitter
   */
  private void sendGenericNack(int commandStatus, int sequenceNumber) {
    if (transmitter != null) {
      try {
        GenericNack gnack = new GenericNack(commandStatus, sequenceNumber);
        transmitter.send(gnack);
      } catch (IOException gnacke) {
        event.write(gnacke, "Receiver.run(): IOException sending generic_nack.");
      } catch (Exception gnacke) {
        event.write(gnacke, "Receiver.run(): an exception sending generic_nack.");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.