Package org.springframework.ws.transport
Interface HeadersAwareSenderWebServiceConnection
- All Known Implementing Classes:
AbstractHttpSenderConnection
,AbstractSenderConnection
,ClientHttpRequestConnection
,CommonsHttpConnection
,HttpComponents5Connection
,HttpComponentsConnection
,HttpUrlConnection
,JdkHttpClientConnection
,JmsSenderConnection
,MailSenderConnection
,XmppSenderConnection
public interface HeadersAwareSenderWebServiceConnection
- Since:
- 2.3
- Author:
- Greg Turnquist
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRequestHeader
(String name, String value) Adds a request header with the given name and value.Returns an iteration over all the header names this request contains.getResponseHeaders
(String name) Returns an iteration over all the string values of the specified header.
-
Method Details
-
getResponseHeaderNames
Returns an iteration over all the header names this request contains. Returns an emptyIterator
if there are no headers.- Throws:
IOException
-
getResponseHeaders
Returns an iteration over all the string values of the specified header. Returns an emptyIterator
if there are no headers 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
-