Author: mageshbk(a)jboss.com
Date: 2008-01-11 01:29:06 -0500 (Fri, 11 Jan 2008)
New Revision: 5462
Modified:
legacy/branches/jbossws-1.2.1.GA_JBWS-1900/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ClientHandler.java
Log:
[JBWS-1900] JBWS-1937-Removed dependency from jaxws testcase
Modified:
legacy/branches/jbossws-1.2.1.GA_JBWS-1900/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ClientHandler.java
===================================================================
---
legacy/branches/jbossws-1.2.1.GA_JBWS-1900/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ClientHandler.java 2008-01-11
06:28:13 UTC (rev 5461)
+++
legacy/branches/jbossws-1.2.1.GA_JBWS-1900/jbossws-tests/src/java/org/jboss/test/ws/jaxrpc/samples/wsaddr/replyto/ClientHandler.java 2008-01-11
06:29:06 UTC (rev 5462)
@@ -25,6 +25,7 @@
import java.net.URISyntaxException;
import javax.xml.namespace.QName;
+import javax.xml.rpc.handler.GenericHandler;
import javax.xml.rpc.handler.MessageContext;
import javax.xml.ws.addressing.AddressingBuilder;
@@ -34,7 +35,6 @@
import javax.xml.ws.addressing.soap.SOAPAddressingProperties;
import org.jboss.logging.Logger;
-import org.jboss.test.ws.jaxws.wsaddressing.AddressingHandler;
/**
* A client side handler for the ws-addressing
@@ -42,7 +42,7 @@
* @author mageshbk(a)jboss.com
* @since 12-Dec-2007
*/
-public class ClientHandler extends AddressingHandler
+public class ClientHandler extends GenericHandler
{
// Provide logging
private static Logger log = Logger.getLogger(ClientHandler.class);
@@ -69,11 +69,21 @@
}
log.info("exit handleRequest");
return true;
- }
+ }
- public QName[] getHeaders()
- {
- return headers;
- }
+ public QName[] getHeaders()
+ {
+ return headers;
+ }
+ /**
+ * Get the JBoss server host from system property "jbosstest.server.host"
+ * This defaults to "localhost" if the property is not set
+ */
+ private String getServerHost()
+ {
+ String hostName = System.getProperty("jbosstest.server.host",
"localhost");
+ return hostName;
+ }
+
}
Show replies by date