public class WebServiceNtlmSender extends SenderWithParametersBase implements HasPhysicalDestination
Modifier and Type | Field and Description |
---|---|
protected org.apache.http.impl.client.DefaultHttpClient |
httpClient |
parameterNamesMustBeUnique, paramList
log
Constructor and Description |
---|
WebServiceNtlmSender() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Stop/close the sender and deallocate resources.
|
void |
configure()
configure() is called once at startup of the framework in the configure method of the owner of this sender. |
String |
getAuthDomain() |
String |
getContentType() |
int |
getMaxConnections() |
String |
getPhysicalDestinationName() |
String |
getProxyHost() |
int |
getProxyPort() |
String |
getSoapAction() |
int |
getTimeout() |
String |
getUrl() |
void |
open()
This method will be called to start the sender.
|
SenderResult |
sendMessage(Message message,
PipeLineSession session)
Send a message to some destination (as configured in the Sender object).
|
void |
setAuthAlias(String string)
alias used to obtain credentials for authentication to host
|
void |
setAuthDomain(String string) |
void |
setContentType(String string)
content-type of the request
|
void |
setMaxConnections(int i)
the maximum number of concurrent connections
|
void |
setPassword(String string)
password used to authenticate with the host
|
void |
setProxyHost(String string) |
void |
setProxyPort(int i) |
void |
setSoapAction(String string)
the soapactionuri to be set in the requestheader
|
void |
setTimeout(int i)
timeout in ms of obtaining a connection/result.
|
void |
setUrl(String string)
url or base of url to be used
|
void |
setUsername(String string)
username used in authentication to host
|
void |
setUserName(String username)
Deprecated.
|
addParameter, checkStringAttributeOrParameter, consumesSessionVariable, getParameterList, getParameterOverriddenAttributeValue, getParameterOverriddenAttributeValue, getParameterValueList
createBean, getLogPrefix, getName, setApplicationContext, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDomain
isSynchronous, sendMessageOrThrow
getName, setName
getApplicationContext, getName
getConfigurationClassLoader
public void configure() throws ConfigurationException
ISender
configure()
is called once at startup of the framework in the configure method of the owner of this sender.
Purpose of this method is to check whether the static configuration of the sender is correct.
As much as possible class-instantiating should take place in the configure()
or open()
method, to improve performance.configure
in interface IConfigurable
configure
in interface ISender
configure
in class SenderWithParametersBase
ConfigurationException
public void open()
ISender
sendMessage()
method.open
in interface ISender
open
in class SenderBase
public void close()
ISender
close
in interface ISender
close
in class SenderBase
public SenderResult sendMessage(Message message, PipeLineSession session) throws SenderException, TimeoutException
ISender
configure()
method is called.
The following table shows the difference between synchronous and a-synchronous senders:
synchronous | a-synchronous | |
---|---|---|
ISender.isSynchronous() returns | true | false |
return value of sendMessage() is | the 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
.
sendMessage
in interface ISender
SenderException
TimeoutException
public String getPhysicalDestinationName()
getPhysicalDestinationName
in interface HasPhysicalDestination
public void setContentType(String string)
public String getContentType()
public String getUrl()
public void setUrl(String string)
public int getTimeout()
public void setTimeout(int i)
public int getMaxConnections()
public void setMaxConnections(int i)
public void setAuthAlias(String string)
public void setUsername(String string)
@Deprecated @ConfigurationWarning(value="Please use attribute username instead") public void setUserName(String username)
public void setPassword(String string)
public String getAuthDomain()
public void setAuthDomain(String string)
public String getProxyHost()
public void setProxyHost(String string)
public int getProxyPort()
public void setProxyPort(int i)
public String getSoapAction()
public void setSoapAction(String string)
Copyright © 2023 Frank!Framework. All rights reserved.