From 5f78faac90385023533de2cb0bd4f7134cfab432 Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Thu, 2 Sep 2021 16:52:45 +0200 Subject: add extension-point into PVP SOAP-header handler --- .../at/gv/util/client/pvp/rprofile/Pvp18pSoapHandler.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/main/java/at/gv/util/client/pvp/rprofile/Pvp18pSoapHandler.java b/src/main/java/at/gv/util/client/pvp/rprofile/Pvp18pSoapHandler.java index 41c4255..0e32e0b 100644 --- a/src/main/java/at/gv/util/client/pvp/rprofile/Pvp18pSoapHandler.java +++ b/src/main/java/at/gv/util/client/pvp/rprofile/Pvp18pSoapHandler.java @@ -76,6 +76,8 @@ public class Pvp18pSoapHandler implements SOAPHandler { AUTH_PREFIX, AUTH_NS); + dynamicPvpTokenModifierExtension(pvpTokenType); + // serialize pvp token JAXBContext ctx = JAXBContext.newInstance(PvpTokenType.class); ObjectFactory of = new ObjectFactory(); @@ -113,6 +115,17 @@ public class Pvp18pSoapHandler implements SOAPHandler { } + /** + * Extension point to add custom modifications on request level. + * + * @param pvpTokenType Current PVP Token. + */ + protected void dynamicPvpTokenModifierExtension(PvpTokenType pvpTokenType) { + log.trace("Do nothing in empty extension"); + + } + + public Set getHeaders() { return null; } -- cgit v1.2.3