private void forwardCheckSsIndicationRequest(Parameter parameter, MAPDialogMobilityImpl mapDialogImpl, Long invokeId) throws MAPParsingComponentException { ForwardCheckSSIndicationRequestImpl ind = new ForwardCheckSSIndicationRequestImpl(); for (MAPServiceListener serLis : this.serviceListeners) { try { serLis.onMAPMessage(ind); ((MAPServiceMobilityListener) serLis).onForwardCheckSSIndicationRequest(ind); } catch (Exception e) { loger.error("Error processing forwardCheckSsIndicationRequest: " + e.getMessage(), e); } } }
private void alertServiceCentreResponse(Parameter parameter, MAPDialogSmsImpl mapDialogImpl, Long invokeId, boolean returnResultNotLast) throws MAPParsingComponentException { AlertServiceCentreResponseImpl ind = new AlertServiceCentreResponseImpl(); ind.setInvokeId(invokeId); ind.setMAPDialog(mapDialogImpl); ind.setReturnResultNotLast(returnResultNotLast); for (MAPServiceListener serLis : this.serviceListeners) { try { serLis.onMAPMessage(ind); ((MAPServiceSmsListener) serLis).onAlertServiceCentreResponse(ind); } catch (Exception e) { loger.error("Error processing onAlertServiceCentreRespIndication: " + e.getMessage(), e); } } }
private void unstructuredSSNotifyResponse(Parameter parameter, MAPDialogSupplementaryImpl mapDialogImpl, Long invokeId, boolean returnResultNotLast) throws MAPParsingComponentException { UnstructuredSSNotifyResponseImpl ind = new UnstructuredSSNotifyResponseImpl(); ind.setInvokeId(invokeId); ind.setMAPDialog(mapDialogImpl); ind.setReturnResultNotLast(returnResultNotLast); for (MAPServiceListener serLis : this.serviceListeners) { try { serLis.onMAPMessage(ind); ((MAPServiceSupplementaryListener) serLis).onUnstructuredSSNotifyResponse(ind); } catch (Exception e) { loger.error("Error processing unstructuredSSNotifyIndication: " + e.getMessage(), e); } } }
private void forwardShortMessageResponse(Parameter parameter, MAPDialogSmsImpl mapDialogImpl, Long invokeId, boolean returnResultNotLast) throws MAPParsingComponentException { ForwardShortMessageResponseImpl ind = new ForwardShortMessageResponseImpl(); ind.setInvokeId(invokeId); ind.setMAPDialog(mapDialogImpl); ind.setReturnResultNotLast(returnResultNotLast); for (MAPServiceListener serLis : this.serviceListeners) { try { serLis.onMAPMessage(ind); ((MAPServiceSmsListener) serLis).onForwardShortMessageResponse(ind); } catch (Exception e) { loger.error("Error processing forwardShortMessageResponse: " + e.getMessage(), e); } } }
private void activateSSResponse(Parameter parameter, MAPDialogSupplementaryImpl mapDialogImpl, Long invokeId, boolean returnResultNotLast) throws MAPParsingComponentException { ActivateSSResponseImpl ind = new ActivateSSResponseImpl(); if (parameter != null) { // we do not check tag / tagClass because it is a choice byte[] buf = parameter.getData(); AsnInputStream ais = new AsnInputStream(buf, parameter.getTagClass(), parameter.isPrimitive(), parameter.getTag()); ind.decodeData(ais, buf.length); } ind.setInvokeId(invokeId); ind.setMAPDialog(mapDialogImpl); ind.setReturnResultNotLast(returnResultNotLast); for (MAPServiceListener serLis : this.serviceListeners) { try { serLis.onMAPMessage(ind); ((MAPServiceSupplementaryListener) serLis).onActivateSSResponse(ind); } catch (Exception e) { loger.error("Error processing onActivateSSResponse: " + e.getMessage(), e); } } }
private void eraseSSResponse(Parameter parameter, MAPDialogSupplementaryImpl mapDialogImpl, Long invokeId, boolean returnResultNotLast) throws MAPParsingComponentException { EraseSSResponseImpl ind = new EraseSSResponseImpl(); if (parameter != null) { // we do not check tag / tagClass because it is a choice byte[] buf = parameter.getData(); AsnInputStream ais = new AsnInputStream(buf, parameter.getTagClass(), parameter.isPrimitive(), parameter.getTag()); ind.decodeData(ais, buf.length); } ind.setInvokeId(invokeId); ind.setMAPDialog(mapDialogImpl); ind.setReturnResultNotLast(returnResultNotLast); for (MAPServiceListener serLis : this.serviceListeners) { try { serLis.onMAPMessage(ind); ((MAPServiceSupplementaryListener) serLis).onEraseSSResponse(ind); } catch (Exception e) { loger.error("Error processing onEraseSSResponse: " + e.getMessage(), e); } } }
private void registerSSResponse(Parameter parameter, MAPDialogSupplementaryImpl mapDialogImpl, Long invokeId, boolean returnResultNotLast) throws MAPParsingComponentException { RegisterSSResponseImpl ind = new RegisterSSResponseImpl(); if (parameter != null) { // we do not check tag / tagClass because it is a choice byte[] buf = parameter.getData(); AsnInputStream ais = new AsnInputStream(buf, parameter.getTagClass(), parameter.isPrimitive(), parameter.getTag()); ind.decodeData(ais, buf.length); } ind.setInvokeId(invokeId); ind.setMAPDialog(mapDialogImpl); ind.setReturnResultNotLast(returnResultNotLast); for (MAPServiceListener serLis : this.serviceListeners) { try { serLis.onMAPMessage(ind); ((MAPServiceSupplementaryListener) serLis).onRegisterSSResponse(ind); } catch (Exception e) { loger.error("Error processing onRegisterSSResponse: " + e.getMessage(), e); } } }
private void deactivateSSResponse(Parameter parameter, MAPDialogSupplementaryImpl mapDialogImpl, Long invokeId, boolean returnResultNotLast) throws MAPParsingComponentException { DeactivateSSResponseImpl ind = new DeactivateSSResponseImpl(); if (parameter != null) { // we do not check tag / tagClass because it is a choice byte[] buf = parameter.getData(); AsnInputStream ais = new AsnInputStream(buf, parameter.getTagClass(), parameter.isPrimitive(), parameter.getTag()); ind.decodeData(ais, buf.length); } ind.setInvokeId(invokeId); ind.setMAPDialog(mapDialogImpl); ind.setReturnResultNotLast(returnResultNotLast); for (MAPServiceListener serLis : this.serviceListeners) { try { serLis.onMAPMessage(ind); ((MAPServiceSupplementaryListener) serLis).onDeactivateSSResponse(ind); } catch (Exception e) { loger.error("Error processing onDeactivateSSResponse: " + e.getMessage(), e); } } }
private void restoreDataRequest(Parameter parameter, MAPDialogMobilityImpl mapDialogImpl, Long invokeId) throws MAPParsingComponentException { if (parameter == null) throw new MAPParsingComponentException("Error while decoding restoreDataRequest: Parameter is mandatory but not found", MAPParsingComponentExceptionReason.MistypedParameter); if (parameter.getTag() != Tag.SEQUENCE || parameter.getTagClass() != Tag.CLASS_UNIVERSAL || parameter.isPrimitive()) throw new MAPParsingComponentException("Error while decoding restoreDataRequest: Bad tag or tagClass or parameter is primitive, received tag=" + parameter.getTag(), MAPParsingComponentExceptionReason.MistypedParameter); RestoreDataRequestImpl ind = new RestoreDataRequestImpl(); byte[] buf = parameter.getData(); AsnInputStream ais = new AsnInputStream(buf); ind.decodeData(ais, buf.length); ind.setInvokeId(invokeId); ind.setMAPDialog(mapDialogImpl); for (MAPServiceListener serLis : this.serviceListeners) { try { serLis.onMAPMessage(ind); ((MAPServiceMobilityListener) serLis).onRestoreDataRequest(ind); } catch (Exception e) { loger.error("Error processing restoreDataRequest: " + e.getMessage(), e); } } }
private void authenticationFailureReportResponse(Parameter parameter, MAPDialogMobilityImpl mapDialogImpl, Long invokeId, boolean returnResultNotLast) throws MAPParsingComponentException { AuthenticationFailureReportResponseImpl ind = new AuthenticationFailureReportResponseImpl(); if (parameter != null) { if (parameter.getTag() != Tag.SEQUENCE || parameter.getTagClass() != Tag.CLASS_UNIVERSAL || parameter.isPrimitive()) throw new MAPParsingComponentException( "Error while decoding authenticationFailureReportResponse: Bad tag or tagClass or parameter is primitive, received tag=" + parameter.getTag(), MAPParsingComponentExceptionReason.MistypedParameter); byte[] buf = parameter.getData(); AsnInputStream ais = new AsnInputStream(buf); ind.decodeData(ais, buf.length); } ind.setInvokeId(invokeId); ind.setMAPDialog(mapDialogImpl); ind.setReturnResultNotLast(returnResultNotLast); for (MAPServiceListener serLis : this.serviceListeners) { try { serLis.onMAPMessage(ind); ((MAPServiceMobilityListener) serLis).onAuthenticationFailureReportResponse(ind); } catch (Exception e) { loger.error("Error processing authenticationFailureReportResponse: " + e.getMessage(), e); } } }
private void readyForSMResponse(Parameter parameter, MAPDialogSmsImpl mapDialogImpl, Long invokeId, boolean returnResultNotLast) throws MAPParsingComponentException { ReadyForSMResponseImpl ind = new ReadyForSMResponseImpl(); if (parameter != null) { if (parameter.getTag() != Tag.SEQUENCE || parameter.getTagClass() != Tag.CLASS_UNIVERSAL || parameter.isPrimitive()) throw new MAPParsingComponentException( "Error while decoding readyForSMResponse: Bad tag or tagClass or parameter is primitive, received tag=" + parameter.getTag(), MAPParsingComponentExceptionReason.MistypedParameter); byte[] buf = parameter.getData(); AsnInputStream ais = new AsnInputStream(buf); ind.decodeData(ais, buf.length); } ind.setInvokeId(invokeId); ind.setMAPDialog(mapDialogImpl); ind.setReturnResultNotLast(returnResultNotLast); for (MAPServiceListener serLis : this.serviceListeners) { try { serLis.onMAPMessage(ind); ((MAPServiceSmsListener) serLis).onReadyForSMResponse(ind); } catch (Exception e) { loger.error("Error processing onReadyForSMResponse: " + e.getMessage(), e); } } }
private void activateSSRequest(Parameter parameter, MAPDialogSupplementaryImpl mapDialogImpl, Long invokeId) throws MAPParsingComponentException { if (parameter == null) throw new MAPParsingComponentException("Error while decoding activateSSRequest: Parameter is mandatory but not found", MAPParsingComponentExceptionReason.MistypedParameter); if (parameter.getTag() != Tag.SEQUENCE || parameter.getTagClass() != Tag.CLASS_UNIVERSAL || parameter.isPrimitive()) throw new MAPParsingComponentException( "Error while decoding activateSSRequest: Bad tag or tagClass or parameter is primitive, received tag=" + parameter.getTag(), MAPParsingComponentExceptionReason.MistypedParameter); byte[] buf = parameter.getData(); AsnInputStream ais = new AsnInputStream(buf, parameter.getTagClass(), parameter.isPrimitive(), parameter.getTag()); ActivateSSRequestImpl ind = new ActivateSSRequestImpl(); ind.decodeData(ais, buf.length); ind.setInvokeId(invokeId); ind.setMAPDialog(mapDialogImpl); for (MAPServiceListener serLis : this.serviceListeners) { try { serLis.onMAPMessage(ind); ((MAPServiceSupplementaryListener) serLis).onActivateSSRequest(ind); } catch (Exception e) { loger.error("Error processing onActivateSSRequest: " + e.getMessage(), e); } } }
private void deactivateSSRequest(Parameter parameter, MAPDialogSupplementaryImpl mapDialogImpl, Long invokeId) throws MAPParsingComponentException { if (parameter == null) throw new MAPParsingComponentException("Error while decoding deactivateSSRequest: Parameter is mandatory but not found", MAPParsingComponentExceptionReason.MistypedParameter); if (parameter.getTag() != Tag.SEQUENCE || parameter.getTagClass() != Tag.CLASS_UNIVERSAL || parameter.isPrimitive()) throw new MAPParsingComponentException( "Error while decoding deactivateSSRequest: Bad tag or tagClass or parameter is primitive, received tag=" + parameter.getTag(), MAPParsingComponentExceptionReason.MistypedParameter); byte[] buf = parameter.getData(); AsnInputStream ais = new AsnInputStream(buf, parameter.getTagClass(), parameter.isPrimitive(), parameter.getTag()); DeactivateSSRequestImpl ind = new DeactivateSSRequestImpl(); ind.decodeData(ais, buf.length); ind.setInvokeId(invokeId); ind.setMAPDialog(mapDialogImpl); for (MAPServiceListener serLis : this.serviceListeners) { try { serLis.onMAPMessage(ind); ((MAPServiceSupplementaryListener) serLis).onDeactivateSSRequest(ind); } catch (Exception e) { loger.error("Error processing onDeactivateSSRequest: " + e.getMessage(), e); } } }
private void resetRequest(Parameter parameter, MAPDialogMobilityImpl mapDialogImpl, Long invokeId) throws MAPParsingComponentException { if (parameter == null) throw new MAPParsingComponentException("Error while decoding resetRequest: Parameter is mandatory but not found", MAPParsingComponentExceptionReason.MistypedParameter); if (parameter.getTag() != Tag.SEQUENCE || parameter.getTagClass() != Tag.CLASS_UNIVERSAL || parameter.isPrimitive()) throw new MAPParsingComponentException("Error while decoding resetRequest: Bad tag or tagClass or parameter is primitive, received tag=" + parameter.getTag(), MAPParsingComponentExceptionReason.MistypedParameter); long version = mapDialogImpl.getApplicationContext().getApplicationContextVersion().getVersion(); ResetRequestImpl ind = new ResetRequestImpl(version); byte[] buf = parameter.getData(); AsnInputStream ais = new AsnInputStream(buf); ind.decodeData(ais, buf.length); ind.setInvokeId(invokeId); ind.setMAPDialog(mapDialogImpl); for (MAPServiceListener serLis : this.serviceListeners) { try { serLis.onMAPMessage(ind); ((MAPServiceMobilityListener) serLis).onResetRequest(ind); } catch (Exception e) { loger.error("Error processing resetRequest: " + e.getMessage(), e); } } }
private void unstructuredSSResponse(Parameter parameter, MAPDialogSupplementaryImpl mapDialogImpl, Long invokeId, boolean returnResultNotLast) throws MAPParsingComponentException { UnstructuredSSResponseImpl ind = new UnstructuredSSResponseImpl(); if (parameter != null) { if (parameter.getTag() != Tag.SEQUENCE || parameter.getTagClass() != Tag.CLASS_UNIVERSAL || parameter.isPrimitive()) throw new MAPParsingComponentException( "Error while decoding UnstructuredSSResponseIndication: Bad tag or tagClass or parameter is primitive, received tag=" + parameter.getTag(), MAPParsingComponentExceptionReason.MistypedParameter); byte[] buf = parameter.getData(); AsnInputStream ais = new AsnInputStream(buf, parameter.getTagClass(), parameter.isPrimitive(), parameter.getTag()); ind.decodeData(ais, buf.length); } ind.setInvokeId(invokeId); ind.setMAPDialog(mapDialogImpl); ind.setReturnResultNotLast(returnResultNotLast); for (MAPServiceListener serLis : this.serviceListeners) { try { serLis.onMAPMessage(ind); ((MAPServiceSupplementaryListener) serLis).onUnstructuredSSResponse(ind); } catch (Exception e) { loger.error("Error processing UnstructuredSSResponseIndication: " + e.getMessage(), e); } } }
private void sendRoutingInfoForLCSReq(Parameter parameter, MAPDialogLsmImpl mapDialogImpl, Long invokeId) throws MAPParsingComponentException { if (parameter == null) { throw new MAPParsingComponentException( "Error while decoding sendRoutingInfoForLCS: Parameter is mandatory but not found", MAPParsingComponentExceptionReason.MistypedParameter); } if (parameter.getTag() != Tag.SEQUENCE || parameter.getTagClass() != Tag.CLASS_UNIVERSAL || parameter.isPrimitive()) throw new MAPParsingComponentException( "Error while decoding sendRoutingInfoForLCSReq: Bad tag or tagClass or parameter is primitive, received tag=" + parameter.getTag(), MAPParsingComponentExceptionReason.MistypedParameter); byte[] buf = parameter.getData(); AsnInputStream ais = new AsnInputStream(buf); SendRoutingInfoForLCSRequestImpl ind = new SendRoutingInfoForLCSRequestImpl(); ind.decodeData(ais, buf.length); ind.setInvokeId(invokeId); ind.setMAPDialog(mapDialogImpl); for (MAPServiceListener serLis : this.serviceListeners) { serLis.onMAPMessage(ind); ((MAPServiceLsmListener) serLis).onSendRoutingInfoForLCSRequest(ind); } }
private void subscriberLocationReportReq(Parameter parameter, MAPDialogLsmImpl mapDialogImpl, Long invokeId) throws MAPParsingComponentException { if (parameter == null) { throw new MAPParsingComponentException( "Error while decoding subscriberLocationReport: Parameter is mandatory but not found", MAPParsingComponentExceptionReason.MistypedParameter); } if (parameter.getTag() != Tag.SEQUENCE || parameter.getTagClass() != Tag.CLASS_UNIVERSAL || parameter.isPrimitive()) throw new MAPParsingComponentException( "Error while decoding subscriberLocationReportReq: Bad tag or tagClass or parameter is primitive, received tag=" + parameter.getTag(), MAPParsingComponentExceptionReason.MistypedParameter); byte[] buf = parameter.getData(); AsnInputStream ais = new AsnInputStream(buf); SubscriberLocationReportRequestImpl ind = new SubscriberLocationReportRequestImpl(); ind.decodeData(ais, buf.length); ind.setInvokeId(invokeId); ind.setMAPDialog(mapDialogImpl); for (MAPServiceListener serLis : this.serviceListeners) { serLis.onMAPMessage(ind); ((MAPServiceLsmListener) serLis).onSubscriberLocationReportRequest(ind); } }
private void provideSubscriberLocationReq(Parameter param, MAPDialogLsmImpl mapDialogImpl, Long invokeId) throws MAPParsingComponentException { if (param == null) { throw new MAPParsingComponentException( "Error while decoding provideSubscriberLocationRes: Parameter is mandatory but not found", MAPParsingComponentExceptionReason.MistypedParameter); } if (param.getTag() != Tag.SEQUENCE || param.getTagClass() != Tag.CLASS_UNIVERSAL || param.isPrimitive()) throw new MAPParsingComponentException( "Error while decoding provideSubscriberLocationReq: Bad tag or tagClass or parameter is primitive, received tag=" + param.getTag(), MAPParsingComponentExceptionReason.MistypedParameter); byte[] buf = param.getData(); AsnInputStream ais = new AsnInputStream(buf); ProvideSubscriberLocationRequestImpl ind = new ProvideSubscriberLocationRequestImpl(); ind.decodeData(ais, buf.length); ind.setInvokeId(invokeId); ind.setMAPDialog(mapDialogImpl); for (MAPServiceListener serLis : this.serviceListeners) { serLis.onMAPMessage(ind); ((MAPServiceLsmListener) serLis).onProvideSubscriberLocationRequest(ind); } }
private void subscriberLocationReportRes(Parameter parameter, MAPDialogLsmImpl mapDialogImpl, Long invokeId, boolean returnResultNotLast) throws MAPParsingComponentException { if (parameter == null) { throw new MAPParsingComponentException( "Error while decoding subscriberLocationReport: Parameter is mandatory but not found", MAPParsingComponentExceptionReason.MistypedParameter); } if (parameter.getTag() != Tag.SEQUENCE || parameter.getTagClass() != Tag.CLASS_UNIVERSAL || parameter.isPrimitive()) throw new MAPParsingComponentException( "Error while decoding subscriberLocationReportRes: Bad tag or tagClass or parameter is primitive, received tag=" + parameter.getTag(), MAPParsingComponentExceptionReason.MistypedParameter); byte[] buf = parameter.getData(); AsnInputStream ais = new AsnInputStream(buf); SubscriberLocationReportResponseImpl resInd = new SubscriberLocationReportResponseImpl(); resInd.decodeData(ais, buf.length); resInd.setInvokeId(invokeId); resInd.setMAPDialog(mapDialogImpl); resInd.setReturnResultNotLast(returnResultNotLast); for (MAPServiceListener serLis : this.serviceListeners) { serLis.onMAPMessage(resInd); ((MAPServiceLsmListener) serLis).onSubscriberLocationReportResponse(resInd); } }
private void provideSubscriberLocationRes(Parameter param, MAPDialogLsmImpl mapDialogImpl, Long invokeId, boolean returnResultNotLast) throws MAPParsingComponentException { if (param == null) { throw new MAPParsingComponentException( "Error while decoding provideSubscriberLocationRes: Parameter is mandatory but not found", MAPParsingComponentExceptionReason.MistypedParameter); } if (param.getTag() != Tag.SEQUENCE || param.getTagClass() != Tag.CLASS_UNIVERSAL || param.isPrimitive()) throw new MAPParsingComponentException( "Error while decoding provideSubscriberLocationRes: Bad tag or tagClass or parameter is primitive, received tag=" + param.getTag(), MAPParsingComponentExceptionReason.MistypedParameter); byte[] buf = param.getData(); AsnInputStream ais = new AsnInputStream(buf); ProvideSubscriberLocationResponseImpl provideSubsLoctResInd = new ProvideSubscriberLocationResponseImpl(); provideSubsLoctResInd.decodeData(ais, buf.length); provideSubsLoctResInd.setInvokeId(invokeId); provideSubsLoctResInd.setMAPDialog(mapDialogImpl); provideSubsLoctResInd.setReturnResultNotLast(returnResultNotLast); for (MAPServiceListener serLis : this.serviceListeners) { serLis.onMAPMessage(provideSubsLoctResInd); ((MAPServiceLsmListener) serLis).onProvideSubscriberLocationResponse(provideSubsLoctResInd); } }