Package net.gescobar.smppserver

Examples of net.gescobar.smppserver.PacketProcessor


  @BeforeMethod
  public void startSimulator() throws Exception {
    server = new SmppServer(SERVER_PORT);

    // set a default packet processor
    server.setPacketProcessor(new PacketProcessor() {

      @Override
      public void processPacket(SmppRequest packet, ResponseSender responseSender) {
        responseSender.send( Response.OK );
      }
View Full Code Here


  @Test
  public void testProcessMessage() throws Exception {
    log.info("starting testProcessMessage ... ");

    MockPacketProcessor pp = new MockPacketProcessor(new PacketProcessor() {

      @Override
      public void processPacket(SmppRequest packet, ResponseSender responseSender) {
        if (packet.getCommandId() == SmppPacket.SUBMIT_SM) {
          responseSender.send( Response.OK.withMessageId("12000") );
View Full Code Here

  @Test
  public void testProcessLongMessage() throws Exception {
    log.info("starting testProcessLongMessage ... ");

    MockPacketProcessor pp = new MockPacketProcessor(new PacketProcessor() {

      @Override
      public void processPacket(SmppRequest packet, ResponseSender responseSender) {
        if (packet.getCommandId() == SmppPacket.SUBMIT_SM) {
          responseSender.send( Response.OK.withMessageId("12000") );
View Full Code Here

    }
  }

  @Test
  public void testFailedCommandStatuses() throws Exception {
    server.setPacketProcessor(new PacketProcessor() {

      @Override
      public void processPacket(SmppRequest packet, ResponseSender responseSender) {
        if (packet.getCommandId() == SmppPacket.SUBMIT_SM) {
          responseSender.send(Response.MESSAGE_QUEUE_FULL.withMessageId("12000"));
View Full Code Here

TOP

Related Classes of net.gescobar.smppserver.PacketProcessor

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.