1 /* |
1 /* |
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
225 } |
225 } |
226 |
226 |
227 public @NotNull String getEPRAddress(Packet request, WSEndpoint endpoint) { |
227 public @NotNull String getEPRAddress(Packet request, WSEndpoint endpoint) { |
228 //return WSHttpHandler.getRequestAddress(httpExchange); |
228 //return WSHttpHandler.getRequestAddress(httpExchange); |
229 |
229 |
230 PortAddressResolver resolver = adapter.owner.createPortAddressResolver(getBaseAddress()); |
230 PortAddressResolver resolver = adapter.owner.createPortAddressResolver(getBaseAddress(), endpoint.getImplementationClass()); |
231 String address = resolver.getAddressFor(endpoint.getServiceName(), endpoint.getPortName().getLocalPart()); |
231 String address = resolver.getAddressFor(endpoint.getServiceName(), endpoint.getPortName().getLocalPart()); |
232 if(address==null) |
232 if(address==null) |
233 throw new WebServiceException(WsservletMessages.SERVLET_NO_ADDRESS_AVAILABLE(endpoint.getPortName())); |
233 throw new WebServiceException(WsservletMessages.SERVLET_NO_ADDRESS_AVAILABLE(endpoint.getPortName())); |
234 return address; |
234 return address; |
235 |
235 |