Package org.apache.camel.component.mllp
Class MllpEndpoint
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.DefaultEndpoint
org.apache.camel.component.mllp.MllpEndpoint
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.CamelContextAware,org.apache.camel.Endpoint,org.apache.camel.IsSingleton,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.HasId,org.apache.camel.StatefulService,org.apache.camel.SuspendableService
@ManagedResource(description="MLLP Endpoint")
@UriEndpoint(scheme="mllp",
firstVersion="2.17.0",
title="MLLP",
syntax="mllp:hostname:port",
category={NETWORKING,RPC,MLLP},
generateConfigurer=true,
headersClass=MllpConstants.class)
public class MllpEndpoint
extends org.apache.camel.support.DefaultEndpoint
Communicate with external systems using the MLLP protocol.
NOTE: MLLP payloads are not logged unless the logging level is set to DEBUG or TRACE to avoid introducing PHI into
the log files. Logging of PHI can be globally disabled by setting the org.apache.camel.mllp.logPHI system property to
false.
-
Field Summary
Fields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING -
Constructor Summary
ConstructorsConstructorDescriptionMllpEndpoint(String uri, MllpComponent component, MllpConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckAfterSendProperties(org.apache.camel.Exchange exchange, Socket socket, org.slf4j.Logger log) booleancheckBeforeSendProperties(org.apache.camel.Exchange exchange, Socket socket, org.slf4j.Logger log) org.apache.camel.ConsumercreateConsumer(org.apache.camel.Processor processor) org.apache.camel.ExchangecreateExchange(org.apache.camel.ExchangePattern exchangePattern) org.apache.camel.ProducervoiddoConnectionClose(Socket socket, boolean reset, org.slf4j.Logger log) intgetPort()booleanbooleanvoidsetAcceptTimeout(int acceptTimeout) voidsetAutoAck(Boolean autoAck) voidsetBacklog(Integer backlog) voidsetBindRetryInterval(int bindRetryInterval) voidsetBindTimeout(int bindTimeout) voidsetBridgeErrorHandler(boolean bridgeErrorHandler) voidsetCharsetName(String charsetName) voidsetConfiguration(MllpConfiguration configuration) voidsetConnectTimeout(int connectTimeout) voidsetExchangePattern(org.apache.camel.ExchangePattern exchangePattern) voidsetHl7Headers(Boolean hl7Headers) voidsetHostname(String hostname) Hostname or IP for connection for the TCP connection.voidsetIdleTimeout(Integer idleTimeout) voidvoidsetKeepAlive(Boolean keepAlive) voidsetLenientBind(boolean lenientBind) voidsetMaxConcurrentConsumers(int maxConcurrentConsumers) voidsetPort(int port) Port number for the TCP connectionvoidsetReadTimeout(int readTimeout) voidsetReceiveBufferSize(Integer receiveBufferSize) voidsetReceiveTimeout(int receiveTimeout) voidsetRequireEndOfData(Boolean requireEndOfData) voidsetReuseAddress(Boolean reuseAddress) voidsetSendBufferSize(Integer sendBufferSize) voidsetStringPayload(Boolean stringPayload) voidsetTcpNoDelay(Boolean tcpNoDelay) voidsetValidatePayload(Boolean validatePayload) voidvoidupdateLastConnectionActivityTicks(long epochTicks) voidvoidMethods inherited from class org.apache.camel.support.DefaultEndpoint
configureConsumer, configureExchange, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createPollingConsumer, doInit, doStart, doStop, equals, getCamelContext, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, isSingleton, setAutowiredEnabled, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toStringMethods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.Endpoint
getEndpointBaseUri, isSingletonProducerMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
MllpEndpoint
-
-
Method Details
-
getComponent
- Overrides:
getComponentin classorg.apache.camel.support.DefaultEndpoint
-
createExchange
public org.apache.camel.Exchange createExchange(org.apache.camel.ExchangePattern exchangePattern) - Specified by:
createExchangein interfaceorg.apache.camel.Endpoint- Overrides:
createExchangein classorg.apache.camel.support.DefaultEndpoint
-
setExchangePattern
public void setExchangePattern(org.apache.camel.ExchangePattern exchangePattern) - Overrides:
setExchangePatternin classorg.apache.camel.support.DefaultEndpoint
-
setBridgeErrorHandler
public void setBridgeErrorHandler(boolean bridgeErrorHandler) - Overrides:
setBridgeErrorHandlerin classorg.apache.camel.support.DefaultEndpoint
-
createProducer
- Throws:
Exception
-
createConsumer
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception - Throws:
Exception
-
getLastConnectionActivityTime
-
getLastConnectionEstablishedTime
@ManagedAttribute(description="Last connection established time") public Date getLastConnectionEstablishedTime() -
getLastConnectionTerminatedTime
@ManagedAttribute(description="Last connection terminated time") public Date getLastConnectionTerminatedTime() -
hasLastConnectionActivityTicks
public boolean hasLastConnectionActivityTicks() -
getLastConnectionActivityTicks
-
updateLastConnectionActivityTicks
public void updateLastConnectionActivityTicks() -
updateLastConnectionActivityTicks
public void updateLastConnectionActivityTicks(long epochTicks) -
updateLastConnectionEstablishedTicks
public void updateLastConnectionEstablishedTicks() -
updateLastConnectionTerminatedTicks
public void updateLastConnectionTerminatedTicks() -
getHostname
-
setHostname
Hostname or IP for connection for the TCP connection. The default value is null, which means any local IP address- Parameters:
hostname- Hostname or IP
-
getPort
public int getPort() -
setPort
public void setPort(int port) Port number for the TCP connection- Parameters:
port- TCP port
-
hasConfiguration
public boolean hasConfiguration() -
getConfiguration
-
setConfiguration
-
setBacklog
-
setBindTimeout
public void setBindTimeout(int bindTimeout) -
setBindRetryInterval
public void setBindRetryInterval(int bindRetryInterval) -
setLenientBind
public void setLenientBind(boolean lenientBind) -
setAcceptTimeout
public void setAcceptTimeout(int acceptTimeout) -
setConnectTimeout
public void setConnectTimeout(int connectTimeout) -
setReceiveTimeout
public void setReceiveTimeout(int receiveTimeout) -
setIdleTimeout
-
setReadTimeout
public void setReadTimeout(int readTimeout) -
setKeepAlive
-
setTcpNoDelay
-
setReuseAddress
-
setReceiveBufferSize
-
setSendBufferSize
-
setAutoAck
-
setHl7Headers
-
setRequireEndOfData
-
setStringPayload
-
setValidatePayload
-
getCharsetName
-
setCharsetName
-
setMaxConcurrentConsumers
public void setMaxConcurrentConsumers(int maxConcurrentConsumers) -
setIdleTimeoutStrategy
-
checkBeforeSendProperties
public boolean checkBeforeSendProperties(org.apache.camel.Exchange exchange, Socket socket, org.slf4j.Logger log) -
checkAfterSendProperties
public boolean checkAfterSendProperties(org.apache.camel.Exchange exchange, Socket socket, org.slf4j.Logger log) -
doConnectionClose
-