Examples of FieldTable


Examples of org.apache.qpid.framing.FieldTable

    private void test(String message, String urlOption, Boolean serverOption, Boolean expectedClientProperty)
    {
        ConnectionURL url = mock(ConnectionURL.class);
        when(url.getOption(ConnectionURL.OPTIONS_CLOSE_WHEN_NO_ROUTE)).thenReturn(urlOption);

        FieldTable serverProperties = new FieldTable();
        if(serverOption != null)
        {
            serverProperties.setBoolean(ConnectionStartProperties.QPID_CLOSE_WHEN_NO_ROUTE, serverOption);
        }

        FieldTable clientProperties = new FieldTable();

        _closeWhenNoRouteSettingsHelper.setClientProperties(clientProperties, url, serverProperties);

        assertEquals(message, expectedClientProperty, clientProperties.getBoolean(ConnectionStartProperties.QPID_CLOSE_WHEN_NO_ROUTE));
    }
View Full Code Here

Examples of org.apache.qpid.framing.FieldTable

    }

    public void sendCreateQueue(AMQShortString name, final boolean autoDelete, final boolean durable, final boolean exclusive, final Map<String, Object> arguments) throws AMQException,
            FailoverException
    {
        FieldTable table = null;
        if(arguments != null && !arguments.isEmpty())
        {
            table = new FieldTable();
            for(Map.Entry<String, Object> entry : arguments.entrySet())
            {
                table.setObject(entry.getKey(), entry.getValue());
            }
        }
        QueueDeclareBody body = getMethodRegistry().createQueueDeclareBody(getTicket(),name,false,durable,exclusive,autoDelete,false,table);
        AMQFrame queueDeclare = body.generateFrame(_channelId);
        getProtocolHandler().syncWrite(queueDeclare, QueueDeclareOkBody.class);
View Full Code Here

Examples of org.jitterbit.integration.client.ui.interchange.entity.document.page.table.FieldTable

            }
        };
    }

    private FieldTable createTable() {
        FieldTable table = isFixedwidth ? createFixedWidthTable() : createDelimitedTable();
        table.addPropertyChangeListener(FieldTable.TABLE_CONTENT_PROPERTY, new PropertyChangeListener() {

            @Override
            public void propertyChange(PropertyChangeEvent evt) {
                hasChanged = true;
            }
        });
        if (readOnly) {
            table.setReadOnly();
        }
        return table;
    }
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.