Skip to content

Commit 8336f3d

Browse files
committed
Update HeadersAware*WebServiceConnection to be a WebServiceConnection
Closes gh-1510
1 parent 1cc0807 commit 8336f3d

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

spring-ws-core/src/main/java/org/springframework/ws/transport/HeadersAwareReceiverWebServiceConnection.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,23 @@
2020
import java.util.Iterator;
2121

2222
/**
23-
* Interface to define access to header information for certain
24-
* {@link WebServiceConnection} implementations.
23+
* Sub-interface of {@link WebServiceConnection} that is aware of request headers and can
24+
* define response headers.
2525
*
2626
* @author Greg Turnquist
2727
* @since 2.3
2828
*/
29-
public interface HeadersAwareReceiverWebServiceConnection {
29+
public interface HeadersAwareReceiverWebServiceConnection extends WebServiceConnection {
3030

3131
/**
32-
* Returns an iteration over all the header names this request contains. Returns an
32+
* Return an iteration over all the header names the request contains. Returns an
3333
* empty {@code Iterator} if there are no headers.
3434
*/
3535
Iterator<String> getRequestHeaderNames() throws IOException;
3636

3737
/**
38-
* Returns an iteration over all the string values of the specified header. Returns an
39-
* empty {@code Iterator} if there are no headers of the specified name.
38+
* Return an iteration over all the string values of the specified request header.
39+
* Return an empty {@code Iterator} if there is no header of the specified name.
4040
*/
4141
Iterator<String> getRequestHeaders(String name) throws IOException;
4242

spring-ws-core/src/main/java/org/springframework/ws/transport/HeadersAwareSenderWebServiceConnection.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,23 @@
2020
import java.util.Iterator;
2121

2222
/**
23-
* Specialization of {@link WebServiceConnection} that is able to manage headers.
23+
* Sub-interface of {@link WebServiceConnection} that is aware of response headers and can
24+
* define request headers.
2425
*
2526
* @author Greg Turnquist
2627
* @since 2.3
2728
*/
28-
public interface HeadersAwareSenderWebServiceConnection {
29+
public interface HeadersAwareSenderWebServiceConnection extends WebServiceConnection {
2930

3031
/**
31-
* Returns an iteration over all the header names this request contains. Returns an
32+
* Return an iteration over all the header names the response contains. Returns an
3233
* empty {@code Iterator} if there are no headers.
3334
*/
3435
Iterator<String> getResponseHeaderNames() throws IOException;
3536

3637
/**
37-
* Returns an iteration over all the string values of the specified header. Returns an
38-
* empty {@code Iterator} if there are no headers of the specified name.
38+
* Return an iteration over all the string values of the specified response header.
39+
* Return an empty {@code Iterator} if there is no header of the specified name.
3940
*/
4041
Iterator<String> getResponseHeaders(String name) throws IOException;
4142

0 commit comments

Comments
 (0)