Author: jim.ma
Date: 2015-04-08 06:17:38 -0400 (Wed, 08 Apr 2015)
New Revision: 19625
Added:
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/util/JBossWSSchemaValidationFeature.java
Modified:
stack/cxf/branches/management/modules/client/src/main/java/org/jboss/wsf/stack/cxf/Loggers.java
stack/cxf/branches/management/modules/client/src/main/java/org/jboss/wsf/stack/cxf/Messages.java
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/AbstractManagementInterceptor.java
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/AbstractMangementInInterceptor.java
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/EndpointConfigsGetOutIntercetpor.java
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/EndpointConfigsOutIntercetpor.java
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/EndpointFeaturePutInterceptor.java
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/EndpointMetricsGetInterceptor.java
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/EndpointMetricsGetOutInterceptor.java
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/EndpointRecordGetOutInterceptor.java
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/util/RemovableFeature.java
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/util/RemovableGZIPFeature.java
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/util/RemovableLoggingFeature.java
Log:
[JBWS-3897]:Properly log and return error message in endpoint runtime management
interceptors;[JBWS-3898]:Add schemaValidation feature
Modified:
stack/cxf/branches/management/modules/client/src/main/java/org/jboss/wsf/stack/cxf/Loggers.java
===================================================================
---
stack/cxf/branches/management/modules/client/src/main/java/org/jboss/wsf/stack/cxf/Loggers.java 2015-04-07
08:47:00 UTC (rev 19624)
+++
stack/cxf/branches/management/modules/client/src/main/java/org/jboss/wsf/stack/cxf/Loggers.java 2015-04-08
10:17:38 UTC (rev 19625)
@@ -52,6 +52,7 @@
Loggers SECURITY_LOGGER = org.jboss.logging.Logger.getMessageLogger(Loggers.class,
"org.jboss.ws.cxf.security");
Loggers METADATA_LOGGER = org.jboss.logging.Logger.getMessageLogger(Loggers.class,
"org.jboss.ws.cxf.metadata");
Loggers DEPLOYMENT_LOGGER = org.jboss.logging.Logger.getMessageLogger(Loggers.class,
"org.jboss.ws.cxf.deployment");
+ Loggers INTERCEPTOR_LOGGER = org.jboss.logging.Logger.getMessageLogger(Loggers.class,
"org.jboss.wsf.stack.cxf.interceptor");
@LogMessage(level = INFO)
@Message(id = 24015, value = "Cannot use the bus associated to the current
deployment for starting a new endpoint, creating a new bus...")
Modified:
stack/cxf/branches/management/modules/client/src/main/java/org/jboss/wsf/stack/cxf/Messages.java
===================================================================
---
stack/cxf/branches/management/modules/client/src/main/java/org/jboss/wsf/stack/cxf/Messages.java 2015-04-07
08:47:00 UTC (rev 19624)
+++
stack/cxf/branches/management/modules/client/src/main/java/org/jboss/wsf/stack/cxf/Messages.java 2015-04-08
10:17:38 UTC (rev 19625)
@@ -21,6 +21,8 @@
*/
package org.jboss.wsf.stack.cxf;
+import static org.jboss.logging.Logger.Level.ERROR;
+
import java.io.File;
import java.net.URL;
@@ -31,6 +33,7 @@
import javax.xml.ws.WebServiceException;
import org.jboss.logging.Cause;
+import org.jboss.logging.LogMessage;
import org.jboss.logging.Message;
import org.jboss.logging.MessageBundle;
import org.jboss.wsf.spi.WSFException;
@@ -217,4 +220,8 @@
@Message(id = 24104, value = "Service class %s is missing required JAX-WS 2.2
additional constructors")
WSFException missingJAXWS22ServiceConstructor(String className, @Cause Throwable
cause);
+
+ @LogMessage(level = ERROR)
+ @Message(id = 24106, value = "Could not create output result elements for
endpoint: %s")
+ WSFException unableToCreateEndpointResultElement(String endpoint, @Cause Throwable
cause);
}
Modified:
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/AbstractManagementInterceptor.java
===================================================================
---
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/AbstractManagementInterceptor.java 2015-04-07
08:47:00 UTC (rev 19624)
+++
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/AbstractManagementInterceptor.java 2015-04-08
10:17:38 UTC (rev 19625)
@@ -35,7 +35,6 @@
public AbstractManagementInterceptor(String phase)
{
super(phase);
- // TODO Auto-generated constructor stub
}
protected String getEncoding(Message message)
Modified:
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/AbstractMangementInInterceptor.java
===================================================================
---
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/AbstractMangementInInterceptor.java 2015-04-07
08:47:00 UTC (rev 19624)
+++
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/AbstractMangementInInterceptor.java 2015-04-08
10:17:38 UTC (rev 19625)
@@ -63,9 +63,6 @@
protected void cleanUpOutInterceptors(Message outMessage)
{
- // TODO - how can I improve this to provide a specific interceptor chain that just
has the
- // stax, gzip and message sender components, while also ensuring that GZIP is only
provided
- // if its already configured for the endpoint.
Iterator<Interceptor<? extends Message>> iterator =
outMessage.getInterceptorChain().iterator();
while (iterator.hasNext())
{
Modified:
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/EndpointConfigsGetOutIntercetpor.java
===================================================================
---
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/EndpointConfigsGetOutIntercetpor.java 2015-04-07
08:47:00 UTC (rev 19624)
+++
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/EndpointConfigsGetOutIntercetpor.java 2015-04-08
10:17:38 UTC (rev 19625)
@@ -21,8 +21,10 @@
*/
package org.jboss.wsf.stack.cxf.interceptor;
+import java.io.BufferedOutputStream;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
+import java.io.PrintWriter;
import java.util.Map;
import org.apache.cxf.common.util.StringUtils;
@@ -34,7 +36,11 @@
import org.codehaus.jettison.AbstractXMLStreamWriter;
import org.codehaus.jettison.mapped.MappedNamespaceConvention;
import org.codehaus.jettison.mapped.MappedXMLStreamWriter;
+import org.jboss.wsf.spi.WSFException;
+import org.jboss.wsf.spi.deployment.Endpoint;
+import org.jboss.wsf.stack.cxf.Loggers;
+
/**
* Out Interceptor to get json format endpoint config info. This interceptor is only
* responds to get url like
http://localhost:8080/context/wsendpoint/management?config
@@ -89,11 +95,16 @@
}
mappedWriter.writeEndDocument();
out.flush();
+ }catch (Exception e)
+ {
+ String endpointName = message.getExchange().get(Endpoint.class).getShortName();
+ WSFException wsfException =
org.jboss.wsf.stack.cxf.Messages.MESSAGES.unableToCreateEndpointResultElement(endpointName,
e);
+ Loggers.INTERCEPTOR_LOGGER.error(wsfException);
+ message.put(Message.RESPONSE_CODE, 500);
+ PrintWriter outWriter =new PrintWriter(new BufferedOutputStream(out));
+ outWriter.write(wsfException.getLocalizedMessage());
+ outWriter.flush();
}
- catch (Exception e)
- {
- throw new Fault(e);
- }
finally
{
StaxUtils.close(mappedWriter);
Modified:
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/EndpointConfigsOutIntercetpor.java
===================================================================
---
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/EndpointConfigsOutIntercetpor.java 2015-04-07
08:47:00 UTC (rev 19624)
+++
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/EndpointConfigsOutIntercetpor.java 2015-04-08
10:17:38 UTC (rev 19625)
@@ -21,8 +21,10 @@
*/
package org.jboss.wsf.stack.cxf.interceptor;
+import java.io.BufferedOutputStream;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
+import java.io.PrintWriter;
import org.apache.cxf.interceptor.Fault;
import org.apache.cxf.interceptor.MessageSenderInterceptor;
@@ -32,6 +34,9 @@
import org.codehaus.jettison.AbstractXMLStreamWriter;
import org.codehaus.jettison.mapped.MappedNamespaceConvention;
import org.codehaus.jettison.mapped.MappedXMLStreamWriter;
+import org.jboss.wsf.spi.WSFException;
+import org.jboss.wsf.spi.deployment.Endpoint;
+import org.jboss.wsf.stack.cxf.Loggers;
/**
* Out Interceptor to write json format endpoint config set result. This interceptor is
added to interceptorchain by
@@ -43,6 +48,7 @@
{
public static final EndpointConfigsOutIntercetpor INSTANCE = new
EndpointConfigsOutIntercetpor();
public static final String CONFIG_RESULT =
EndpointConfigsOutIntercetpor.class.getName() + ".ConfigResult";
+
public EndpointConfigsOutIntercetpor()
{
super(Phase.PREPARE_SEND);
@@ -80,7 +86,13 @@
}
catch (Exception e)
{
- throw new Fault(e);
+ String endpointName = message.getExchange().get(Endpoint.class).getShortName();
+ WSFException wsfException =
org.jboss.wsf.stack.cxf.Messages.MESSAGES.unableToCreateEndpointResultElement(endpointName,
e);
+ Loggers.INTERCEPTOR_LOGGER.error(wsfException);
+ message.put(Message.RESPONSE_CODE, 500);
+ PrintWriter outWriter = new PrintWriter(new BufferedOutputStream(out));
+ outWriter.write(wsfException.getLocalizedMessage());
+ outWriter.flush();
}
finally
{
Modified:
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/EndpointFeaturePutInterceptor.java
===================================================================
---
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/EndpointFeaturePutInterceptor.java 2015-04-07
08:47:00 UTC (rev 19624)
+++
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/EndpointFeaturePutInterceptor.java 2015-04-08
10:17:38 UTC (rev 19625)
@@ -28,15 +28,15 @@
import java.util.Set;
import org.apache.cxf.binding.soap.interceptor.EndpointSelectionInterceptor;
-import org.apache.cxf.feature.LoggingFeature;
import org.apache.cxf.interceptor.Fault;
import org.apache.cxf.interceptor.Interceptor;
import org.apache.cxf.interceptor.OutgoingChainInterceptor;
import org.apache.cxf.message.Message;
import org.apache.cxf.phase.Phase;
-import org.apache.cxf.transport.common.gzip.GZIPFeature;
import org.jboss.wsf.stack.cxf.interceptor.util.RemovableFeature;
+import org.jboss.wsf.stack.cxf.interceptor.util.RemovableGZIPFeature;
import org.jboss.wsf.stack.cxf.interceptor.util.RemovableLoggingFeature;
+import org.jboss.wsf.stack.cxf.interceptor.util.RemovableSchemaValidatonFeature;
/**
* Interceptor to allow dynamically enalbe cxf features
@@ -55,8 +55,9 @@
httpMethods = new HashSet<String>(4);
httpMethods.add("PUT");
httpMethods.add("GET");
- featureClassMap.put("logging", new RemovableLoggingFeature(new
LoggingFeature()));
- featureClassMap.put("gzip", new RemovableLoggingFeature(new
GZIPFeature()));
+ featureClassMap.put("logging", new RemovableLoggingFeature());
+ featureClassMap.put("gzip", new RemovableGZIPFeature());
+ featureClassMap.put("schemaValidation", new
RemovableSchemaValidatonFeature());
}
public EndpointFeaturePutInterceptor()
Modified:
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/EndpointMetricsGetInterceptor.java
===================================================================
---
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/EndpointMetricsGetInterceptor.java 2015-04-07
08:47:00 UTC (rev 19624)
+++
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/EndpointMetricsGetInterceptor.java 2015-04-08
10:17:38 UTC (rev 19625)
@@ -61,8 +61,7 @@
public EndpointMetricsGetInterceptor(Interceptor<Message> outInterceptor)
{
this();
- // Let people override the EndpointConfigsGetOutIntercetpor
- //configsOutInteceptor = outInterceptor;
+ metricsOutInteceptor = outInterceptor;
}
public void handleMessage(Message message) throws Fault
Modified:
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/EndpointMetricsGetOutInterceptor.java
===================================================================
---
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/EndpointMetricsGetOutInterceptor.java 2015-04-07
08:47:00 UTC (rev 19624)
+++
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/EndpointMetricsGetOutInterceptor.java 2015-04-08
10:17:38 UTC (rev 19625)
@@ -21,8 +21,10 @@
*/
package org.jboss.wsf.stack.cxf.interceptor;
+import java.io.BufferedOutputStream;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
+import java.io.PrintWriter;
import org.apache.cxf.interceptor.Fault;
import org.apache.cxf.interceptor.MessageSenderInterceptor;
@@ -32,7 +34,10 @@
import org.codehaus.jettison.AbstractXMLStreamWriter;
import org.codehaus.jettison.mapped.MappedNamespaceConvention;
import org.codehaus.jettison.mapped.MappedXMLStreamWriter;
+import org.jboss.wsf.spi.WSFException;
+import org.jboss.wsf.spi.deployment.Endpoint;
import org.jboss.wsf.spi.management.EndpointMetrics;
+import org.jboss.wsf.stack.cxf.Loggers;
/**
* Out Interceptor to write json format endpoint metrics result. This interceptor is
added to interceptorchain by
@@ -83,7 +88,13 @@
}
catch (Exception e)
{
- throw new Fault(e);
+ String endpointName = message.getExchange().get(Endpoint.class).getShortName();
+ WSFException wsfException =
org.jboss.wsf.stack.cxf.Messages.MESSAGES.unableToCreateEndpointResultElement(endpointName,
e);
+ Loggers.INTERCEPTOR_LOGGER.error(wsfException);
+ message.put(Message.RESPONSE_CODE, 500);
+ PrintWriter outWriter =new PrintWriter(new BufferedOutputStream(out));
+ outWriter.write(wsfException.getLocalizedMessage());
+ outWriter.flush();
}
finally
{
Modified:
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/EndpointRecordGetOutInterceptor.java
===================================================================
---
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/EndpointRecordGetOutInterceptor.java 2015-04-07
08:47:00 UTC (rev 19624)
+++
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/EndpointRecordGetOutInterceptor.java 2015-04-08
10:17:38 UTC (rev 19625)
@@ -21,8 +21,10 @@
*/
package org.jboss.wsf.stack.cxf.interceptor;
+import java.io.BufferedOutputStream;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
+import java.io.PrintWriter;
import java.util.List;
import java.util.Map;
@@ -35,6 +37,9 @@
import org.codehaus.jettison.mapped.MappedNamespaceConvention;
import org.codehaus.jettison.mapped.MappedXMLStreamWriter;
import org.jboss.ws.api.monitoring.Record;
+import org.jboss.wsf.spi.WSFException;
+import org.jboss.wsf.spi.deployment.Endpoint;
+import org.jboss.wsf.stack.cxf.Loggers;
/**
* Out Interceptor to write json format endpoint request records. This interceptor is
added to interceptorchain by
@@ -93,7 +98,13 @@
}
catch (Exception e)
{
- throw new Fault(e);
+ String endpointName = message.getExchange().get(Endpoint.class).getShortName();
+ WSFException wsfException =
org.jboss.wsf.stack.cxf.Messages.MESSAGES.unableToCreateEndpointResultElement(endpointName,
e);
+ Loggers.INTERCEPTOR_LOGGER.error(wsfException);
+ message.put(Message.RESPONSE_CODE, 500);
+ PrintWriter outWriter =new PrintWriter(new BufferedOutputStream(out));
+ outWriter.write(wsfException.getLocalizedMessage());
+ outWriter.flush();
}
finally
{
Added:
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/util/JBossWSSchemaValidationFeature.java
===================================================================
---
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/util/JBossWSSchemaValidationFeature.java
(rev 0)
+++
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/util/JBossWSSchemaValidationFeature.java 2015-04-08
10:17:38 UTC (rev 19625)
@@ -0,0 +1,54 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2015, 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.wsf.stack.cxf.interceptor.util;
+
+import org.apache.cxf.Bus;
+import org.apache.cxf.annotations.SchemaValidation.SchemaValidationType;
+import org.apache.cxf.endpoint.Endpoint;
+import org.apache.cxf.feature.AbstractFeature;
+import org.apache.cxf.message.Message;
+import org.apache.cxf.service.model.BindingOperationInfo;
+/**
+ * Another simple schema validation feature implementation, it enables BOTH
SchemaValidationType for all opearation
+ * @author <a href="mailto:ema@redhat.com">Jim Ma</a>
+ *
+ */
+public class JBossWSSchemaValidationFeature extends AbstractFeature
+{
+ public JBossWSSchemaValidationFeature()
+ {
+
+ }
+ public void initialize(Endpoint endpoint, Bus bus)
+ {
+ initialise(endpoint);
+ }
+
+ private void initialise(Endpoint endpoint)
+ {
+ for (BindingOperationInfo bop :
endpoint.getEndpointInfo().getBinding().getOperations())
+ {
+ bop.getOperationInfo().setProperty(Message.SCHEMA_VALIDATION_TYPE,
SchemaValidationType.BOTH);
+ }
+ }
+
+}
Property changes on:
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/util/JBossWSSchemaValidationFeature.java
___________________________________________________________________
Added: svn:keywords
+ Rev Date
Added: svn:eol-style
+ native
Modified:
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/util/RemovableFeature.java
===================================================================
---
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/util/RemovableFeature.java 2015-04-07
08:47:00 UTC (rev 19624)
+++
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/util/RemovableFeature.java 2015-04-08
10:17:38 UTC (rev 19625)
@@ -36,8 +36,12 @@
*/
public abstract class RemovableFeature
{
- private AbstractFeature cxfFeature;
-
+ protected AbstractFeature cxfFeature;
+
+ public RemovableFeature()
+ {
+ }
+
public RemovableFeature(AbstractFeature feature)
{
cxfFeature = feature;
Modified:
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/util/RemovableGZIPFeature.java
===================================================================
---
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/util/RemovableGZIPFeature.java 2015-04-07
08:47:00 UTC (rev 19624)
+++
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/util/RemovableGZIPFeature.java 2015-04-08
10:17:38 UTC (rev 19625)
@@ -22,7 +22,7 @@
package org.jboss.wsf.stack.cxf.interceptor.util;
import org.apache.cxf.endpoint.Endpoint;
-import org.apache.cxf.feature.AbstractFeature;
+import org.apache.cxf.transport.common.gzip.GZIPFeature;
import org.apache.cxf.transport.common.gzip.GZIPInInterceptor;
import org.apache.cxf.transport.common.gzip.GZIPOutInterceptor;
@@ -33,9 +33,14 @@
*/
public class RemovableGZIPFeature extends RemovableFeature
{
-
- public RemovableGZIPFeature(AbstractFeature feature)
+
+ public RemovableGZIPFeature()
{
+ super(new GZIPFeature());
+ }
+
+ public RemovableGZIPFeature(GZIPFeature feature)
+ {
super(feature);
}
Modified:
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/util/RemovableLoggingFeature.java
===================================================================
---
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/util/RemovableLoggingFeature.java 2015-04-07
08:47:00 UTC (rev 19624)
+++
stack/cxf/branches/management/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/util/RemovableLoggingFeature.java 2015-04-08
10:17:38 UTC (rev 19625)
@@ -22,7 +22,7 @@
package org.jboss.wsf.stack.cxf.interceptor.util;
import org.apache.cxf.endpoint.Endpoint;
-import org.apache.cxf.feature.AbstractFeature;
+import org.apache.cxf.feature.LoggingFeature;
import org.apache.cxf.interceptor.LoggingInInterceptor;
import org.apache.cxf.interceptor.LoggingOutInterceptor;
@@ -33,11 +33,15 @@
*/
public class RemovableLoggingFeature extends RemovableFeature
{
- public RemovableLoggingFeature(AbstractFeature feature)
+ public RemovableLoggingFeature()
{
- super(feature);
-
+ super(new LoggingFeature());
}
+
+ public RemovableLoggingFeature(LoggingFeature loggingFeature)
+ {
+ super(loggingFeature);
+ }
public void remove(Endpoint endpoint)
{