Package org.frankframework.http
Class WebServiceNtlmSender
java.lang.Object
org.frankframework.senders.AbstractSender
org.frankframework.senders.AbstractSenderWithParameters
org.frankframework.http.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 Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.http.impl.client.DefaultHttpClient
Deprecated, for removal: This API element is subject to removal in a future version.Fields inherited from class org.frankframework.senders.AbstractSenderWithParameters
parameterNamesMustBeUnique, paramList
Fields inherited from class org.frankframework.senders.AbstractSender
log
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated, for removal: This API element is subject to removal in a future version.Configure this component.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.int
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.int
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.int
Deprecated, for removal: This API element is subject to removal in a future version.getUrl()
Deprecated, for removal: This API element is subject to removal in a future version.sendMessage
(Message message, PipeLineSession session) Deprecated, for removal: This API element is subject to removal in a future version.Send a message to some destination (as configured in the Sender object).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 hostvoid
setAuthDomain
(String string) Deprecated, for removal: This API element is subject to removal in a future version.void
setContentType
(String string) Deprecated, for removal: This API element is subject to removal in a future version.content-type of the requestvoid
setMaxConnections
(int i) Deprecated, for removal: This API element is subject to removal in a future version.the maximum number of concurrent connectionsvoid
setPassword
(String string) Deprecated, for removal: This API element is subject to removal in a future version.password used to authenticate with the hostvoid
setProxyHost
(String string) Deprecated, for removal: This API element is subject to removal in a future version.void
setProxyPort
(int i) Deprecated, for removal: This API element is subject to removal in a future version.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 requestheadervoid
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 timeoutvoid
Deprecated, for removal: This API element is subject to removal in a future version.url or base of url to be usedvoid
setUsername
(String string) Deprecated, for removal: This API element is subject to removal in a future version.username used in authentication to hostvoid
start()
Deprecated, for removal: This API element is subject to removal in a future version.This method will be called to start the sender.void
stop()
Deprecated, for removal: This API element is subject to removal in a future version.Stop/close the sender and deallocate resources.Methods inherited from class org.frankframework.senders.AbstractSenderWithParameters
addParameter, checkStringAttributeOrParameter, consumesSessionVariable, getParameterList, getParameterOverriddenAttributeValue, getParameterOverriddenAttributeValue, getParameterValueList
Methods inherited from class org.frankframework.senders.AbstractSender
createBean, getLogPrefix, getName, isRunning, setApplicationContext, setName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContext
Methods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoader
Methods inherited from interface org.frankframework.core.HasPhysicalDestination
getDomain
Methods inherited from interface org.frankframework.core.ISender
isSynchronous, sendMessageOrThrow
-
Field Details
-
httpClient
protected org.apache.http.impl.client.DefaultHttpClient httpClientDeprecated, 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
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 thisIConfigurable
. 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 theconfigure()
, to improve performance.In the case of a container, this will propagate the configure signal to all components that apply.
- Specified by:
configure
in interfaceIConfigurable
- Overrides:
configure
in classAbstractSenderWithParameters
- 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 thesendMessage()
method.- Specified by:
start
in interfaceISender
- Specified by:
start
in interfaceorg.springframework.context.Lifecycle
- Overrides:
start
in classAbstractSender
-
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 interfaceISender
- Specified by:
stop
in interfaceorg.springframework.context.Lifecycle
- Overrides:
stop
in classAbstractSender
-
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 theconfigure()
method is called.The following table shows the difference between synchronous and a-synchronous senders:
synchronous a-synchronous ISender.isSynchronous()
returnstrue
false
return value of sendMessage()
isthe reply-message the messageId of the message sent the correlationID specified with sendMessage()
may be ignored is sent with the message a {link TimeOutException} may be thrown if a timeout occurs waiting for a reply should 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 interfaceISender
- Throws:
SenderException
TimeoutException
-
getPhysicalDestinationName
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getPhysicalDestinationName
in interfaceHasPhysicalDestination
-
setContentType
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
Deprecated, for removal: This API element is subject to removal in a future version. -
getUrl
Deprecated, for removal: This API element is subject to removal in a future version. -
setUrl
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
Deprecated, for removal: This API element is subject to removal in a future version.alias used to obtain credentials for authentication to host -
setUsername
Deprecated, for removal: This API element is subject to removal in a future version.username used in authentication to host -
setPassword
Deprecated, for removal: This API element is subject to removal in a future version.password used to authenticate with the host- Default value
-
getAuthDomain
Deprecated, for removal: This API element is subject to removal in a future version. -
setAuthDomain
Deprecated, for removal: This API element is subject to removal in a future version. -
getProxyHost
Deprecated, for removal: This API element is subject to removal in a future version. -
setProxyHost
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
Deprecated, for removal: This API element is subject to removal in a future version. -
setSoapAction
Deprecated, for removal: This API element is subject to removal in a future version.the soapactionuri to be set in the requestheader
-