Examples of FieldTable


Examples of org.apache.qpid.framing.FieldTable

        else
        {
            _acknowledgeMode = acknowledgeMode;
        }

        final FieldTable ft = FieldTableFactory.newFieldTable();
        // rawSelector is used by HeadersExchange and is not a JMS Selector
        if (rawSelector != null)
        {
            ft.addAll(rawSelector);
        }

        // We must always send the selector argument even if empty, so that we can tell when a selector is removed from a
        // durable topic subscription that the broker arguments don't match any more. This is because it is not otherwise
        // possible to determine  when querying the broker whether there are no arguments or just a non-matching selector
        // argument, as specifying null for the arguments when querying means they should not be checked at all
        ft.put(AMQPFilterTypes.JMS_SELECTOR.getValue(), messageSelector == null ? "" : messageSelector);
        if(noLocal)
        {
            ft.put(AMQPFilterTypes.NO_LOCAL.getValue(), noLocal);
        }

        _arguments = ft;

    }
View Full Code Here

Examples of org.apache.qpid.framing.FieldTable

    }

    public Object getHeader(String name)
    {
        FieldTable ft = getProperties().getHeaders();
        return ft.get(name);
    }
View Full Code Here

Examples of org.apache.qpid.framing.FieldTable

        return ft.get(name);
    }

    public boolean containsHeaders(Set<String> names)
    {
        FieldTable ft = getProperties().getHeaders();
        for(String name : names)
        {
            if(!ft.containsKey(name))
            {
                return false;
            }
        }
        return true;
View Full Code Here

Examples of org.apache.qpid.framing.FieldTable

    }

    @Override
    public Collection<String> getHeaderNames()
    {
        FieldTable ft = getProperties().getHeaders();
        return ft.keys();
    }
View Full Code Here

Examples of org.apache.qpid.framing.FieldTable

        return ft.keys();
    }

    public boolean containsHeader(String name)
    {
        FieldTable ft = getProperties().getHeaders();
        return ft.containsKey(name);
    }
View Full Code Here

Examples of org.apache.qpid.framing.FieldTable

            String mechanisms = _broker.getSubjectCreator(getLocalAddress()).getMechanisms();

            String locales = "en_US";


            FieldTable serverProperties = FieldTableFactory.newFieldTable();

            serverProperties.setString(ServerPropertyNames.PRODUCT,
                    QpidProperties.getProductName());
            serverProperties.setString(ServerPropertyNames.VERSION,
                    QpidProperties.getReleaseVersion());
            serverProperties.setString(ServerPropertyNames.QPID_BUILD,
                    QpidProperties.getBuildVersion());
            serverProperties.setString(ServerPropertyNames.QPID_INSTANCE_NAME,
                    _broker.getName());
            serverProperties.setString(ConnectionStartProperties.QPID_CLOSE_WHEN_NO_ROUTE,
                    String.valueOf(_closeWhenNoRoute));

            AMQMethodBody responseBody = getMethodRegistry().createConnectionStartBody((short) getProtocolMajorVersion(),
                                                                                       (short) pv.getActualMinorVersion(),
                                                                                       serverProperties,
View Full Code Here

Examples of org.apache.qpid.framing.FieldTable

                    throw new AMQException(null, "No locales sent from server, passed: " + locales, null);
                }

                session.getStateManager().changeState(AMQState.CONNECTION_NOT_TUNED);

                FieldTable clientProperties = FieldTableFactory.newFieldTable();

                clientProperties.setString(ConnectionStartProperties.CLIENT_ID_0_8,
                        session.getClientID());
                clientProperties.setString(ConnectionStartProperties.PRODUCT,
                        QpidProperties.getProductName());
                clientProperties.setString(ConnectionStartProperties.VERSION_0_8,
                        QpidProperties.getReleaseVersion());
                clientProperties.setString(ConnectionStartProperties.PLATFORM,
                        ConnectionStartProperties.getPlatformInfo());
                clientProperties.setString(ConnectionStartProperties.PROCESS,
                        System.getProperty(ClientProperties.PROCESS_NAME, "Qpid Java Client"));
                clientProperties.setInteger(ConnectionStartProperties.PID,
                        ConnectionStartProperties.getPID());

                FieldTable serverProperties = body.getServerProperties();
                session.setConnectionStartServerProperties(serverProperties);

                ConnectionURL url = getConnectionURL(session);
                _closeWhenNoRouteHelper.setClientProperties(clientProperties, url, serverProperties);
View Full Code Here

Examples of org.apache.qpid.framing.FieldTable

            return getReplyTo();
        }

        public Object getHeader(String name)
        {
            FieldTable ft = getProperties().getHeaders();
            return ft.get(name);
        }
View Full Code Here

Examples of org.apache.qpid.framing.FieldTable

            return ft.get(name);
        }

        public boolean containsHeaders(Set<String> names)
        {
            FieldTable ft = getProperties().getHeaders();
            for(String name : names)
            {
                if(!ft.containsKey(name))
                {
                    return false;
                }
            }
            return true;
View Full Code Here

Examples of org.apache.qpid.framing.FieldTable

            return getProperties().getHeaders().keys();
        }

        public boolean containsHeader(String name)
        {
            FieldTable ft = getProperties().getHeaders();
            return ft.containsKey(name);
        }
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.