javax.sip.message.Request.getContent()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(115)

本文整理了Java中javax.sip.message.Request.getContent方法的一些代码示例,展示了Request.getContent的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getContent方法的具体详情如下:
包路径:javax.sip.message.Request
类名称:Request
方法名:getContent

Request.getContent介绍

暂无

代码示例

代码示例来源:origin: org.apache.camel/camel-sip

private void processPublish(RequestEvent requestEvent,
    ServerTransaction serverTransactionId) {
  try {
    Request request = requestEvent.getRequest();
    LOG.debug("SipPresenceAgentListener: Received a Publish request, sending OK");
    LOG.debug("SipPresenceAgentListener request: {}", request);
    EventHeader eventHeader = (EventHeader) requestEvent.getRequest().getHeader(EventHeader.NAME);
    Response response = sipPresenceAgent.getConfiguration().getMessageFactory().createResponse(202, request);
    sipPresenceAgent.getProvider().sendResponse(response);
    // Send notification to subscriber
    sendNotification(eventHeader, false, request.getContent());
           } catch (Exception e) {
    LOG.error("Exception thrown during publish/notify processing in the Sip Presence Agent Listener", e);
  }
}

代码示例来源:origin: org.apache.camel/camel-sip

dispatchExchange(notify.getContent());

代码示例来源:origin: org.apache.camel/camel-sip

sendNotification(eventHeader, isInitial, request.getContent());

代码示例来源:origin: org.jitsi/jain-sip-ri-ossonly

authorization = this.getAuthorization(reoriginatedRequest
      .getMethod(), uri.toString(),
      (reoriginatedRequest.getContent() == null) ? "" : new String(
      reoriginatedRequest.getRawContent()), authHeader, credHash);
} else {
        (reoriginatedRequest.getContent() == null) ? "" : new String(
        reoriginatedRequest.getRawContent()), authHeader, userCreds);

代码示例来源:origin: org.mobicents.examples/restcomm-slee-example-mscontrol-demo-sbb

private void initialMediaSessionSetup(ServerTransaction serverTransaction)
    throws MsControlException {
  // create media session
  MediaSession session = msRaSbbInterface.createMediaSession();
  ActivityContextInterface mediaSessionACI = mscRaAciFactory
      .getActivityContextInterface(session);
  SbbLocalObject sbbLocalObject = sbbContext.getSbbLocalObject();
  mediaSessionACI.attach(sbbLocalObject);
  // store the media session aci in a cmp shortcut
  setMediaSessionACI(mediaSessionACI);
  tracer.info("Created media session: " + session);
  // create network connection
  NetworkConnection connection = session
      .createNetworkConnection(NetworkConnection.BASIC);
  ActivityContextInterface connectionACI = mscRaAciFactory
      .getActivityContextInterface(connection);
  connectionACI.attach(sbbLocalObject);
  // store the network connection aci in a cmp shortcut
  setNetworkConnectionACI(connectionACI);
  tracer.info("Created network connection: " + connection);
  // process the received sdp
  SdpPortManager sdpManager = connection.getSdpPortManager();
  tracer.info("Created SDP Manager, sending client sdp...");
  sdpManager.processSdpOffer((byte[]) serverTransaction.getRequest()
      .getContent());
}

代码示例来源:origin: org.mobicents.examples/mobicents-slee-example-mscontrol-demo-sbb

private void initialMediaSessionSetup(ServerTransaction serverTransaction)
    throws MsControlException {
  // create media session
  MediaSession session = msRaSbbInterface.createMediaSession();
  ActivityContextInterface mediaSessionACI = mscRaAciFactory
      .getActivityContextInterface(session);
  SbbLocalObject sbbLocalObject = sbbContext.getSbbLocalObject();
  mediaSessionACI.attach(sbbLocalObject);
  // store the media session aci in a cmp shortcut
  setMediaSessionACI(mediaSessionACI);
  tracer.info("Created media session: " + session);
  // create network connection
  NetworkConnection connection = session
      .createNetworkConnection(NetworkConnection.BASIC);
  ActivityContextInterface connectionACI = mscRaAciFactory
      .getActivityContextInterface(connection);
  connectionACI.attach(sbbLocalObject);
  // store the network connection aci in a cmp shortcut
  setNetworkConnectionACI(connectionACI);
  tracer.info("Created network connection: " + connection);
  // process the received sdp
  SdpPortManager sdpManager = connection.getSdpPortManager();
  tracer.info("Created SDP Manager, sending client sdp...");
  sdpManager.processSdpOffer((byte[]) serverTransaction.getRequest()
      .getContent());
}

代码示例来源:origin: org.mobicents.servlet.sip/sip-servlets-impl

Request dialogRequest=
  dialog.createRequest(clonedRequest.getMethod());
Object content=clonedRequest.getContent();
if (content!=null) {
  ContentTypeHeader contentTypeHeader= (ContentTypeHeader)

相关文章