Package org.springframework.ws.transport
Interface HeadersAwareReceiverWebServiceConnection
- All Superinterfaces:
AutoCloseable
,WebServiceConnection
- All Known Implementing Classes:
AbstractReceiverConnection
,HttpExchangeConnection
,HttpServletConnection
,JmsReceiverConnection
,MailReceiverConnection
,XmppReceiverConnection
Sub-interface of
WebServiceConnection
that is aware of request headers and can
define response headers.- Since:
- 2.3
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addResponseHeader
(String name, String value) Adds a response header with the given name and value.Return an iteration over all the header names the request contains.getRequestHeaders
(String name) Return an iteration over all the string values of the specified request header.Methods inherited from interface org.springframework.ws.transport.WebServiceConnection
close, getErrorMessage, getUri, hasError, receive, send
-
Method Details
-
getRequestHeaderNames
Return an iteration over all the header names the request contains. Returns an emptyIterator
if there are no headers.- Throws:
IOException
-
getRequestHeaders
Return an iteration over all the string values of the specified request header. Return an emptyIterator
if there is no header of the specified name.- Throws:
IOException
-
addResponseHeader
Adds a response 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
-