Skip to content

Commit 7961ac0

Browse files
committed
Remove deprecated code
Closes gh-1560
1 parent abfc657 commit 7961ac0

File tree

18 files changed

+0
-933
lines changed

18 files changed

+0
-933
lines changed

spring-ws-core/src/main/java/org/springframework/ws/config/annotation/DelegatingWsConfiguration.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,6 @@ public class DelegatingWsConfiguration extends WsConfigurationSupport {
4242

4343
private WsConfigurers configurers = new WsConfigurers(Collections.emptyList());
4444

45-
@Deprecated(since = "4.0.12", forRemoval = true)
46-
public void setConfigurers(List<WsConfigurer> configurers) {
47-
if (configurers != null && !configurers.isEmpty()) {
48-
this.configurers = new WsConfigurers(configurers);
49-
}
50-
}
51-
5245
@Autowired
5346
public void setConfigurers(ObjectProvider<WsConfigurer> configurers) {
5447
this.configurers = new WsConfigurers(configurers);

spring-ws-core/src/main/java/org/springframework/ws/config/annotation/WsConfigurerAdapter.java

Lines changed: 0 additions & 64 deletions
This file was deleted.

spring-ws-core/src/main/java/org/springframework/ws/config/annotation/WsConfigurerComposite.java

Lines changed: 0 additions & 66 deletions
This file was deleted.

spring-ws-core/src/main/java/org/springframework/ws/pox/dom/DomPoxMessage.java

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import org.w3c.dom.NodeList;
3333

3434
import org.springframework.util.Assert;
35-
import org.springframework.ws.FaultAwareWebServiceMessage;
3635
import org.springframework.ws.pox.PoxMessage;
3736
import org.springframework.ws.transport.TransportConstants;
3837
import org.springframework.ws.transport.TransportOutputStream;
@@ -85,29 +84,6 @@ public Source getPayloadSource() {
8584
return new DOMSource(this.document);
8685
}
8786

88-
/**
89-
* Does this message have a fault?
90-
* @return {@code true} if the message has a fault
91-
* @deprecated as of 4.0.12 with no replacement as this class does not implement
92-
* {@link FaultAwareWebServiceMessage}
93-
*/
94-
@Deprecated(since = "4.0.12", forRemoval = true)
95-
public boolean hasFault() {
96-
return false;
97-
}
98-
99-
/**
100-
* Returns the fault reason message.
101-
* @return the fault reason message, if any; returns {@code null} when no fault is
102-
* present
103-
* @deprecated as of 4.0.12 with no replacement as this class does not implement
104-
* {@link FaultAwareWebServiceMessage}
105-
*/
106-
@Deprecated(since = "4.0.12", forRemoval = true)
107-
public String getFaultReason() {
108-
return null;
109-
}
110-
11187
public String toString() {
11288
StringBuilder builder = new StringBuilder("DomPoxMessage ");
11389
Element root = this.document.getDocumentElement();

spring-ws-core/src/main/java/org/springframework/ws/server/endpoint/adapter/DefaultMethodEndpointAdapter.java

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,8 @@ public class DefaultMethodEndpointAdapter extends AbstractMethodEndpointAdapter
6868

6969
private List<MethodArgumentResolver> methodArgumentResolvers;
7070

71-
private List<MethodArgumentResolver> customMethodArgumentResolvers;
72-
7371
private List<MethodReturnValueHandler> methodReturnValueHandlers;
7472

75-
private List<MethodReturnValueHandler> customMethodReturnValueHandlers;
76-
7773
private ClassLoader classLoader;
7874

7975
/**
@@ -100,27 +96,6 @@ public void setMethodArgumentResolvers(List<MethodArgumentResolver> methodArgume
10096
this.methodArgumentResolvers = methodArgumentResolvers;
10197
}
10298

103-
/**
104-
* Returns the custom argument resolvers.
105-
* @deprecated as of 4.1.0 with no replacement
106-
*/
107-
@Deprecated(since = "4.1.0", forRemoval = true)
108-
public List<MethodArgumentResolver> getCustomMethodArgumentResolvers() {
109-
return this.customMethodArgumentResolvers;
110-
}
111-
112-
/**
113-
* Sets the custom handlers for method arguments. Custom handlers are ordered after
114-
* built-in ones. To override the built-in support for return value handling use
115-
* {@link #setMethodArgumentResolvers(List)}.
116-
* @deprecated as of 4.1.0 in favor of setting a single list
117-
* @see #withDefaults()
118-
*/
119-
@Deprecated(since = "4.1.0", forRemoval = true)
120-
public void setCustomMethodArgumentResolvers(List<MethodArgumentResolver> customMethodArgumentResolvers) {
121-
this.customMethodArgumentResolvers = customMethodArgumentResolvers;
122-
}
123-
12499
/**
125100
* Returns the list of {@code MethodReturnValueHandler}s to use.
126101
*/
@@ -135,27 +110,6 @@ public void setMethodReturnValueHandlers(List<MethodReturnValueHandler> methodRe
135110
this.methodReturnValueHandlers = methodReturnValueHandlers;
136111
}
137112

138-
/**
139-
* Returns the custom return value handlers.
140-
* @deprecated as of 4.1.0 with no replacement
141-
*/
142-
@Deprecated(since = "4.1.0", forRemoval = true)
143-
public List<MethodReturnValueHandler> getCustomMethodReturnValueHandlers() {
144-
return this.customMethodReturnValueHandlers;
145-
}
146-
147-
/**
148-
* Sets the handlers for custom return value types. Custom handlers are ordered after
149-
* built-in ones. To override the built-in support for return value handling use
150-
* {@link #setMethodReturnValueHandlers(List)}.
151-
* @deprecated as of 4.1.0 in favor of setting a single list
152-
* @see #withDefaults()
153-
*/
154-
@Deprecated(since = "4.1.0", forRemoval = true)
155-
public void setCustomMethodReturnValueHandlers(List<MethodReturnValueHandler> customMethodReturnValueHandlers) {
156-
this.customMethodReturnValueHandlers = customMethodReturnValueHandlers;
157-
}
158-
159113
private ClassLoader getClassLoader() {
160114
return (this.classLoader != null) ? this.classLoader : DefaultMethodEndpointAdapter.class.getClassLoader();
161115
}
@@ -204,9 +158,6 @@ private void initMethodArgumentResolvers() {
204158
if (this.logger.isDebugEnabled()) {
205159
this.logger.debug("No MethodArgumentResolvers set, using defaults: " + methodArgumentResolvers);
206160
}
207-
if (getCustomMethodArgumentResolvers() != null) {
208-
methodArgumentResolvers.addAll(getCustomMethodArgumentResolvers());
209-
}
210161
setMethodArgumentResolvers(methodArgumentResolvers);
211162
}
212163
}
@@ -248,9 +199,6 @@ private void initMethodReturnValueHandlers() {
248199
if (this.logger.isDebugEnabled()) {
249200
this.logger.debug("No MethodReturnValueHandlers set, using defaults: " + methodReturnValueHandlers);
250201
}
251-
if (getCustomMethodReturnValueHandlers() != null) {
252-
methodReturnValueHandlers.addAll(getCustomMethodReturnValueHandlers());
253-
}
254202
setMethodReturnValueHandlers(methodReturnValueHandlers);
255203
}
256204
}

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

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -109,18 +109,6 @@ public void addClientBuilderCustomizer(HttpClientBuilderCustomizer clientBuilder
109109
this.clientBuilderCustomizers.add(clientBuilderCustomizer);
110110
}
111111

112-
/**
113-
* Add a {@link HttpClientBuilderCustomizer} to invoke when creating an
114-
* {@link CloseableHttpClient} managed by this factory.
115-
* @param clientBuilderCustomizer the customizer to invoke
116-
* @deprecated as of 4.1.0 in favor of
117-
* {@link #addClientBuilderCustomizer(HttpClientBuilderCustomizer)}l
118-
*/
119-
@Deprecated(since = "4.1.0", forRemoval = true)
120-
public void setClientBuilderCustomizer(HttpClientBuilderCustomizer clientBuilderCustomizer) {
121-
addClientBuilderCustomizer(clientBuilderCustomizer);
122-
}
123-
124112
/**
125113
* Add a {@link PoolingHttpClientConnectionManagerBuilderCustomizer} to invoke when
126114
* creating an {@link CloseableHttpClient} managed by this factory.
@@ -131,19 +119,6 @@ public void addConnectionManagerBuilderCustomizer(
131119
this.connectionManagerBuilderCustomizers.add(connectionManagerBuilderCustomizer);
132120
}
133121

134-
/**
135-
* Add a {@link PoolingHttpClientConnectionManagerBuilderCustomizer} to invoke when
136-
* creating an {@link CloseableHttpClient} managed by this factory.
137-
* @param connectionManagerBuilderCustomizer the customizer to invoke
138-
* @deprecated as of 4.1.0 in favor of
139-
* {@link #addConnectionManagerBuilderCustomizer(PoolingHttpClientConnectionManagerBuilderCustomizer)}
140-
*/
141-
@Deprecated(since = "4.1.0", forRemoval = true)
142-
public void setConnectionManagerBuilderCustomizer(
143-
PoolingHttpClientConnectionManagerBuilderCustomizer connectionManagerBuilderCustomizer) {
144-
addConnectionManagerBuilderCustomizer(connectionManagerBuilderCustomizer);
145-
}
146-
147122
/**
148123
* Sets the credentials to be used. If not set, no authentication is done.
149124
* @see org.apache.hc.client5.http.auth.UsernamePasswordCredentials

0 commit comments

Comments
 (0)