Author: asoldano
Date: 2013-10-17 09:38:50 -0400 (Thu, 17 Oct 2013)
New Revision: 18008
Added:
common/trunk/src/main/java/org/jboss/ws/common/configuration/SOAPConfigDelegateHandler.java
Modified:
common/trunk/src/main/java/org/jboss/ws/common/configuration/ConfigHelper.java
Log:
[JBWS-3720] Adding SOAPConfigDelegateHandler
Modified: common/trunk/src/main/java/org/jboss/ws/common/configuration/ConfigHelper.java
===================================================================
---
common/trunk/src/main/java/org/jboss/ws/common/configuration/ConfigHelper.java 2013-10-17
13:06:04 UTC (rev 18007)
+++
common/trunk/src/main/java/org/jboss/ws/common/configuration/ConfigHelper.java 2013-10-17
13:38:50 UTC (rev 18008)
@@ -36,6 +36,7 @@
import javax.xml.ws.BindingProvider;
import javax.xml.ws.handler.Handler;
import javax.xml.ws.handler.LogicalHandler;
+import javax.xml.ws.handler.soap.SOAPHandler;
import javax.xml.ws.http.HTTPBinding;
import javax.xml.ws.soap.SOAPBinding;
@@ -182,6 +183,10 @@
{
handlers.add(new
LogicalConfigDelegateHandler((LogicalHandler)h, isPre));
}
+ else if (h instanceof SOAPHandler)
+ {
+ handlers.add(new SOAPConfigDelegateHandler((SOAPHandler)h,
isPre));
+ }
else
{
handlers.add(new ConfigDelegateHandler((Handler)h, isPre));
Added:
common/trunk/src/main/java/org/jboss/ws/common/configuration/SOAPConfigDelegateHandler.java
===================================================================
---
common/trunk/src/main/java/org/jboss/ws/common/configuration/SOAPConfigDelegateHandler.java
(rev 0)
+++
common/trunk/src/main/java/org/jboss/ws/common/configuration/SOAPConfigDelegateHandler.java 2013-10-17
13:38:50 UTC (rev 18008)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2012, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.ws.common.configuration;
+
+import java.util.Set;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.handler.soap.SOAPHandler;
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+
+
+/**
+ * JBossWS client / endpoint configuration-contributed SOAP handler
+ *
+ * @author alessio.soldano(a)jboss.com
+ * @since 17-Oct-2013
+ *
+ */
+public class SOAPConfigDelegateHandler<T extends SOAPMessageContext> extends
ConfigDelegateHandler<T> implements SOAPHandler<T>
+{
+ public SOAPConfigDelegateHandler(SOAPHandler<T> delegate, boolean isPre) {
+ super(delegate, isPre);
+ }
+
+ @Override
+ public Set<QName> getHeaders()
+ {
+ return ((SOAPHandler<T>)delegate).getHeaders();
+ }
+}
Property changes on:
common/trunk/src/main/java/org/jboss/ws/common/configuration/SOAPConfigDelegateHandler.java
___________________________________________________________________
Added: svn:keywords
+ Rev Date
Added: svn:eol-style
+ native