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

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

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

Request.getHeaders介绍

暂无

代码示例

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

public void processRequest(RequestEvent requestReceivedEvent) {
  Request request = requestReceivedEvent.getRequest();
  ServerTransaction serverTransactionId = requestReceivedEvent
      .getServerTransaction();
  String viaBranch = ((ViaHeader)(request.getHeaders(ViaHeader.NAME).next())).getParameter("branch");
  LOG.debug("Request: {}", request.getMethod()); 
  LOG.debug("Server Transaction Id: {}", serverTransactionId);
  LOG.debug("Received From Branch: {}", viaBranch);
  if (request.getMethod().equals(Request.NOTIFY)) {
    processNotify(requestReceivedEvent, serverTransactionId);
  } 
}

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

ListIterator<RouteHeader> routeHeaders = ackRequest.getHeaders(RouteHeader.NAME);
ackRequest.removeHeader(RouteHeader.NAME);
while (routeHeaders.hasNext()) {

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

ListIterator<ContactHeader> contactHeaders = newRequest.getHeaders(ContactHeader.NAME);
while (contactHeaders.hasNext()) {

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

final ListIterator<RecordRouteHeader> recordRouteHeaders = request.getHeaders(RecordRouteHeader.NAME);
while (recordRouteHeaders.hasNext()) {
  RecordRouteHeader recordRouteHeader = (RecordRouteHeader) recordRouteHeaders

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

ListIterator li = request.getHeaders(RecordRouteHeader.NAME);
while(li.hasNext()) {
  RecordRouteHeader rrh = (RecordRouteHeader) li.next();

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

ListIterator<ViaHeader> vias = request.getHeaders(ViaHeader.NAME);
while (vias.hasNext() && nbVias <= 2) {
  vias.next();

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

ListIterator<RouteHeader> routeHeaders = prackRequest.getHeaders(RouteHeader.NAME);
prackRequest.removeHeader(RouteHeader.NAME);
while (routeHeaders.hasNext()) {

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

ListIterator<ViaHeader> viaHeaders = methodRequest.getHeaders(ViaHeader.NAME);				
    if(viaHeaders != null && viaHeaders.hasNext()) {
      ViaHeader viaHeader = viaHeaders.next();
      ListIterator<ViaHeader> viaHeaders = request.getHeaders(ViaHeader.NAME);				
      if(viaHeaders != null && viaHeaders.hasNext()) {
        ViaHeader viaHeader = viaHeaders.next();
final ListIterator<RouteHeader> routeHeaders = request.getHeaders(RouteHeader.NAME);
request.removeHeader(RouteHeader.NAME);
while (routeHeaders.hasNext()) {

代码示例来源:origin: org.mobicents.examples/mobicents-slee-example-sip-jdbc-registrar-sbb

.getRequest().getHeaders(ContactHeader.NAME));

相关文章