Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/* ----------------------------------------------------------------------------
* Copyright (C) 2013 European Space Agency
* European Space Operations Centre
* Darmstadt
* Germany
* ----------------------------------------------------------------------------
* System : CCSDS MO MAL Java Implementation
* ----------------------------------------------------------------------------
* Licensed under the European Space Agency Public License, Version 2.0
* You may not use this file except in compliance with the License.
*
* Except as expressly set forth in this License, the Software is provided to
* You on an "as is" basis and without warranties of any kind, including without
* limitation merchantability, fitness for a particular purpose, absence of
* defects or errors, accuracy or non-infringement of intellectual property rights.
*
* See the License for the specific language governing permissions and
* limitations under the License.
* ----------------------------------------------------------------------------
*/
package esa.mo.mal.impl.broker;
import esa.mo.mal.impl.util.MALClose;
import java.util.List;
import java.util.Map;
import org.ccsds.moims.mo.mal.MALException;
import org.ccsds.moims.mo.mal.MALInteractionException;
import org.ccsds.moims.mo.mal.MALOperation;
import org.ccsds.moims.mo.mal.MALStandardError;
import org.ccsds.moims.mo.mal.broker.MALBrokerBinding;
import org.ccsds.moims.mo.mal.structures.*;
import org.ccsds.moims.mo.mal.transport.MALMessage;
import org.ccsds.moims.mo.mal.transport.MALTransmitErrorListener;
/**
* Wrapper class for Transport level broker bindings.
*/
public class MALBrokerBindingTransportWrapper extends MALClose implements MALBrokerBinding {
private final MALBrokerBinding transportDelegate;
MALBrokerBindingTransportWrapper(final MALClose parent,
final MALBrokerBinding transportDelegate) throws MALException {
super(parent);
this.transportDelegate = transportDelegate;
}
@Override
public void close() throws MALException {
transportDelegate.close();
}
@Override
public Blob getAuthenticationId() {
return transportDelegate.getAuthenticationId();
}
@Override
public Blob setAuthenticationId(Blob newAuthenticationId) {
return transportDelegate.setAuthenticationId(newAuthenticationId);
}
@Override
public URI getURI() {
return transportDelegate.getURI();
}
@Override
public MALMessage sendNotify(final UShort area,
final UShort service,
final UShort operation,
final UOctet version,
final URI subscriber,
final Long transactionId,
final IdentifierList domainId,
final Identifier networkZone,
final SessionType sessionType,
final Identifier sessionName,
final QoSLevel notifyQos,
final Map notifyQosProps,
final UInteger notifyPriority,
final Identifier subscriptionId,
final UpdateHeaderList updateHeaderList,
final List... updateList)
throws IllegalArgumentException, MALInteractionException, MALException {
return transportDelegate.sendNotify(area,
service,
operation,
version,
subscriber,
transactionId,
domainId,
networkZone,
sessionType,
sessionName,
notifyQos,
notifyQosProps,
notifyPriority,
subscriptionId,
updateHeaderList,
updateList);
}
@Override
public MALMessage sendNotify(final MALOperation op,
final URI subscriber,
final Long transactionId,
final IdentifierList domainId,
final Identifier networkZone,
final SessionType sessionType,
final Identifier sessionName,
final QoSLevel notifyQos,
final Map notifyQosProps,
final UInteger notifyPriority,
final Identifier subscriptionId,
final UpdateHeaderList updateHeaderList,
final List... updateList)
throws IllegalArgumentException, MALInteractionException, MALException {
return transportDelegate.sendNotify(op,
subscriber,
transactionId,
domainId,
networkZone,
sessionType,
sessionName,
notifyQos,
notifyQosProps,
notifyPriority,
subscriptionId,
updateHeaderList,
updateList);
}
@Override
public MALMessage sendNotifyError(final UShort area,
final UShort service,
final UShort operation,
final UOctet version,
final URI subscriber,
final Long transactionId,
final IdentifierList domainId,
final Identifier networkZone,
final SessionType sessionType,
final Identifier sessionName,
final QoSLevel notifyQos,
final Map notifyQosProps,
final UInteger notifyPriority,
final MALStandardError error)
throws IllegalArgumentException, MALInteractionException, MALException {
return transportDelegate.sendNotifyError(area,
service,
operation,
version,
subscriber,
transactionId,
domainId,
networkZone,
sessionType,
sessionName,
notifyQos,
notifyQosProps,
notifyPriority,
error);
}
@Override
public MALMessage sendNotifyError(final MALOperation op,
final URI subscriber,
final Long transactionId,
final IdentifierList domainId,
final Identifier networkZone,
final SessionType sessionType,
final Identifier sessionName,
final QoSLevel notifyQos,
final Map notifyQosProps,
final UInteger notifyPriority,
final MALStandardError error)
throws IllegalArgumentException, MALInteractionException, MALException {
return transportDelegate.sendNotifyError(op,
subscriber,
transactionId,
domainId,
networkZone,
sessionType,
sessionName,
notifyQos,
notifyQosProps,
notifyPriority,
error);
}
@Override
public MALMessage sendPublishError(final UShort area,
final UShort service,
final UShort operation,
final UOctet version,
final URI publisher,
final Long transactionId,
final IdentifierList domainId,
final Identifier networkZone,
final SessionType sessionType,
final Identifier sessionName,
final QoSLevel qos,
final Map qosProps,
final UInteger priority,
final MALStandardError error)
throws IllegalArgumentException, MALInteractionException, MALException {
return transportDelegate.sendPublishError(area,
service,
operation,
version,
publisher,
transactionId,
domainId,
networkZone,
sessionType,
sessionName,
qos,
qosProps,
priority,
error);
}
@Override
public MALMessage sendPublishError(final MALOperation op,
final URI publisher,
final Long transactionId,
final IdentifierList domainId,
final Identifier networkZone,
final SessionType sessionType,
final Identifier sessionName,
final QoSLevel qos,
final Map qosProps,
final UInteger priority,
final MALStandardError error)
throws IllegalArgumentException, MALInteractionException, MALException {
return transportDelegate.sendPublishError(op,
publisher,
transactionId,
domainId,
networkZone,
sessionType,
sessionName,
qos,
qosProps,
priority,
error);
}
@Override
public void setTransmitErrorListener(final MALTransmitErrorListener listener) throws MALException {
transportDelegate.setTransmitErrorListener(listener);
}
@Override
public MALTransmitErrorListener getTransmitErrorListener() throws MALException {
return transportDelegate.getTransmitErrorListener();
}
}