Examples of AddressParser


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

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

    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

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

    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

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

    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

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

    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

Examples of org.apache.qpid.messaging.util.AddressParser

            throw new QmfException("QmfCallback listener must be either a Notifier or QmfEventListener");
        }

        if (options != null)
        { // We wrap the Map in a QmfData object to avoid potential class cast issues with the parsed options
            QmfData optMap = new QmfData(new AddressParser(options).map());
            if (optMap.hasValue("replyTimeout"))
            {
                _replyTimeout = (int)optMap.getLongValue("replyTimeout");
            }
View Full Code Here

Examples of org.apache.qpid.messaging.util.AddressParser

        long timeout = _replyTimeout;
        String replyHandle = null;

        if (options != null)
        { // We wrap the Map in a QmfData object to avoid potential class cast issues with the parsed options
            QmfData optMap = new QmfData(new AddressParser(options).map());
            if (optMap.hasValue("lifetime"))
            {
                lifetime = optMap.getLongValue("lifetime");
            }
View Full Code Here

Examples of org.apache.qpid.messaging.util.AddressParser

        long timeout = _replyTimeout;
        String replyHandle = null;

        if (options != null)
        { // We wrap the Map in a QmfData object to avoid potential class cast issues with the parsed options
            QmfData optMap = new QmfData(new AddressParser(options).map());
            if (optMap.hasValue("lifetime"))
            {
                lifetime = optMap.getLongValue("lifetime");
            }
View Full Code Here

Examples of org.apache.qpid.messaging.util.AddressParser

            List<Agent> agentList = Arrays.asList(new Agent[] {agent});
            List<QmfConsoleData> objects = _console.getObjects(pkg, cls, agentList);

            // Parse the args String
            QmfData inArgs = (args == null) ? new QmfData() : new QmfData(new AddressParser(args).map());

            // Find the required QmfConsoleData object and invoke the specified command
            MethodResult results = null;
            for (QmfConsoleData object : objects)
            {
View Full Code Here

Examples of org.apache.qpid.messaging.util.AddressParser

        setValue("_name", name);
        setValue("_type", type.toString());

        if (options != null && options.length() != 0)
        {
            Map optMap = new AddressParser(options).map();

            if (optMap.containsKey("index"))
            {
                String value = optMap.get("index").toString();
                setValue("_index", Boolean.valueOf(value));
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.