Author: alessio.soldano(a)jboss.com
Date: 2011-04-22 09:01:25 -0400 (Fri, 22 Apr 2011)
New Revision: 14185
Modified:
stack/cxf/branches/cxf24/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/RMCheckInterceptor.java
Log:
Fixing testcase; interceptors running before READ phase need check on http method as the
wsdl queries are now handled by a READ phase interceptor.
Modified:
stack/cxf/branches/cxf24/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/RMCheckInterceptor.java
===================================================================
---
stack/cxf/branches/cxf24/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/RMCheckInterceptor.java 2011-04-22
10:34:52 UTC (rev 14184)
+++
stack/cxf/branches/cxf24/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsrm/service/RMCheckInterceptor.java 2011-04-22
13:01:25 UTC (rev 14185)
@@ -49,6 +49,11 @@
public void handleMessage(Message message) throws Fault
{
+ String method = (String)message.get(Message.HTTP_REQUEST_METHOD);
+ if (!method.equals("POST"))
+ {
+ return;
+ }
StringBuilder sb = new StringBuilder();
InputStream is = message.getContent(InputStream.class);
if (is != null)