public static MAPApplicationContext getInstance(MAPApplicationContextName contextName, MAPApplicationContextVersion contextVersion) { if (MAPApplicationContext.availableApplicationContextVersion(contextName, contextVersion.getVersion())) return getMAPApplicationContext(contextName, contextVersion); else return null; }
private MAPApplicationContext(MAPApplicationContextName contextName, MAPApplicationContextVersion contextVersion) { this.contextName = contextName; this.contextVersion = contextVersion; this.res[6] = this.contextName.getApplicationContextCode(); this.res[7] = this.contextVersion.getVersion(); }
public static MAPApplicationContext getInstance(long[] oid) { if (oid == null || oid.length != oidTemplate.length) return null; for (int i1 = 0; i1 < oidTemplate.length - 2; i1++) { if (oid[i1] != oidTemplate[i1]) return null; } MAPApplicationContextName contextName = MAPApplicationContextName.getInstance(oid[6]); MAPApplicationContextVersion contextVersion = MAPApplicationContextVersion.getInstance(oid[7]); if (contextName == null || contextVersion == null) return null; if (!MAPApplicationContext.availableApplicationContextVersion(contextName, (int) oid[7])) return null; return getMAPApplicationContext(contextName, contextVersion); }
@Override public int getTag() throws MAPException { if (allEpsData) return Tag.NULL; else if (contextIdList != null) return Tag.SEQUENCE; throw new MAPException("Error encoding " + _PrimitiveName + ": no choices are selected"); }
@Override protected void _testLengthDecode(int length) throws MAPParsingComponentException { if (length > 10) throw new MAPParsingComponentException("Error when decoding FTNAddressString: mesage length must not exceed 9", MAPParsingComponentExceptionReason.MistypedParameter); }
protected void deliverErrorComponent(MAPDialog mapDialog, Long invokeId, MAPErrorMessage mapErrorMessage) { for (MAPServiceListener serLis : this.serviceListeners) { serLis.onErrorComponent(mapDialog, invokeId, mapErrorMessage); } }
private void deliverDialogDelimiter(MAPDialog mapDialog) { for (MAPDialogListener listener : this.dialogListeners) { listener.onDialogDelimiter(mapDialog); } }
private void deliverDialogAccept(MAPDialog mapDialog, MAPExtensionContainer extensionContainer) { for (MAPDialogListener listener : this.dialogListeners) { // for (FastList.Node<MAPDialogListener> n = this.dialogListeners.head(), end = this.dialogListeners // .tail(); (n = n.getNext()) != end;) { // MAPDialogListener listener = n.getValue(); listener.onDialogAccept(mapDialog, extensionContainer); } }
private void deliverDialogReject(MAPDialog mapDialog, MAPRefuseReason refuseReason, ApplicationContextName alternativeApplicationContext, MAPExtensionContainer extensionContainer) { for (MAPDialogListener listener : this.dialogListeners) { listener.onDialogReject(mapDialog, refuseReason, alternativeApplicationContext, extensionContainer); } }
private void deliverDialogProviderAbort(MAPDialog mapDialog, MAPAbortProviderReason abortProviderReason, MAPAbortSource abortSource, MAPExtensionContainer extensionContainer) { for (MAPDialogListener listener : this.dialogListeners) { listener.onDialogProviderAbort(mapDialog, abortProviderReason, abortSource, extensionContainer); } }
private void deliverDialogClose(MAPDialog mapDialog) { for (MAPDialogListener listener : this.dialogListeners) { listener.onDialogClose(mapDialog); } }
public int getTag() throws MAPException { if (cliRestrictionOption != null) { return _TAG_cliRestrictionOption; } else if (overrideCategory != null) { return _TAG_overrideCategory; } else { throw new MAPException("No of choices are supplied"); } }
protected void _testLengthDecode(int length) throws MAPParsingComponentException { if (length > 20) throw new MAPParsingComponentException("Error when decoding AddressString: mesage length must not exceed 20", MAPParsingComponentExceptionReason.MistypedParameter); }
public int getLac() throws MAPException { if (data == null) throw new MAPException("Data must not be empty"); if (data.length < 5) throw new MAPException("Data length must be at least 5"); int res = (data[3] & 0xFF) * 256 + (data[4] & 0xFF); return res; }
public int getCellId() throws MAPException { if (data == null) throw new MAPException("Data must not be empty"); if (data.length < 7) throw new MAPException("Data length must be at least 7"); int res = (data[5] & 0xFF) * 256 + (data[6] & 0xFF); return res; }
public int getLac() throws MAPException { if (data == null) throw new MAPException("Data must not be empty"); if (data.length < 5 || data.length > 7) throw new MAPException("Data length must be between 5-7"); int res = (data[3] & 0xFF) * 256 + (data[4] & 0xFF); return res; }
public int getCellId() throws MAPException { if (data == null) throw new MAPException("Data must not be empty"); if (data.length < 5 || data.length > 7) throw new MAPException("Data length must be between 5-7"); int res = 0; if (data.length == 7) res = (data[5] & 0xFF) * 256 + (data[6] & 0xFF); return res; }
public int getLac() throws MAPException { if (data == null) throw new MAPException("Data must not be empty"); if (data.length != 7) throw new MAPException("Data length must be equal 7"); int res = (data[3] & 0xFF) * 256 + (data[4] & 0xFF); return res; }
@Override public int getTag() throws MAPException { if (forwardingInfo != null) { return _TAG_forwardingInfo; } else if (callBarringInfo != null) { return _TAG_callBarringInfo; } else if (ssData != null) { return _TAG_ssData; } else { throw new MAPException("No of choices are supplied"); } }
public int getUtranCellId() throws MAPException { if (data == null) throw new MAPException("Data must not be empty"); if (data.length < 7) throw new MAPException("Data length must be at least 7"); int res = ((data[3] & 0xFF) << 24) + ((data[4] & 0xFF) << 16) + ((data[5] & 0xFF) << 8) + (data[6] & 0xFF); return res; }