Class AbstractTransmissionDelegate
java.lang.Object
com.ptc.qualitymanagement.regmstr.impl.AbstractTransmissionDelegate
- All Implemented Interfaces:
RegulatoryTransmissionDelegateInterface
- Direct Known Subclasses:
com.ptc.qualitymanagement.regmstr.impl.ContentWriterTransmissionDelegate
public abstract class AbstractTransmissionDelegate
extends Object
implements RegulatoryTransmissionDelegateInterface
This abstract class provides default implementations for common functions required to transmit a regulatory
submission payload to a regulatory agency.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptiongetPayloadStream(RegulatorySubmission regulatorySubmission, org.apache.logging.log4j.Logger transmissionLogger) Returns an input stream from Regulatory Content or Primary Content of a Regulatory Submission.booleantransmit(RegulatorySubmission regulatorySubmission) Deprecated.transmitWithResult(RegulatorySubmission regulatorySubmission) Calls deprecated transmit(RegulatorySubmission) for backward compatibilityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ptc.qualitymanagement.regmstr.impl.RegulatoryTransmissionDelegateInterface
initialize
-
Method Details
-
getPayloadStream
public InputStream getPayloadStream(RegulatorySubmission regulatorySubmission, org.apache.logging.log4j.Logger transmissionLogger) throws WTException, PropertyVetoException Returns an input stream from Regulatory Content or Primary Content of a Regulatory Submission. Only content items of type ApplicationData are supported.Calls RegulatorySubmissionProcessorInterface.getTransmissionPayloadCategory() to determine the location of the payload to be sent to the regulatory agency. Only supports the internal name of a RegulatoryContentCategory or the value of the of RegulatorySubmissionProcessorInterface.USE_PRIMARY_CONTENT_AS_TRANSMISSION_PAYLOAD.
It is the responsibility of the consuming code to close the input stream after usage.
RegulatorySubmissionProcessorInterface.getTransmissionPayloadCategory()RegulatoryContentCategoryRegulatorySubmissionProcessorInterface.USE_PRIMARY_CONTENT_AS_TRANSMISSION_PAYLOAD
Supported API: true- Specified by:
getPayloadStreamin interfaceRegulatoryTransmissionDelegateInterface- Parameters:
regulatorySubmission-transmissionLogger-- Returns:
- Throws:
WTExceptionPropertyVetoException
-
transmit
Deprecated.invalid reference
RegulatoryTransmissionDelegateInterface#transmit()
Supported API: true- Specified by:
transmitin interfaceRegulatoryTransmissionDelegateInterface- Throws:
Exception
-
transmitWithResult
Calls deprecated transmit(RegulatorySubmission) for backward compatibility- Specified by:
transmitWithResultin interfaceRegulatoryTransmissionDelegateInterface- Parameters:
regulatorySubmission- The submission to transmit- Returns:
- RegulatorySubmission Any result from the transmission
Supported API: true - Throws:
Exception
-