Skip to content

Commit 99951db

Browse files
committed
Deprecate fault-related methods in DomPoxMessage
This commit deprecates methods that are unused in DomPoxMessage. They refer to the FaultAwareWebServiceMessage interface, but that class does not implement it. Closes gh-622
1 parent 8978f7e commit 99951db

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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

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

3434
import org.springframework.util.Assert;
35+
import org.springframework.ws.FaultAwareWebServiceMessage;
3536
import org.springframework.ws.pox.PoxMessage;
3637
import org.springframework.ws.transport.TransportConstants;
3738
import org.springframework.ws.transport.TransportOutputStream;
@@ -84,10 +85,25 @@ public Source getPayloadSource() {
8485
return new DOMSource(this.document);
8586
}
8687

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)
8795
public boolean hasFault() {
8896
return false;
8997
}
9098

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)
91107
public String getFaultReason() {
92108
return null;
93109
}

0 commit comments

Comments
 (0)