Class JaxWsClientFactory<AuditDatasetType extends WsAuditDataset>

    • Constructor Detail

      • JaxWsClientFactory

        public JaxWsClientFactory​(WsTransactionConfiguration<AuditDatasetType> wsTransactionConfiguration,
                                  String serviceUrl,
                                  AuditStrategy<AuditDatasetType> auditStrategy,
                                  org.openehealth.ipf.commons.audit.AuditContext auditContext,
                                  org.apache.cxf.interceptor.InterceptorProvider customInterceptors,
                                  List<org.apache.cxf.feature.AbstractFeature> features,
                                  Map<String,​Object> properties,
                                  AsynchronyCorrelator<AuditDatasetType> correlator,
                                  WsSecurityInformation securityInformation,
                                  org.apache.cxf.transports.http.configuration.HTTPClientPolicy httpClientPolicy)
        Constructs the factory.
        Parameters:
        wsTransactionConfiguration - the info about the Web Service.
        serviceUrl - the URL of the Web Service.
        auditStrategy - client-side ATNA audit strategy.
        customInterceptors - user-defined custom CXF interceptors.
        correlator - optional asynchrony correlator.
    • Method Detail

      • getClient

        public Object getClient()
        Returns a client stub for the web-service.
        Returns:
        the client stub
      • configureInterceptors

        protected void configureInterceptors​(org.apache.cxf.endpoint.Client client)
        Configures SOAP interceptors for the given client.
      • configureProperties

        protected void configureProperties​(org.apache.cxf.endpoint.Client client)
      • installPayloadInterceptors

        protected static void installPayloadInterceptors​(org.apache.cxf.endpoint.Client client)
        Helper method for installing of payload-collecting SOAP interceptors for the given Client.
      • restoreClient

        public void restoreClient​(Object client)
        Returns a client stub (previously gained via getClient()) to the pool. This method MUST be called as soon as the use of the port stub is finished.
        Parameters:
        client - client stub, null values are safe.