public class WebServiceSender extends HttpSender
HttpSender.PostType
HttpSenderBase.HttpMethod
CORRELATION_ID_HEADER, headerParamsSet, MESSAGE_ID_HEADER, parametersToSkipWhenEmptySet, paramList, requestOrBodyParamsSet, staticUri, urlParameter
log
Constructor and Description |
---|
WebServiceSender() |
Modifier and Type | Method and Description |
---|---|
void |
configure()
Configure this component.
|
protected Message |
extractResult(HttpResponseHandler responseHandler,
PipeLineSession session)
Custom implementation to extract the response and format it to a String result.
|
String |
getLogPrefix()
Returns the true name of the class and not
XsltPipe$$EnhancerBySpringCGLIB$$563e6b5d . |
protected org.apache.http.client.methods.HttpRequestBase |
getMethod(URI uri,
Message message,
ParameterValueList parameters,
PipeLineSession session)
Custom implementation to create a
HttpRequest object. |
void |
setEncodingStyle(String encodingStyle)
the encodingstyle to be set in the messageheader
|
void |
setEncodingStyleURI(String encodingStyle)
Deprecated.
|
void |
setNamespaceDefs(String namespaceDefs)
namespace defintions to be added in the soap envelope tag.
|
void |
setServiceNamespace(String serviceNamespace)
the namespace of the message sent.
|
void |
setServiceNamespaceParam(String serviceNamespaceParam)
parameter to obtain the servicenamespace
|
void |
setServiceNamespaceURI(String serviceNamespace)
Deprecated.
|
void |
setServiceNamespaceURIParam(String serviceNamespaceParam)
Deprecated.
|
void |
setSoap(boolean b)
when
true , messages sent are put in a soap envelope and the soap envelope is removed from received messages (soap envelope will not be visible to the pipeline) |
void |
setSoapAction(String soapAction)
the soapactionuri to be set in the requestheader
|
void |
setSoapActionParam(String soapActionParam)
parameter to obtain the soapactionuri
|
void |
setSoapActionURI(String soapAction)
Deprecated.
|
void |
setSoapActionURIParam(String soapActionParam)
Deprecated.
|
void |
setThrowApplicationFaults(boolean b)
controls whether soap faults generated by the application generate an exception, or are treated as 'normal' messages
|
void |
setWssAuthAlias(String string)
alias used to obtain credentials for authentication to web services security
|
void |
setWssPassword(String string)
password used to obtain credentials for authentication to web services security
|
void |
setWssPasswordDigest(boolean b)
when true, the password is sent digested.
|
void |
setWssUserName(String string)
username used to obtain credentials for authentication to web services security
|
elementToFormBodyPart, getMethod, getResponseBody, getResponseBodyAsBase64, handleMultipartResponse, setBase64, setEncodeMessages, setFirstBodyPartName, setInputMessageParam, setMtomContentTransferEncoding, setMtomEnabled, setMultipart, setMultipartResponse, setMultipartXmlSessionKey, setParamsInUrl, setPostType, setStoreResultAsByteArrayInSessionKey, setStoreResultAsStreamInSessionKey, setStreamResultToFileNameSessionKey, setStreamResultToServlet, setTreatInputMessageAsParameters, streamResponseBody, streamResponseBody
addParameter, appendParameters, close, getObjectType, getParameterList, getPhysicalDestinationName, open, sendMessage, setCertificate, setCertificateAuthAlias, setCertificatePassword, setCertificateType, setCharSet, setContentType, setHeadersParams, setMethodType, setParametersToSkipWhenEmpty, setProxyUserName, setResultStatusCodeSessionKey, setStyleSheetName, setUrl, setUrlParam, setUserName, setXhtml, start, validateResponseCode
areCookiesDisabled, buildHttpClient, configureConnectionManager, execute, getSSLConnectionSocketFactory, getURI, isRunning, preAuthenticate, setAllowSelfSignedCertificates, setAuthAlias, setAuthDomain, setAuthenticatedTokenRequest, setClientAlias, setClientId, setClientSecret, setConnectionIdleTimeout, setConnectionTimeToLive, setDisableCookies, setFollowRedirects, setHttpClient, setIgnoreCertificateExpiredException, setIgnoreRedirects, setKeyManagerAlgorithm, setKeystore, setKeystoreAlias, setKeystoreAliasAuthAlias, setKeystoreAliasPassword, setKeystoreAuthAlias, setKeystorePassword, setKeystoreType, setMaxConnections, setMaxExecuteRetries, setPassword, setPrefillProxyAuthCache, setProtocol, setProxyAuthAlias, setProxyHost, setProxyPassword, setProxyPort, setProxyRealm, setProxyUsername, setScope, setStaleChecking, setStaleTimeout, setTimeout, setTokenEndpoint, setTokenExpiry, setTrustManagerAlgorithm, setTruststore, setTruststoreAuthAlias, setTruststorePassword, setTruststoreType, setUsername, setVerifyHostname, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDomain
consumesSessionVariable
isSynchronous, sendMessageOrThrow
getName, setName
getApplicationContext, getName
getConfigurationClassLoader
setApplicationContext
getSharedResource, setSharedResourceRef
getKeyManagerAlgorithm, getKeystore, getKeystoreAlias, getKeystoreAliasAuthAlias, getKeystoreAliasPassword, getKeystoreAuthAlias, getKeystorePassword, getKeystoreType
getTrustManagerAlgorithm, getTruststore, getTruststoreAuthAlias, getTruststorePassword, getTruststoreType, isAllowSelfSignedCertificates, isIgnoreCertificateExpiredException, isVerifyHostname
public String getLogPrefix()
HttpSenderBase
XsltPipe$$EnhancerBySpringCGLIB$$563e6b5d
.
ClassUtils.nameOf(Object)
makes sure the original class will be used.getLogPrefix
in class HttpSenderBase
public void configure() throws ConfigurationException
ConfigurableLifecycle
In the case of a container, this will propagate the start signal to all components that apply.
configure
in interface IConfigurable
configure
in interface ISender
configure
in interface ConfigurableLifecycle
configure
in class HttpSender
ConfigurationException
- in case it was not able to configure the component.protected org.apache.http.client.methods.HttpRequestBase getMethod(URI uri, Message message, ParameterValueList parameters, PipeLineSession session) throws SenderException
HttpSenderBase
HttpRequest
object.getMethod
in class HttpSender
uri
- endpoint to send the message tomessage
- to be sentparameters
- ParameterValueList that contains all the senders parameterssession
- PipeLineSession to retrieve or store data from, or NULL when not setHttpRequest
objectSenderException
protected Message extractResult(HttpResponseHandler responseHandler, PipeLineSession session) throws SenderException, IOException
HttpSenderBase
response
will be read or will be closed
.extractResult
in class HttpSender
responseHandler
- HttpResponseHandler
that contains the response informationsession
- PipeLineSession
which may be nullSenderException
IOException
public void setSoap(boolean b)
true
, messages sent are put in a soap envelope and the soap envelope is removed from received messages (soap envelope will not be visible to the pipeline)@Deprecated @ConfigurationWarning(value="the attribute \'soapActionURI\' has been renamed to \'soapAction\'") public void setSoapActionURI(String soapAction)
@Deprecated @ConfigurationWarning(value="the attribute \'soapActionURIParam\' has been renamed to \'soapActionParam\'") public void setSoapActionURIParam(String soapActionParam)
public void setSoapAction(String soapAction)
public void setSoapActionParam(String soapActionParam)
@Deprecated @ConfigurationWarning(value="the attribute \'encodingStyleURI\' has been renamed to \'encodingStyle\'") public void setEncodingStyleURI(String encodingStyle)
public void setEncodingStyle(String encodingStyle)
public void setThrowApplicationFaults(boolean b)
@Deprecated @ConfigurationWarning(value="the attribute \'serviceNamespaceURI\' has been renamed to \'serviceNamespace\'") public void setServiceNamespaceURI(String serviceNamespace)
public void setServiceNamespace(String serviceNamespace)
@Deprecated @ConfigurationWarning(value="the attribute \'serviceNamespaceURIParam\' has been renamed to \'serviceNamespaceParam\'") public void setServiceNamespaceURIParam(String serviceNamespaceParam)
public void setServiceNamespaceParam(String serviceNamespaceParam)
public void setNamespaceDefs(String namespaceDefs)
prefix=namespaceuri
-definitionspublic void setWssUserName(String string)
public void setWssPassword(String string)
public void setWssAuthAlias(String string)
public void setWssPasswordDigest(boolean b)
Copyright © 2023 Frank!Framework. All rights reserved.