Package org.jitterbit.integration.jms

Examples of org.jitterbit.integration.jms.MessageHeaderDescriptor


     * @throws IllegalArgumentException
     *             if <code>name</code> is invalid.
     */
    public JmsMessage(JmsMessageId id, String name) {
        super(EntityType.JmsMessage, id, name);
        headerDescriptor = new MessageHeaderDescriptor();
        standardProperties = new StandardPropertiesDescriptor();
        userDefinedProperties = new MessagePropertiesDescriptor();
    }
View Full Code Here


     * {@link #setHeaderDescriptor(MessageHeaderDescriptor) setHeaderDescriptor}.
     *
     * @return the <code>MessageHeaderDescriptor</code> for this <code>JmsMessage</code>.
     */
    public MessageHeaderDescriptor getHeaderDescriptor() {
        return new MessageHeaderDescriptor(headerDescriptor);
    }
View Full Code Here

     *            Passing <code>null</code> to this method results in a header descriptor without
     *            any default values.
     */
    public void setHeaderDescriptor(MessageHeaderDescriptor header) {
        boolean changed = false;
        MessageHeaderDescriptor old = headerDescriptor;
        if (header == null) {
            changed = headerDescriptor.hasNonNullDefaultValues();
            if (changed) {
                headerDescriptor = new MessageHeaderDescriptor();
            }
        } else {
            changed = !header.equals(headerDescriptor);
            if (changed) {
                headerDescriptor = new MessageHeaderDescriptor(header);
            }
        }
        if (changed) {
            firePropertyChange(HEADER_DESCRIPTOR, old, header);
        }
View Full Code Here

    }

    @Override
    public JmsMessage clone() {
        JmsMessage clone = (JmsMessage) super.clone();
        clone.headerDescriptor = new MessageHeaderDescriptor(headerDescriptor);
        clone.standardProperties = new StandardPropertiesDescriptor(standardProperties);
        clone.userDefinedProperties = new MessagePropertiesDescriptor(userDefinedProperties);
        if (xmlPayloadStructure != null) {
            clone.xmlPayloadStructure = new XmlStructure(xmlPayloadStructure);
        } else {
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.jms.MessageHeaderDescriptor

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.