Package org.springframework.ws.transport
Interface HeadersAwareSenderWebServiceConnection
- All Superinterfaces:
AutoCloseable
,WebServiceConnection
- All Known Implementing Classes:
AbstractHttpSenderConnection
,AbstractSenderConnection
,ClientHttpRequestConnection
,HttpComponents5Connection
,HttpComponentsConnection
,HttpUrlConnection
,JdkHttpClientConnection
,JmsSenderConnection
,MailSenderConnection
,XmppSenderConnection
Sub-interface of
WebServiceConnection
that is aware of response headers and can
define request headers.- Since:
- 2.3
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRequestHeader
(String name, String value) Adds a request header with the given name and value.Return an iteration over all the header names the response contains.getResponseHeaders
(String name) Return an iteration over all the string values of the specified response header.Methods inherited from interface org.springframework.ws.transport.WebServiceConnection
close, getErrorMessage, getUri, hasError, receive, send
-
Method Details
-
getResponseHeaderNames
Return an iteration over all the header names the response contains. Returns an emptyIterator
if there are no headers.- Throws:
IOException
-
getResponseHeaders
Return an iteration over all the string values of the specified response header. Return an emptyIterator
if there is no header of the specified name.- Throws:
IOException
-
addRequestHeader
Adds a request header with the given name and value. This method can be called multiple times, to allow for headers with multiple values.- Parameters:
name
- the name of the headervalue
- the value of the header- Throws:
IOException
-