Class WebServiceNtlmSender

All Implemented Interfaces:
FrankElement, HasApplicationContext, HasName, HasPhysicalDestination, IConfigurable, IScopeProvider, ISender, ISenderWithParameters, IWithParameters, NameAware, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle

@Deprecated(forRemoval=true, since="8.0") @ConfigurationWarning("NTLM authentication is unsecure and should be avoided.") public class WebServiceNtlmSender extends AbstractSenderWithParameters implements HasPhysicalDestination
Deprecated, for removal: This API element is subject to removal in a future version.
Sender that sends a message via a WebService based on NTLM authentication.
Author:
Peter Leeuwenburgh
  • Field Details

    • httpClient

      protected org.apache.http.impl.client.DefaultHttpClient httpClient
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • WebServiceNtlmSender

      public WebServiceNtlmSender()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • configure

      public void configure() throws ConfigurationException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: IConfigurable
      Configure this component.

      configure() is called once at startup of the framework in the configure method of the owner of this IConfigurable. Purpose of this method is to check whether the static configuration of the object is correct. As much as possible class-instantiating should take place in the configure(), to improve performance.

      In the case of a container, this will propagate the configure signal to all components that apply.

      Specified by:
      configure in interface IConfigurable
      Overrides:
      configure in class AbstractSenderWithParameters
      Throws:
      ConfigurationException - in case it was not able to configure the component.
    • start

      public void start()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ISender
      This method will be called to start the sender. After this method is called the sendMessage method may be called. Purpose of this method is to reduce creating connections to databases etc. in the sendMessage() method.
      Specified by:
      start in interface ISender
      Specified by:
      start in interface org.springframework.context.Lifecycle
      Overrides:
      start in class AbstractSender
    • stop

      public void stop()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ISender
      Stop/close the sender and deallocate resources.
      Specified by:
      stop in interface ISender
      Specified by:
      stop in interface org.springframework.context.Lifecycle
      Overrides:
      stop in class AbstractSender
    • sendMessage

      @Nonnull public SenderResult sendMessage(@Nonnull Message message, @Nonnull PipeLineSession session) throws SenderException, TimeoutException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ISender
      Send a message to some destination (as configured in the Sender object). This method may only be called after the configure() method is called.

      The following table shows the difference between synchronous and a-synchronous senders:

       synchronousa-synchronous
      ISender.isSynchronous() returnstruefalse
      return value of sendMessage() isthe reply-messagethe messageId of the message sent
      the correlationID specified with sendMessage()may be ignoredis sent with the message
      a {link TimeOutException}may be thrown if a timeout occurs waiting for a replyshould not be expected

      Multiple objects may try to call this method at the same time, from different threads. Implementations of this method should therefore be thread-safe, or synchronized.

      Specified by:
      sendMessage in interface ISender
      Throws:
      SenderException
      TimeoutException
    • getPhysicalDestinationName

      public String getPhysicalDestinationName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getPhysicalDestinationName in interface HasPhysicalDestination
    • setContentType

      public void setContentType(String string)
      Deprecated, for removal: This API element is subject to removal in a future version.
      content-type of the request
      Default value
      text/html; charset=utf-8
    • getContentType

      public String getContentType()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getUrl

      public String getUrl()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setUrl

      public void setUrl(String string)
      Deprecated, for removal: This API element is subject to removal in a future version.
      url or base of url to be used
    • getTimeout

      public int getTimeout()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setTimeout

      public void setTimeout(int i)
      Deprecated, for removal: This API element is subject to removal in a future version.
      timeout in ms of obtaining a connection/result. 0 means no timeout
      Default value
      10000
    • getMaxConnections

      public int getMaxConnections()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setMaxConnections

      public void setMaxConnections(int i)
      Deprecated, for removal: This API element is subject to removal in a future version.
      the maximum number of concurrent connections
      Default value
      10
    • setAuthAlias

      public void setAuthAlias(String string)
      Deprecated, for removal: This API element is subject to removal in a future version.
      alias used to obtain credentials for authentication to host
    • setUsername

      public void setUsername(String string)
      Deprecated, for removal: This API element is subject to removal in a future version.
      username used in authentication to host
    • setPassword

      public void setPassword(String string)
      Deprecated, for removal: This API element is subject to removal in a future version.
      password used to authenticate with the host
      Default value
    • getAuthDomain

      public String getAuthDomain()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setAuthDomain

      public void setAuthDomain(String string)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getProxyHost

      public String getProxyHost()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setProxyHost

      public void setProxyHost(String string)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Default value
    • getProxyPort

      public int getProxyPort()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setProxyPort

      public void setProxyPort(int i)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Default value
      80
    • getSoapAction

      public String getSoapAction()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setSoapAction

      public void setSoapAction(String string)
      Deprecated, for removal: This API element is subject to removal in a future version.
      the soapactionuri to be set in the requestheader