本文整理匯總了Java中org.mobicents.protocols.ss7.map.api.service.supplementary.UnstructuredSSRequest類的典型用法代碼示例。如果您正苦於以下問題:Java UnstructuredSSRequest類的具體用法?Java UnstructuredSSRequest怎麽用?Java UnstructuredSSRequest使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
UnstructuredSSRequest類屬於org.mobicents.protocols.ss7.map.api.service.supplementary包,在下文中一共展示了UnstructuredSSRequest類的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: addUnstructuredSSRequest
import org.mobicents.protocols.ss7.map.api.service.supplementary.UnstructuredSSRequest; //導入依賴的package包/類
/**
* Adds the unstructured ss request.
*
* @param unstructuredSSRequestIndication the unstructured ss request indication
* @param mapDialogSupplementary the map dialog supplementary
* @throws MAPException the MAP exception
*/
protected void addUnstructuredSSRequest(
UnstructuredSSRequest unstructuredSSRequestIndication,
MAPDialogSupplementary mapDialogSupplementary) throws MAPException {
log.entry(unstructuredSSRequestIndication, mapDialogSupplementary);
if (mapDialogSupplementary == null) {
log.exit();
return;
}
mapDialogSupplementary.addUnstructuredSSRequest(
unstructuredSSRequestIndication.getDataCodingScheme(),
unstructuredSSRequestIndication.getUSSDString(), null, null);
try {
mapDialogSupplementary.send();
} finally {
}
log.exit();
}
示例2: onUnstructuredSSRequest
import org.mobicents.protocols.ss7.map.api.service.supplementary.UnstructuredSSRequest; //導入依賴的package包/類
@Override
public void onUnstructuredSSRequest(UnstructuredSSRequest unstrReqInd) {
log.entry(unstrReqInd);
Dialog xmlDialog =
new Dialog(this.getXmlDialogType(unstrReqInd.getMAPDialog()
.getTCAPMessageType()), unstrReqInd.getMAPDialog()
.getLocalDialogId(), unstrReqInd.getMAPDialog()
.getReceivedDestReference(), unstrReqInd.getMAPDialog()
.getReceivedOrigReference(), unstrReqInd);
try {
byte[] serializedEvent = this.getXmlFactory().serialize(xmlDialog);
log.info(new String(serializedEvent));
} catch (XMLStreamException e) {
log.catching(e);
}
log.exit();
}
示例3: onUnstructuredSSRequest
import org.mobicents.protocols.ss7.map.api.service.supplementary.UnstructuredSSRequest; //導入依賴的package包/類
@Override
public void onUnstructuredSSRequest(UnstructuredSSRequest ind) {
if (!isStarted) {
return;
}
if (currentDialog == null) {
currentDialog = ind.getMAPDialog();
}
MAPDialogSupplementary curDialog = currentDialog;
if (curDialog != ind.getMAPDialog()) {
return;
}
ussdEmptyDialogBeginFlag = 2;
invokeId = ind.getInvokeId();
try {
currentRequestDef += "Rcvd: unstrSsReq=\"" + ind.getUSSDString().getString(null) + "\";";
} catch (Exception e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
this.countUnstReq++;
String uData = this
.createUssdMessageData(curDialog.getLocalDialogId(), ind.getDataCodingScheme().getCode(), null, null);
try {
this.testerHost.sendNotif(SOURCE_NAME, "Rcvd: unstrSsReq: " + ind.getUSSDString().getString(null), uData,
Level.DEBUG);
} catch (MAPException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
示例4: onUnstructuredSSRequest
import org.mobicents.protocols.ss7.map.api.service.supplementary.UnstructuredSSRequest; //導入依賴的package包/類
@Override
public void onUnstructuredSSRequest(UnstructuredSSRequest unstrReqInd) {
logger.debug("[[[[[[[[[[ onUnstructuredSSRequest ]]]]]]]]]]");
/*// Server shouldn't be getting UnstructuredSSRequestIndication
logger.error(String.format("onUnstructuredSSRequestIndication for Dialog=%d and invokeId=%d", unstrReqInd
.getMAPDialog().getLocalDialogId(), unstrReqInd.getInvokeId()));*/
}
示例5: createUnstructuredSSRequestIndication
import org.mobicents.protocols.ss7.map.api.service.supplementary.UnstructuredSSRequest; //導入依賴的package包/類
public UnstructuredSSRequest createUnstructuredSSRequestIndication(CBSDataCodingScheme ussdDataCodingSch,
USSDString ussdString, AlertingPattern alertingPattern, ISDNAddressString msisdnAddressString) {
UnstructuredSSRequest request = new UnstructuredSSRequestImpl(ussdDataCodingSch, ussdString, alertingPattern,
msisdnAddressString);
return request;
}
示例6: onUnstructuredSSRequest
import org.mobicents.protocols.ss7.map.api.service.supplementary.UnstructuredSSRequest; //導入依賴的package包/類
@Override
public void onUnstructuredSSRequest(UnstructuredSSRequest ind) {
}
示例7: onUnstructuredSSRequest
import org.mobicents.protocols.ss7.map.api.service.supplementary.UnstructuredSSRequest; //導入依賴的package包/類
@Override
public void onUnstructuredSSRequest(UnstructuredSSRequest unstrReqInd) {
//throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
logger.debug("[[[[[[[[[[ UnstructuredSSRequest ]]]]]]]]]]");
}