public abstract class HttpInboundTrigger extends AbstractCamelTrigger
CAMEL_CONTEXT, template| Modifier | Constructor and Description |
|---|---|
protected |
HttpInboundTrigger(org.qubership.automation.itf.core.util.descriptor.StorableDescriptor triggerConfigurationDescriptor,
org.qubership.automation.itf.core.model.transport.ConnectionProperties connectionProperties) |
generateNewId, getIdactivate, applyConfiguration, checkIfServerAvailable, deactivate, getConnectionProperties, getError, getPrefixWithProjectUuid, getState, getTriggerConfigurationDescriptor, setConnectionPropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstartprotected HttpInboundTrigger(org.qubership.automation.itf.core.util.descriptor.StorableDescriptor triggerConfigurationDescriptor, org.qubership.automation.itf.core.model.transport.ConnectionProperties connectionProperties)
protected org.qubership.automation.itf.core.model.jpa.message.Message setUpOut(org.apache.camel.Exchange exchange, String sessionId) throws Exception
Exceptionprotected void collectMetrics(UUID projectUuid, org.qubership.automation.itf.core.model.communication.TransportType transportType, String endPoint, boolean resultState, OffsetDateTime started)
public boolean prepareFastResponse(org.apache.camel.Exchange exchange,
org.qubership.automation.itf.core.model.jpa.message.Message message,
org.qubership.automation.itf.core.stub.fast.StubEndpointConfig cfg,
String sessionId,
org.qubership.automation.itf.core.util.descriptor.StorableDescriptor triggerDescriptor)
throws Exception
exchange - - Camel exchange,message - - incoming message,cfg - - Fast stub configuration,sessionId - - session id for logging purposes,triggerDescriptor - - trigger configuration descriptor,Exception - - mostly in case exceptions while sending message to reporting.protected org.qubership.automation.itf.core.model.jpa.message.Message setUpFastOut(org.apache.camel.Exchange exchange, String sessionId, org.qubership.automation.itf.core.stub.fast.ResponseDescription responseDescription, org.qubership.automation.itf.core.model.jpa.context.JsonContext context) throws Exception
Exceptionprotected String replaceVariables(String input, org.qubership.automation.itf.core.model.jpa.context.JsonContext context)
protected void processHeaders(Map<String,Object> headersMap, org.qubership.automation.itf.core.model.jpa.context.JsonContext context)
protected void activateSpecificTrigger()
throws Exception
activateSpecificTrigger in class AbstractTriggerImplExceptionprotected abstract org.apache.camel.RoutesBuilder createRoute()
protected abstract org.apache.camel.Message composeBody(org.apache.camel.Message camelMessage,
org.qubership.automation.itf.core.model.jpa.message.Message itfMessage)
throws Exception
Exceptionprotected void deactivateSpecificTrigger()
throws Exception
deactivateSpecificTrigger in class AbstractTriggerImplExceptionprotected void applyTriggerProperties(org.qubership.automation.itf.core.model.transport.ConnectionProperties connectionProperties)
applyTriggerProperties in class AbstractTriggerImplpublic void validateRequest(org.apache.camel.Exchange exchange)
public void validateResponse(org.apache.camel.Exchange exchange)
protected Map<String,Object> getAdditionalProperties(org.apache.camel.Exchange exchange)
public org.apache.camel.CamelContext getCamelContext()
Copyright © 2025. All rights reserved.