Package gov.nist.javax.sip.address

Examples of gov.nist.javax.sip.address.AddressImpl


                while (li.hasPrevious()) {
                    RecordRoute rr = (RecordRoute) li.previous();

                    if (addRoute) {
                        Route route = new Route();
                        AddressImpl address = ((AddressImpl) ((AddressImpl) rr.getAddress())
                                .clone());

                        route.setAddress(address);
                        route.setParameters((NameValueList) rr.getParameters().clone());

                        this.routeList.add(route);
                    }
                }
            } else {
                // This is a server dialog. The top most record route
                // header is the one that is closest to us. We extract the
                // route list in the same order as the addresses in the
                // incoming request.
                this.routeList = new RouteList();
                ListIterator li = recordRouteList.listIterator();
                boolean addRoute = true;
                while (li.hasNext()) {
                    RecordRoute rr = (RecordRoute) li.next();

                    if (addRoute) {
                        Route route = new Route();
                        AddressImpl address = ((AddressImpl) ((AddressImpl) rr.getAddress())
                                .clone());
                        route.setAddress(address);
                        route.setParameters((NameValueList) rr.getParameters().clone());
                        routeList.add(route);
                    }
View Full Code Here


                while (li.hasPrevious()) {
                    RecordRoute rr = (RecordRoute) li.previous();

                    if (addRoute) {
                        Route route = new Route();
                        AddressImpl address = ((AddressImpl) ((AddressImpl) rr.getAddress())
                                .clone());

                        route.setAddress(address);
                        route.setParameters((NameValueList) rr.getParameters().clone());

                        this.routeList.add(route);
                    }
                }
            } else {
                // This is a server dialog. The top most record route
                // header is the one that is closest to us. We extract the
                // route list in the same order as the addresses in the
                // incoming request.
                this.routeList = new RouteList();
                ListIterator li = recordRouteList.listIterator();
                boolean addRoute = true;
                while (li.hasNext()) {
                    RecordRoute rr = (RecordRoute) li.next();

                    if (addRoute) {
                        Route route = new Route();
                        AddressImpl address = ((AddressImpl) ((AddressImpl) rr.getAddress())
                                .clone());
                        route.setAddress(address);
                        route.setParameters((NameValueList) rr.getParameters().clone());
                        routeList.add(route);
                    }
View Full Code Here

                while (li.hasPrevious()) {
                    RecordRoute rr = (RecordRoute) li.previous();

                    if (addRoute) {
                        Route route = new Route();
                        AddressImpl address = ((AddressImpl) ((AddressImpl) rr
                                .getAddress()).clone());

                        route.setAddress(address);
                        route.setParameters((NameValueList) rr.getParameters()
                                .clone());

                        this.routeList.add(route);
                    }
                }
            } else {
                // This is a server dialog. The top most record route
                // header is the one that is closest to us. We extract the
                // route list in the same order as the addresses in the
                // incoming request.
                this.routeList = new RouteList();
                ListIterator li = recordRouteList.listIterator();
                boolean addRoute = true;
                while (li.hasNext()) {
                    RecordRoute rr = (RecordRoute) li.next();

                    if (addRoute) {
                        Route route = new Route();
                        AddressImpl address = ((AddressImpl) ((AddressImpl) rr
                                .getAddress()).clone());
                        route.setAddress(address);
                        route.setParameters((NameValueList) rr.getParameters()
                                .clone());
                        routeList.add(route);
View Full Code Here

                while (li.hasPrevious()) {
                    RecordRoute rr = (RecordRoute) li.previous();

                    if (addRoute) {
                        Route route = new Route();
                        AddressImpl address = ((AddressImpl) ((AddressImpl) rr
                                .getAddress()).clone());

                        route.setAddress(address);
                        route.setParameters((NameValueList) rr.getParameters()
                                .clone());

                        this.routeList.add(route);
                    }
                }
            } else {
                // This is a server dialog. The top most record route
                // header is the one that is closest to us. We extract the
                // route list in the same order as the addresses in the
                // incoming request.
                this.routeList = new RouteList();
                ListIterator li = recordRouteList.listIterator();
                boolean addRoute = true;
                while (li.hasNext()) {
                    RecordRoute rr = (RecordRoute) li.next();

                    if (addRoute) {
                        Route route = new Route();
                        AddressImpl address = ((AddressImpl) ((AddressImpl) rr
                                .getAddress()).clone());
                        route.setAddress(address);
                        route.setParameters((NameValueList) rr.getParameters()
                                .clone());
                        routeList.add(route);
View Full Code Here

      SipURI sipURI = new SipUri();
      sipURI.setHost(ipAddress);
      sipURI.setPort(port);
      sipURI.setTransportParam(this.transport);
      Contact contact = new Contact();
      AddressImpl address = new AddressImpl();
      address.setURI(sipURI);
      contact.setAddress(address);
      return contact;
    } catch (Exception ex) {
      InternalErrorHandler.handleException("Unexpected exception",sipStack.getLogWriter());
      return null;
View Full Code Here

          super.parse(contact);
        }
      } else {
        super.parse(contact);
      }
      AddressImpl address = (AddressImpl) contact.getAddress();
      URI uri = contact.getAddress().getURI();
      /*
       * When the header field value contains a display name, the URI
       * including all URI parameters is enclosed in "<" and ">". If no "<"
       * and ">" are present, all parameters after the URI are header
       * parameters, not URI parameters.
       */
      if (address.getAddressType() == AddressImpl.ADDRESS_SPEC
          && uri instanceof SipUri) {
        SipUri   sipUri = (SipUri) uri;
        HashSet parameterNames = new HashSet();
        for (Iterator it = sipUri.getParameterNames(); it.hasNext(); ) {
          parameterNames.add(it.next());
View Full Code Here

  protected void parse(AddressHeaderIms addressHeader)
    throws ParseException {
    dbg_enter("AddressHeaderParser.parse");
    try {
      AddressParser addressParser = new AddressParser(this.getLexer());
      AddressImpl addr = addressParser.address();
      addressHeader.setAddress(addr);
     
   
    } catch (ParseException ex) {
      throw ex;
View Full Code Here

            SipURI sipURI = new SipUri();
            sipURI.setHost(ipAddress);
            sipURI.setPort(port);
            sipURI.setTransportParam(this.transport);
            Contact contact = new Contact();
            AddressImpl address = new AddressImpl();
            address.setURI(sipURI);
            contact.setAddress(address);
           
            return contact;
        } catch (Exception ex) {
            InternalErrorHandler.handleException("Unexpected exception",logger);
View Full Code Here

                while (li.hasPrevious()) {
                    RecordRoute rr = (RecordRoute) li.previous();

                    if (addRoute) {
                        Route route = new Route();
                        AddressImpl address = ((AddressImpl) ((AddressImpl) rr
                                .getAddress()).clone());

                        route.setAddress(address);
                        route.setParameters((NameValueList) rr.getParameters()
                                .clone());

                        this.routeList.add(route);
                    }
                }
            } else {
                // This is a server dialog. The top most record route
                // header is the one that is closest to us. We extract the
                // route list in the same order as the addresses in the
                // incoming request.
                this.routeList = new RouteList();
                ListIterator li = recordRouteList.listIterator();
                boolean addRoute = true;
                while (li.hasNext()) {
                    RecordRoute rr = (RecordRoute) li.next();

                    if (addRoute) {
                        Route route = new Route();
                        AddressImpl address = ((AddressImpl) ((AddressImpl) rr
                                .getAddress()).clone());
                        route.setAddress(address);
                        route.setParameters((NameValueList) rr.getParameters()
                                .clone());
                        routeList.add(route);
View Full Code Here

                while (li.hasPrevious()) {
                    RecordRoute rr = (RecordRoute) li.previous();

                    if (addRoute) {
                        Route route = new Route();
                        AddressImpl address = ((AddressImpl) ((AddressImpl) rr.getAddress())
                                .clone());

                        route.setAddress(address);
                        route.setParameters((NameValueList) rr.getParameters().clone());

                        this.routeList.add(route);
                    }
                }
            } else {
                // This is a server dialog. The top most record route
                // header is the one that is closest to us. We extract the
                // route list in the same order as the addresses in the
                // incoming request.
                this.routeList = new RouteList();
                ListIterator li = recordRouteList.listIterator();
                boolean addRoute = true;
                while (li.hasNext()) {
                    RecordRoute rr = (RecordRoute) li.next();

                    if (addRoute) {
                        Route route = new Route();
                        AddressImpl address = ((AddressImpl) ((AddressImpl) rr.getAddress())
                                .clone());
                        route.setAddress(address);
                        route.setParameters((NameValueList) rr.getParameters().clone());
                        routeList.add(route);
                    }
View Full Code Here

TOP

Related Classes of gov.nist.javax.sip.address.AddressImpl

Copyright © 2018 www.massapicom. 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.