blob: fbe9d6a09d6ddec01f81ed5a72a9bdbc15723b87 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.qpid.proton.systemtests;
import org.apache.qpid.proton.amqp.messaging.Source;
import org.apache.qpid.proton.amqp.messaging.Target;
import org.apache.qpid.proton.engine.Connection;
import org.apache.qpid.proton.engine.Delivery;
import org.apache.qpid.proton.engine.Receiver;
import org.apache.qpid.proton.engine.Sender;
import org.apache.qpid.proton.engine.Session;
import org.apache.qpid.proton.engine.Transport;
import org.apache.qpid.proton.message.Message;
/**
* Simple "struct" class used to hold related Engine objects
*/
public class ProtonContainer
{
String containerId;
Connection connection;
Transport transport;
Session session;
Sender sender;
Receiver receiver;
Source source;
Target target;
Delivery delivery;
Message message;
byte[] messageData;
public ProtonContainer(String containerId)
{
this.containerId = containerId;
}
public String getContainerId() {
return containerId;
}
public void setContainerId(String containerId) {
this.containerId = containerId;
}
public Connection getConnection() {
return connection;
}
public void setConnection(Connection connection) {
this.connection = connection;
}
public Transport getTransport() {
return transport;
}
public void setTransport(Transport transport) {
this.transport = transport;
}
public Session getSession() {
return session;
}
public void setSession(Session session) {
this.session = session;
}
public Sender getSender() {
return sender;
}
public void setSender(Sender sender) {
this.sender = sender;
}
public Receiver getReceiver() {
return receiver;
}
public void setReceiver(Receiver receiver) {
this.receiver = receiver;
}
public Source getSource() {
return source;
}
public void setSource(Source source) {
this.source = source;
}
public Target getTarget() {
return target;
}
public void setTarget(Target target) {
this.target = target;
}
public Delivery getDelivery() {
return delivery;
}
public void setDelivery(Delivery delivery) {
this.delivery = delivery;
}
public Message getMessage() {
return message;
}
public void setMessage(Message message) {
this.message = message;
}
public byte[] getMessageData() {
return messageData;
}
public void setMessageData(byte[] messageData) {
this.messageData = messageData;
}
}