本文整理了Java中javax.sip.message.Request.getHeaders
方法的一些代码示例,展示了Request.getHeaders
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getHeaders
方法的具体详情如下:
包路径:javax.sip.message.Request
类名称: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));
内容来源于网络,如有侵权,请联系作者删除!