private void stopWrappedSession(Esme esme) { if (esme.getSmppSessionType().equals(SmppSession.Type.SERVER)) { DefaultSmppSession smppSession = esme.getSmppSession();
SmppSession.Type smppSessionTypeObj = SmppSession.Type.valueOf(smppSessionType); if (smppSessionTypeObj == null) { throw new Exception("SmppSession.Type must be either of SERVER or CLIENT. Passed is " + smppSessionType);
SmppSession.Type[] vall2 = SmppSession.Type.values(); SmppSession.Type dv2 = null; for (SmppSession.Type v : vall2) {
esme.smppSessionType = SmppSession.Type.valueOf(smppSessionTypeStr);
esme.smppSessionType = SmppSession.Type.valueOf(smppSessionTypeStr);
SmppSession.Type smppSessionTypeObj = SmppSession.Type.valueOf(smppSessionType); if (smppSessionTypeObj == null) { throw new Exception("SmppSession.Type must be either of SERVER or CLIENT. Passed is " + smppSessionType);
xml.setAttribute(SMPP_SESSION_TYPE, esme.smppSessionType.toString());
xml.setAttribute(SMPP_SESSION_TYPE, esme.smppSessionType.toString());
private void stopWrappedSession(Esme esme) { if (esme.getSmppSessionType().equals(SmppSession.Type.SERVER)) { DefaultSmppSession smppSession = esme.getSmppSession();
@Override public void startEsme(String esmeName) throws Exception { Esme esme = this.getEsmeByName(esmeName); if (esme == null) { throw new Exception(String.format(SmppOamMessages.DELETE_ESME_FAILED_NO_ESME_FOUND, esmeName)); } if (esme.isStarted()) { throw new Exception(String.format(SmppOamMessages.START_ESME_FAILED_ALREADY_STARTED, esmeName)); } esme.setStarted(true); this.store(); if (esme.getSmppSessionType().equals(SmppSession.Type.CLIENT)) { this.smppClient.startSmppClientSession(esme); } }
@Override public void startEsme(String esmeName) throws Exception { Esme esme = this.getEsmeByName(esmeName); if (esme == null) { throw new Exception(String.format(SmppOamMessages.DELETE_ESME_FAILED_NO_ESME_FOUND, esmeName)); } if (esme.isStarted()) { throw new Exception(String.format(SmppOamMessages.START_ESME_FAILED_ALREADY_STARTED, esmeName)); } esme.setStarted(true); this.store(); if (esme.getSmppSessionType().equals(SmppSession.Type.CLIENT)) { this.smppClient.startSmppClientSession(esme); } }
@Override public String getRemoteTypeName() { return this.getRemoteType().toString(); }
@Override public String getRemoteTypeName() { return this.getRemoteType().toString(); }
@Override public String getLocalTypeName() { return this.getLocalType().toString(); }
@Override public String getLocalTypeName() { return this.getLocalType().toString(); }
@Override public String getRemoteTypeName() { return this.getRemoteType().toString(); }
@Override public String getLocalTypeName() { return this.getLocalType().toString(); }
@Override public String getRemoteTypeName() { return this.getRemoteType().toString(); }
@Override public String getLocalTypeName() { if (this.defaultSmppSession != null) { return this.defaultSmppSession.getLocalTypeName(); } return this.smppSessionType.toString(); }