Package javax.sip.message

Examples of javax.sip.message.Request.removeHeader()


 
  @SuppressWarnings("unchecked")
  protected void sendRegisterNoContact(RegisterSession session, List<String> expectedContacts) throws Exception
  {
    Request request = session.createRegister(null, 1800);
    request.removeHeader(ContactHeader.NAME);
    request.removeHeader(ExpiresHeader.NAME);
    Response response =
      session.sendRegistrationMessage(request, Response.OK);
   
    List<String> noParams = new ArrayList<String>();
View Full Code Here


  @SuppressWarnings("unchecked")
  protected void sendRegisterNoContact(RegisterSession session, List<String> expectedContacts) throws Exception
  {
    Request request = session.createRegister(null, 1800);
    request.removeHeader(ContactHeader.NAME);
    request.removeHeader(ExpiresHeader.NAME);
    Response response =
      session.sendRegistrationMessage(request, Response.OK);
   
    List<String> noParams = new ArrayList<String>();
    Iterator<String> it1 = expectedContacts.iterator();
View Full Code Here

                        "Could not find WWWAuthenticate or ProxyAuthenticate headers");
            }

            // Remove all authorization headers from the request (we'll re-add them
            // from cache)
            reoriginatedRequest.removeHeader(AuthorizationHeader.NAME);
            reoriginatedRequest.removeHeader(ProxyAuthorizationHeader.NAME);

            // rfc 3261 says that the cseq header should be augmented for the new
            // request. do it here so that the new dialog (created together with
            // the new client transaction) takes it into account.
View Full Code Here

            }

            // Remove all authorization headers from the request (we'll re-add them
            // from cache)
            reoriginatedRequest.removeHeader(AuthorizationHeader.NAME);
            reoriginatedRequest.removeHeader(ProxyAuthorizationHeader.NAME);

            // rfc 3261 says that the cseq header should be augmented for the new
            // request. do it here so that the new dialog (created together with
            // the new client transaction) takes it into account.
            // Bug report - Fredrik Wickstrom
View Full Code Here

                    RecordRouteHeader recordRouteHeader = headerFactory
                            .createRecordRouteHeader(address);

                    ListIterator recordRouteHeaders = clonedRequest
                            .getHeaders(RecordRouteHeader.NAME);
                    clonedRequest.removeHeader(RecordRouteHeader.NAME);
                    ArrayList v = new ArrayList();
                    v.add(recordRouteHeader);

                    // add the other record route headers.
                    while (recordRouteHeaders != null
View Full Code Here

                // Branch Id will be assigned by the stack.
                viaHeader = headerFactory.createViaHeader(defaultLP.getIPAddress(),
                        defaultLP.getPort(), transport != null ? transport : "", null);

                // Cancel is hop by hop so remove all other via headers.
                clonedRequest.removeHeader(ViaHeader.NAME);
            }
            else
            {
                String branch = ProxyUtilities.generateBranchId();
                viaHeader = headerFactory.createViaHeader(defaultLP.getIPAddress(),
View Full Code Here

                    if (header instanceof ViaHeader)
                    {
                        ListIterator li = clonedRequest.getHeaders(name);
                        if (li != null)
                        {
                            dialogRequest.removeHeader(name);
                            Vector v = new Vector();
                            while (li.hasNext())
                            {
                                Header h = (Header) li.next();
                                v.addElement(h);
View Full Code Here

                            Request cancelRequest = ctr.createCancel();

                            // Let's keep only the top most via header:
                            ListIterator cancelViaList = cancelRequest
                                    .getHeaders(ViaHeader.NAME);
                            cancelRequest.removeHeader(ViaHeader.NAME);
                            cancelRequest.addHeader((ViaHeader) cancelViaList
                                    .next());

                            SipURI localAddr = (SipURI) ctr.getDialog()
                                    .getLocalParty().getURI();
View Full Code Here

                        "Could not find WWWAuthenticate or ProxyAuthenticate headers");

            // Remove all authorization headers from the request (we'll re-add
            // them
            // from cache)
            reoriginatedRequest.removeHeader(AuthorizationHeader.NAME);
            reoriginatedRequest.removeHeader(ProxyAuthorizationHeader.NAME);

            // rfc 3261 says that the cseq header should be augmented for the
            // new
            // request. do it here so that the new dialog (created together with
View Full Code Here

            // Remove all authorization headers from the request (we'll re-add
            // them
            // from cache)
            reoriginatedRequest.removeHeader(AuthorizationHeader.NAME);
            reoriginatedRequest.removeHeader(ProxyAuthorizationHeader.NAME);

            // rfc 3261 says that the cseq header should be augmented for the
            // new
            // request. do it here so that the new dialog (created together with
            // the new client transaction) takes it into account.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.