Class AbstractWsEndpoint<AuditDatasetType extends WsAuditDataset,​ConfigType extends WsTransactionConfiguration<AuditDatasetType>>

    • Field Detail

      • WSA_REPLYTO_HEADER_NAME

        public static final String WSA_REPLYTO_HEADER_NAME
        Name of incoming Camel header where the user should store the URL of asynchronous response endpoint (WS-Addressing header "ReplyTo").
      • CORRELATION_KEY_HEADER_NAME

        public static final String CORRELATION_KEY_HEADER_NAME
        Name of Camel message header where the user should store the optional correlation key.
      • INCOMING_HTTP_HEADERS

        public static final String INCOMING_HTTP_HEADERS
        Name of Camel message header where incoming HTTP headers will be stored as a Map<String, String>.
      • OUTGOING_HTTP_HEADERS

        public static final String OUTGOING_HTTP_HEADERS
        Name of Camel message header from where additional user-defined HTTP headers will be taken as a Map<String, String>.
      • INCOMING_SOAP_HEADERS

        public static final String INCOMING_SOAP_HEADERS
        Name of Camel message header where incoming SOAP headers will be stored as a Map<QName, Header>.
      • OUTGOING_SOAP_HEADERS

        public static final String OUTGOING_SOAP_HEADERS
        Name of Camel message header from where additional user-defined HTTP headers will be taken as a List<Header> or Map<QName, Header>.
    • Method Detail

      • getServiceInstance

        public AbstractWebService getServiceInstance()
        Constructs and returns a transaction-specific service class instance for the given endpoint.
        Returns:
        service class instance for the given endpoint.
      • isSingleton

        @ManagedAttribute
        public boolean isSingleton()
        Specified by:
        isSingleton in interface org.apache.camel.IsSingleton
        Overrides:
        isSingleton in class org.apache.camel.support.DefaultEndpoint
      • getServiceUrl

        public String getServiceUrl()
        Returns the URL of the service.

        The URL is derived from the endpoint URI defined in the constructor. If the URI does not represent a producer, this method throws an exception.

        Returns:
        the service URL.
      • getServiceAddress

        @ManagedAttribute(description="Service Address")
        public String getServiceAddress()
        Returns the address of the service.

        The address is derived from the endpoint URI defined in the constructor. If the URI does not represent a consumer, this method throws an exception.

        Returns:
        the service address.
      • setAuditContext

        public void setAuditContext​(AuditContext auditContext)
      • isSecure

        @ManagedAttribute(description="Security Enabled")
        public boolean isSecure()
        Returns:
        true if https should be used instead of http. Defaults to false.
      • setSecure

        public void setSecure​(boolean secure)
        Parameters:
        secure - true if https should be used instead of http.
      • getUsername

        public String getUsername()
      • setUsername

        @ManagedAttribute(description="Basic Authentication Username")
        public void setUsername​(String username)
      • getPassword

        @ManagedAttribute(description="Basic Authentication Password")
        public String getPassword()
      • setPassword

        public void setPassword​(String password)
      • getSslContextParameters

        public org.apache.camel.support.jsse.SSLContextParameters getSslContextParameters()
      • setSslContextParameters

        public void setSslContextParameters​(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters)
      • setHostnameVerifier

        public void setHostnameVerifier​(HostnameVerifier hostnameVerifier)
      • getCustomInterceptors

        public InterceptorProvider getCustomInterceptors()
        Returns custom interceptors configured for this endpoint.
      • getHomeCommunityId

        @ManagedAttribute(description="HomeCommunityId")
        public String getHomeCommunityId()
        Returns:
        homeCommunityId of this endpoint.
      • setHomeCommunityId

        public void setHomeCommunityId​(String homeCommunityId)
        Configures homeCommunityId for this endpoint.
        Parameters:
        homeCommunityId - homeCommunityId in format "urn:oid:1.2.3.4.5".
      • setHomeCommunityId

        public void setHomeCommunityId​(URN urn)
        Configures homeCommunityId for this endpoint.
        Parameters:
        urn - homeCommunityId in format "urn:oid:1.2.3.4.5".
      • getRejectionHandlingStrategy

        public WsRejectionHandlingStrategy getRejectionHandlingStrategy()
        Returns:
        rejection handling strategy, if any configured.
      • setRejectionHandlingStrategy

        public void setRejectionHandlingStrategy​(WsRejectionHandlingStrategy rejectionHandlingStrategy)
        Parameters:
        rejectionHandlingStrategy - a rejection handling strategy instance.
      • getFeatures

        public List<AbstractFeature> getFeatures()
        Returns:
        CXF features configured for this endpoint.
      • getSchemaLocations

        public List<String> getSchemaLocations()
        Returns:
        CXF schema locations configured for this endpoint.
      • getProperties

        public Map<String,​Object> getProperties()
        Returns:
        CXF schema locations configured for this endpoint.
      • createConsumer

        public org.apache.camel.Consumer createConsumer​(org.apache.camel.Processor processor)
        Specified by:
        createConsumer in interface org.apache.camel.Endpoint
      • createProducer

        public org.apache.camel.Producer createProducer()
        Specified by:
        createProducer in interface org.apache.camel.Endpoint
      • isAddressing

        @ManagedAttribute(description="Addressing Enabled")
        public boolean isAddressing()
        Returns:
        true if WS-Addressing enabled.
      • isMtom

        @ManagedAttribute(description="Mtom Enabled")
        public boolean isMtom()
        Returns:
        true if MTOM enabled.
      • isSwaOutSupport

        @ManagedAttribute(description="SOAP With Attachments Output Enabled")
        public boolean isSwaOutSupport()
        Returns:
        true if SOAP With Attachments Output enabled.