Package gov.nist.javax.sip.parser

Examples of gov.nist.javax.sip.parser.AddressParser


                "\"M. Ranganathan\"   <sip:mranga@nist.gov>",
                "<sip:+1-650-555-2222@ss1.wcom.com;user=phone>",
                "M. Ranganathan <sip:mranga@nist.gov>" };
        try {
            for (int i = 0; i < addresses.length; i++) {
                AddressParser addressParser = new AddressParser(addresses[i]);
                AddressImpl addr = addressParser.address(true);
                assertEquals(addr, new AddressParser(addr.encode()).address(true));
            }
        } catch (ParseException ex) {
            fail(this.getClass().getName());
        }
        // Non regression test for Issue 316 : createAddress can add spurious angle brackets
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(true);
            addressHeader.setAddress(addr);


        } catch (ParseException ex) {
            throw ex;
View Full Code Here

    public javax.sip.address.Address getLocalParty() {
        // jeand : we save the address in a string form and reparse it, help GC
        // for dialogs updated not too often
        if (localParty == null && localPartyStringified != null) {
            try {
                this.localParty = (Address) new AddressParser(
                        localPartyStringified).address(true);
            } catch (ParseException e) {
                logger.logError(
                        "error reparsing the localParty", e);
            }
View Full Code Here

    public javax.sip.address.Address getRemoteParty() {
        // jeand : we save the address in a string form and reparse it, help GC
        // for dialogs updated not too often
        if (remoteParty == null && remotePartyStringified != null) {
            try {
                this.remoteParty = (Address) new AddressParser(
                        remotePartyStringified).address(true);
            } catch (ParseException e) {
                logger.logError(
                        "error reparsing the remoteParty", e);
            }
View Full Code Here

    public javax.sip.address.Address getRemoteTarget() {
        // jeand : we save the address in a string form and reparse it, help GC
        // for dialogs updated not too often
        if (remoteTarget == null && remoteTargetStringified != null) {
            try {
                this.remoteTarget = (Address) new AddressParser(
                        remoteTargetStringified).address(true);
            } catch (ParseException e) {
                logger.logError(
                        "error reparsing the remoteTarget", e);
            }
View Full Code Here

    public javax.sip.address.Address getLocalParty() {
        // jeand : we save the address in a string form and reparse it, help GC
        // for dialogs updated not too often
        if (localParty == null && localPartyStringified != null) {
            try {
                this.localParty = (Address) new AddressParser(
                        localPartyStringified).address(true);
            } catch (ParseException e) {
                logger.logError(
                        "error reparsing the localParty", e);
            }
View Full Code Here

    public javax.sip.address.Address getRemoteParty() {
        // jeand : we save the address in a string form and reparse it, help GC
        // for dialogs updated not too often
        if (remoteParty == null && remotePartyStringified != null) {
            try {
                this.remoteParty = (Address) new AddressParser(
                        remotePartyStringified).address(true);
            } catch (ParseException e) {
                logger.logError(
                        "error reparsing the remoteParty", e);
            }
View Full Code Here

    public javax.sip.address.Address getRemoteTarget() {
        // jeand : we save the address in a string form and reparse it, help GC
        // for dialogs updated not too often
        if (remoteTarget == null && remoteTargetStringified != null) {
            try {
                this.remoteTarget = (Address) new AddressParser(
                        remoteTargetStringified).address(true);
            } catch (ParseException e) {
                logger.logError(
                        "error reparsing the remoteTarget", e);
            }
View Full Code Here

    public javax.sip.address.Address getLocalParty() {
        // jeand : we save the address in a string form and reparse it, help GC for dialogs updated not too often
      // TODO set a prop for that
      if(localParty == null && localPartyStringified != null) {
        try {
        this.localParty = (Address) new AddressParser(localPartyStringified).address(true);
      } catch (ParseException e) {
        sipStack.getStackLogger().logError("error reparsing the localParty", e);
      }
      localPartyStringified = null;
      }
View Full Code Here

    public javax.sip.address.Address getRemoteParty() {
      // jeand : we save the address in a string form and reparse it, help GC for dialogs updated not too often
      // TODO set a prop for that
      if(remoteParty == null && remotePartyStringified != null) {
        try {
        this.remoteParty = (Address) new AddressParser(remotePartyStringified).address(true);
      } catch (ParseException e) {
        sipStack.getStackLogger().logError("error reparsing the remoteParty", e);
      }
      remotePartyStringified = null;
      }
View Full Code Here

TOP

Related Classes of gov.nist.javax.sip.parser.AddressParser

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.