@Override public SmppBindType getBindType() { return this.configuration.getType(); }
@Override public SmppBindType getBindType() { return this.configuration.getType(); }
@Override public SmppBindType getBindType() { return this.configuration.getType(); }
@Override public SmppBindType getBindType() { return this.configuration.getType(); }
protected BaseBind createBindRequest(SmppSessionConfiguration config) throws UnrecoverablePduException { BaseBind bind = null; if (config.getType() == SmppBindType.TRANSCEIVER) { bind = new BindTransceiver(); } else if (config.getType() == SmppBindType.RECEIVER) { bind = new BindReceiver(); } else if (config.getType() == SmppBindType.TRANSMITTER) { bind = new BindTransmitter(); } else { throw new UnrecoverablePduException("Unable to convert SmppSessionConfiguration into a BaseBind request"); } bind.setSystemId(config.getSystemId()); bind.setPassword(config.getPassword()); bind.setSystemType(config.getSystemType()); bind.setInterfaceVersion(config.getInterfaceVersion()); bind.setAddressRange(config.getAddressRange()); return bind; }
protected BaseBind createBindRequest(SmppSessionConfiguration config) throws UnrecoverablePduException { BaseBind bind = null; if (config.getType() == SmppBindType.TRANSCEIVER) { bind = new BindTransceiver(); } else if (config.getType() == SmppBindType.RECEIVER) { bind = new BindReceiver(); } else if (config.getType() == SmppBindType.TRANSMITTER) { bind = new BindTransmitter(); } else { throw new UnrecoverablePduException("Unable to convert SmppSessionConfiguration into a BaseBind request"); } bind.setSystemId(config.getSystemId()); bind.setPassword(config.getPassword()); bind.setSystemType(config.getSystemType()); bind.setInterfaceVersion(config.getInterfaceVersion()); bind.setAddressRange(config.getAddressRange()); return bind; }
protected BaseBind createBindRequest(SmppSessionConfiguration config) throws UnrecoverablePduException { BaseBind bind = null; if (config.getType() == SmppBindType.TRANSCEIVER) { bind = new BindTransceiver(); } else if (config.getType() == SmppBindType.RECEIVER) { bind = new BindReceiver(); } else if (config.getType() == SmppBindType.TRANSMITTER) { bind = new BindTransmitter(); } else { throw new UnrecoverablePduException("Unable to convert SmppSessionConfiguration into a BaseBind request"); } bind.setSystemId(config.getSystemId()); bind.setPassword(config.getPassword()); bind.setSystemType(config.getSystemType()); bind.setInterfaceVersion(config.getInterfaceVersion()); bind.setAddressRange(config.getAddressRange()); return bind; }
protected BaseBind createBindRequest(SmppSessionConfiguration config) throws UnrecoverablePduException { BaseBind bind = null; if (config.getType() == SmppBindType.TRANSCEIVER) { bind = new BindTransceiver(); } else if (config.getType() == SmppBindType.RECEIVER) { bind = new BindReceiver(); } else if (config.getType() == SmppBindType.TRANSMITTER) { bind = new BindTransmitter(); } else { throw new UnrecoverablePduException("Unable to convert SmppSessionConfiguration into a BaseBind request"); } bind.setSystemId(config.getSystemId()); bind.setPassword(config.getPassword()); bind.setSystemType(config.getSystemType()); bind.setInterfaceVersion(config.getInterfaceVersion()); bind.setAddressRange(config.getAddressRange()); return bind; }
logger.error(String.format("No ESME for Name=%s SystemId=%s Host=%s Port=%d SmppBindType=%s", sessionConfiguration.getSystemId(), sessionConfiguration.getHost(), sessionConfiguration.getPort(), sessionConfiguration.getType())); throw new SmppProcessingException(SmppConstants.STATUS_BINDFAIL);
logger.error(String.format("No ESME for Name=%s SystemId=%s Host=%s Port=%d SmppBindType=%s", sessionConfiguration.getSystemId(), sessionConfiguration.getHost(), sessionConfiguration.getPort(), sessionConfiguration.getType())); throw new SmppProcessingException(SmppConstants.STATUS_BINDFAIL);