Class HpdQueryProducer<AuditDatasetType extends WsAuditDataset>
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.DefaultProducer
org.openehealth.ipf.platform.camel.ihe.ws.AbstractWsProducer<AuditDatasetType,WsTransactionConfiguration<AuditDatasetType>,BatchRequest,BatchResponse>
org.openehealth.ipf.platform.camel.ihe.ws.SimpleWsProducer<AuditDatasetType,WsTransactionConfiguration<AuditDatasetType>,BatchRequest,BatchResponse>
org.openehealth.ipf.platform.camel.ihe.hpd.HpdQueryProducer<AuditDatasetType>
- All Implemented Interfaces:
AutoCloseable,EndpointAware,IsSingleton,Processor,Producer,Service,ShutdownableService,StatefulService,SuspendableService,ProducerHandler<BatchRequest,BatchResponse>
public class HpdQueryProducer<AuditDatasetType extends WsAuditDataset>
extends SimpleWsProducer<AuditDatasetType,WsTransactionConfiguration<AuditDatasetType>,BatchRequest,BatchResponse>
implements ProducerHandler<BatchRequest,BatchResponse>
- Since:
- 4.3
- Author:
- Dmytro Rud
-
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
ConstructorsConstructorDescriptionHpdQueryProducer(HpdQueryEndpoint<AuditDatasetType> endpoint, JaxWsClientFactory<AuditDatasetType> clientFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected BatchResponsecallService(Object clientObject, BatchRequest batchRequest) Sends the given request body to a Web Service via the given client proxy.handle(Object clientObject, BatchRequest batchRequest) Methods inherited from class org.openehealth.ipf.platform.camel.ihe.ws.AbstractWsProducer
cleanRequestContext, configureClient, enrichRequestContext, enrichResponseMessage, getAlternativeRequestKeys, getEndpoint, getRequestClass, getResponseClass, getWsTransactionConfiguration, processMethods inherited from class org.apache.camel.support.DefaultProducer
createExchange, doStart, doStop, isSingleton, toStringMethods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getInternalLock, 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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
-
HpdQueryProducer
public HpdQueryProducer(HpdQueryEndpoint<AuditDatasetType> endpoint, JaxWsClientFactory<AuditDatasetType> clientFactory)
-
-
Method Details
-
getWrappedHandler
- Specified by:
getWrappedHandlerin interfaceProducerHandler<BatchRequest,BatchResponse> - Returns:
- Handler which is one step nearer to the Camel route.
-
handle
- Specified by:
handlein interfaceProducerHandler<BatchRequest,BatchResponse> - Returns:
- Response to the given request.
- Throws:
Exception
-
callService
protected BatchResponse callService(Object clientObject, BatchRequest batchRequest) throws Exception Description copied from class:AbstractWsProducerSends the given request body to a Web Service via the given client proxy.- Overrides:
callServicein classSimpleWsProducer<AuditDatasetType extends WsAuditDataset,WsTransactionConfiguration<AuditDatasetType extends WsAuditDataset>, BatchRequest, BatchResponse> - Throws:
Exception
-