dev@ws-test-harness.java.net

patch for LocalApplication.getEndpointAddress

From: Fabian Ritzmann <Fabian.Ritzmann_at_Sun.COM>
Date: Wed, 29 Nov 2006 17:28:33 +0200

Hi Ken, Kohsuke,

Can you please review this patch and apply if appropriate? This gives me
a working endpoint address for my client dispatch tests. The resolve()
in the original code does some funky transformations to the URI.

Fabian


Index: LocalApplication.java
***
ws-test-harness/test-harness/src/com/sun/xml/ws/test/container/local/LocalApplication.java
Base (1.8)---
ws-test-harness/test-harness/src/com/sun/xml/ws/test/container/local/LocalApplication.java
Locally Modified (Based On 1.8)
***************
*** 49,56 ****
       */
      @NotNull
      public URI getEndpointAddress(@NotNull TestEndpoint endpoint)
throws Exception {
! // I'm not too confident if endpoint.name is always the port
local name.
! return baseEndpointAddress.resolve('?'+endpoint.name);
      }
 
      /**
--- 49,55 ----
       */
      @NotNull
      public URI getEndpointAddress(@NotNull TestEndpoint endpoint)
throws Exception {
! return new URI(baseEndpointAddress.toString() + '?' +
endpoint.name);
      }
 
      /**