com.sun.xml.internal.ws.api.server.PortAddressResolver Java Examples
The following examples show how to use
com.sun.xml.internal.ws.api.server.PortAddressResolver.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HttpAdapter.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Sends out the WSDL (and other referenced documents) * in response to the GET requests to URLs like "?wsdl" or "?xsd=2". * * @param con * The connection to which the data will be sent. * * @throws java.io.IOException when I/O errors happen */ public void publishWSDL(@NotNull WSHTTPConnection con) throws IOException { con.getInput().close(); SDDocument doc = wsdls.get(con.getQueryString()); if (doc == null) { writeNotFoundErrorPage(con,"Invalid Request"); return; } con.setStatus(HttpURLConnection.HTTP_OK); con.setContentTypeResponseHeader("text/xml;charset=utf-8"); OutputStream os = con.getProtocol().contains("1.1") ? con.getOutput() : new Http10OutputStream(con); PortAddressResolver portAddressResolver = getPortAddressResolver(con.getBaseAddress()); DocumentAddressResolver resolver = getDocumentAddressResolver(portAddressResolver); doc.writeTo(portAddressResolver, resolver, os); os.close(); }
Example #2
Source File: HttpAdapter.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Sends out the WSDL (and other referenced documents) * in response to the GET requests to URLs like "?wsdl" or "?xsd=2". * * @param con * The connection to which the data will be sent. * * @throws java.io.IOException when I/O errors happen */ public void publishWSDL(@NotNull WSHTTPConnection con) throws IOException { con.getInput().close(); SDDocument doc = wsdls.get(con.getQueryString()); if (doc == null) { writeNotFoundErrorPage(con,"Invalid Request"); return; } con.setStatus(HttpURLConnection.HTTP_OK); con.setContentTypeResponseHeader("text/xml;charset=utf-8"); OutputStream os = con.getProtocol().contains("1.1") ? con.getOutput() : new Http10OutputStream(con); PortAddressResolver portAddressResolver = getPortAddressResolver(con.getBaseAddress()); DocumentAddressResolver resolver = getDocumentAddressResolver(portAddressResolver); doc.writeTo(portAddressResolver, resolver, os); os.close(); }
Example #3
Source File: HttpAdapterList.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Creates a PortAddressResolver that maps portname to its address * * @param endpointImpl application endpoint Class that eventually serves the request. */ public PortAddressResolver createPortAddressResolver(final String baseAddress, final Class<?> endpointImpl) { return new PortAddressResolver() { @Override public String getAddressFor(@NotNull QName serviceName, @NotNull String portName) { String urlPattern = addressMap.get(new PortInfo(serviceName,portName, endpointImpl)); if (urlPattern == null) { //if a WSDL defines more ports, urlpattern is null (portName does not match endpointImpl) //so fallback to the default behaviour where only serviceName/portName is checked for (Entry<PortInfo, String> e : addressMap.entrySet()) { if (serviceName.equals(e.getKey().serviceName) && portName.equals(e.getKey().portName)) { urlPattern = e.getValue(); break; } } } return (urlPattern == null) ? null : baseAddress+urlPattern; } }; }
Example #4
Source File: HttpAdapterList.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Creates a PortAddressResolver that maps portname to its address * * @param endpointImpl application endpoint Class that eventually serves the request. */ public PortAddressResolver createPortAddressResolver(final String baseAddress, final Class<?> endpointImpl) { return new PortAddressResolver() { @Override public String getAddressFor(@NotNull QName serviceName, @NotNull String portName) { String urlPattern = addressMap.get(new PortInfo(serviceName,portName, endpointImpl)); if (urlPattern == null) { //if a WSDL defines more ports, urlpattern is null (portName does not match endpointImpl) //so fallback to the default behaviour where only serviceName/portName is checked for (Entry<PortInfo, String> e : addressMap.entrySet()) { if (serviceName.equals(e.getKey().serviceName) && portName.equals(e.getKey().portName)) { urlPattern = e.getValue(); break; } } } return (urlPattern == null) ? null : baseAddress+urlPattern; } }; }
Example #5
Source File: HttpAdapterList.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Creates a PortAddressResolver that maps portname to its address * * @param endpointImpl application endpoint Class that eventually serves the request. */ public PortAddressResolver createPortAddressResolver(final String baseAddress, final Class<?> endpointImpl) { return new PortAddressResolver() { @Override public String getAddressFor(@NotNull QName serviceName, @NotNull String portName) { String urlPattern = addressMap.get(new PortInfo(serviceName,portName, endpointImpl)); if (urlPattern == null) { //if a WSDL defines more ports, urlpattern is null (portName does not match endpointImpl) //so fallback to the default behaviour where only serviceName/portName is checked for (Entry<PortInfo, String> e : addressMap.entrySet()) { if (serviceName.equals(e.getKey().serviceName) && portName.equals(e.getKey().portName)) { urlPattern = e.getValue(); break; } } } return (urlPattern == null) ? null : baseAddress+urlPattern; } }; }
Example #6
Source File: HttpAdapter.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Sends out the WSDL (and other referenced documents) * in response to the GET requests to URLs like "?wsdl" or "?xsd=2". * * @param con * The connection to which the data will be sent. * * @throws java.io.IOException when I/O errors happen */ public void publishWSDL(@NotNull WSHTTPConnection con) throws IOException { con.getInput().close(); SDDocument doc = wsdls.get(con.getQueryString()); if (doc == null) { writeNotFoundErrorPage(con,"Invalid Request"); return; } con.setStatus(HttpURLConnection.HTTP_OK); con.setContentTypeResponseHeader("text/xml;charset=utf-8"); OutputStream os = con.getProtocol().contains("1.1") ? con.getOutput() : new Http10OutputStream(con); PortAddressResolver portAddressResolver = getPortAddressResolver(con.getBaseAddress()); DocumentAddressResolver resolver = getDocumentAddressResolver(portAddressResolver); doc.writeTo(portAddressResolver, resolver, os); os.close(); }
Example #7
Source File: HttpAdapter.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Sends out the WSDL (and other referenced documents) * in response to the GET requests to URLs like "?wsdl" or "?xsd=2". * * @param con * The connection to which the data will be sent. * * @throws java.io.IOException when I/O errors happen */ public void publishWSDL(@NotNull WSHTTPConnection con) throws IOException { con.getInput().close(); SDDocument doc = wsdls.get(con.getQueryString()); if (doc == null) { writeNotFoundErrorPage(con,"Invalid Request"); return; } con.setStatus(HttpURLConnection.HTTP_OK); con.setContentTypeResponseHeader("text/xml;charset=utf-8"); OutputStream os = con.getProtocol().contains("1.1") ? con.getOutput() : new Http10OutputStream(con); PortAddressResolver portAddressResolver = getPortAddressResolver(con.getBaseAddress()); DocumentAddressResolver resolver = getDocumentAddressResolver(portAddressResolver); doc.writeTo(portAddressResolver, resolver, os); os.close(); }
Example #8
Source File: HttpAdapter.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Sends out the WSDL (and other referenced documents) * in response to the GET requests to URLs like "?wsdl" or "?xsd=2". * * @param con * The connection to which the data will be sent. * * @throws java.io.IOException when I/O errors happen */ public void publishWSDL(@NotNull WSHTTPConnection con) throws IOException { con.getInput().close(); SDDocument doc = wsdls.get(con.getQueryString()); if (doc == null) { writeNotFoundErrorPage(con,"Invalid Request"); return; } con.setStatus(HttpURLConnection.HTTP_OK); con.setContentTypeResponseHeader("text/xml;charset=utf-8"); OutputStream os = con.getProtocol().contains("1.1") ? con.getOutput() : new Http10OutputStream(con); PortAddressResolver portAddressResolver = getPortAddressResolver(con.getBaseAddress()); DocumentAddressResolver resolver = getDocumentAddressResolver(portAddressResolver); doc.writeTo(portAddressResolver, resolver, os); os.close(); }
Example #9
Source File: HttpAdapterList.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Creates a PortAddressResolver that maps portname to its address * * @param endpointImpl application endpoint Class that eventually serves the request. */ public PortAddressResolver createPortAddressResolver(final String baseAddress, final Class<?> endpointImpl) { return new PortAddressResolver() { @Override public String getAddressFor(@NotNull QName serviceName, @NotNull String portName) { String urlPattern = addressMap.get(new PortInfo(serviceName,portName, endpointImpl)); if (urlPattern == null) { //if a WSDL defines more ports, urlpattern is null (portName does not match endpointImpl) //so fallback to the default behaviour where only serviceName/portName is checked for (Entry<PortInfo, String> e : addressMap.entrySet()) { if (serviceName.equals(e.getKey().serviceName) && portName.equals(e.getKey().portName)) { urlPattern = e.getValue(); break; } } } return (urlPattern == null) ? null : baseAddress+urlPattern; } }; }
Example #10
Source File: HttpAdapterList.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Creates a PortAddressResolver that maps portname to its address * * @param endpointImpl application endpoint Class that eventually serves the request. */ public PortAddressResolver createPortAddressResolver(final String baseAddress, final Class<?> endpointImpl) { return new PortAddressResolver() { @Override public String getAddressFor(@NotNull QName serviceName, @NotNull String portName) { String urlPattern = addressMap.get(new PortInfo(serviceName,portName, endpointImpl)); if (urlPattern == null) { //if a WSDL defines more ports, urlpattern is null (portName does not match endpointImpl) //so fallback to the default behaviour where only serviceName/portName is checked for (Entry<PortInfo, String> e : addressMap.entrySet()) { if (serviceName.equals(e.getKey().serviceName) && portName.equals(e.getKey().portName)) { urlPattern = e.getValue(); break; } } } return (urlPattern == null) ? null : baseAddress+urlPattern; } }; }
Example #11
Source File: HttpAdapterList.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Creates a PortAddressResolver that maps portname to its address * * @param endpointImpl application endpoint Class that eventually serves the request. */ public PortAddressResolver createPortAddressResolver(final String baseAddress, final Class<?> endpointImpl) { return new PortAddressResolver() { @Override public String getAddressFor(@NotNull QName serviceName, @NotNull String portName) { String urlPattern = addressMap.get(new PortInfo(serviceName,portName, endpointImpl)); if (urlPattern == null) { //if a WSDL defines more ports, urlpattern is null (portName does not match endpointImpl) //so fallback to the default behaviour where only serviceName/portName is checked for (Entry<PortInfo, String> e : addressMap.entrySet()) { if (serviceName.equals(e.getKey().serviceName) && portName.equals(e.getKey().portName)) { urlPattern = e.getValue(); break; } } } return (urlPattern == null) ? null : baseAddress+urlPattern; } }; }
Example #12
Source File: HttpAdapterList.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Creates a PortAddressResolver that maps portname to its address * * @param endpointImpl application endpoint Class that eventually serves the request. */ public PortAddressResolver createPortAddressResolver(final String baseAddress, final Class<?> endpointImpl) { return new PortAddressResolver() { @Override public String getAddressFor(@NotNull QName serviceName, @NotNull String portName) { String urlPattern = addressMap.get(new PortInfo(serviceName,portName, endpointImpl)); if (urlPattern == null) { //if a WSDL defines more ports, urlpattern is null (portName does not match endpointImpl) //so fallback to the default behaviour where only serviceName/portName is checked for (Entry<PortInfo, String> e : addressMap.entrySet()) { if (serviceName.equals(e.getKey().serviceName) && portName.equals(e.getKey().portName)) { urlPattern = e.getValue(); break; } } } return (urlPattern == null) ? null : baseAddress+urlPattern; } }; }
Example #13
Source File: HttpAdapterList.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Creates a PortAddressResolver that maps portname to its address * * @param endpointImpl application endpoint Class that eventually serves the request. */ public PortAddressResolver createPortAddressResolver(final String baseAddress, final Class<?> endpointImpl) { return new PortAddressResolver() { @Override public String getAddressFor(@NotNull QName serviceName, @NotNull String portName) { String urlPattern = addressMap.get(new PortInfo(serviceName,portName, endpointImpl)); if (urlPattern == null) { //if a WSDL defines more ports, urlpattern is null (portName does not match endpointImpl) //so fallback to the default behaviour where only serviceName/portName is checked for (Entry<PortInfo, String> e : addressMap.entrySet()) { if (serviceName.equals(e.getKey().serviceName) && portName.equals(e.getKey().portName)) { urlPattern = e.getValue(); break; } } } return (urlPattern == null) ? null : baseAddress+urlPattern; } }; }
Example #14
Source File: HttpAdapter.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Sends out the WSDL (and other referenced documents) * in response to the GET requests to URLs like "?wsdl" or "?xsd=2". * * @param con * The connection to which the data will be sent. * * @throws java.io.IOException when I/O errors happen */ public void publishWSDL(@NotNull WSHTTPConnection con) throws IOException { con.getInput().close(); SDDocument doc = wsdls.get(con.getQueryString()); if (doc == null) { writeNotFoundErrorPage(con,"Invalid Request"); return; } con.setStatus(HttpURLConnection.HTTP_OK); con.setContentTypeResponseHeader("text/xml;charset=utf-8"); OutputStream os = con.getProtocol().contains("1.1") ? con.getOutput() : new Http10OutputStream(con); PortAddressResolver portAddressResolver = getPortAddressResolver(con.getBaseAddress()); DocumentAddressResolver resolver = getDocumentAddressResolver(portAddressResolver); doc.writeTo(portAddressResolver, resolver, os); os.close(); }
Example #15
Source File: HttpAdapter.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Sends out the WSDL (and other referenced documents) * in response to the GET requests to URLs like "?wsdl" or "?xsd=2". * * @param con * The connection to which the data will be sent. * * @throws java.io.IOException when I/O errors happen */ public void publishWSDL(@NotNull WSHTTPConnection con) throws IOException { con.getInput().close(); SDDocument doc = wsdls.get(con.getQueryString()); if (doc == null) { writeNotFoundErrorPage(con,"Invalid Request"); return; } con.setStatus(HttpURLConnection.HTTP_OK); con.setContentTypeResponseHeader("text/xml;charset=utf-8"); OutputStream os = con.getProtocol().contains("1.1") ? con.getOutput() : new Http10OutputStream(con); PortAddressResolver portAddressResolver = getPortAddressResolver(con.getBaseAddress()); DocumentAddressResolver resolver = getDocumentAddressResolver(portAddressResolver); doc.writeTo(portAddressResolver, resolver, os); os.close(); }
Example #16
Source File: HttpAdapter.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Sends out the WSDL (and other referenced documents) * in response to the GET requests to URLs like "?wsdl" or "?xsd=2". * * @param con * The connection to which the data will be sent. * * @throws java.io.IOException when I/O errors happen */ public void publishWSDL(@NotNull WSHTTPConnection con) throws IOException { con.getInput().close(); SDDocument doc = wsdls.get(con.getQueryString()); if (doc == null) { writeNotFoundErrorPage(con,"Invalid Request"); return; } con.setStatus(HttpURLConnection.HTTP_OK); con.setContentTypeResponseHeader("text/xml;charset=utf-8"); OutputStream os = con.getProtocol().contains("1.1") ? con.getOutput() : new Http10OutputStream(con); PortAddressResolver portAddressResolver = getPortAddressResolver(con.getBaseAddress()); DocumentAddressResolver resolver = getDocumentAddressResolver(portAddressResolver); doc.writeTo(portAddressResolver, resolver, os); os.close(); }
Example #17
Source File: HttpAdapter.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public DocumentAddressResolver getDocumentAddressResolver( PortAddressResolver portAddressResolver) { final String address = portAddressResolver.getAddressFor(endpoint.getServiceName(), endpoint.getPortName().getLocalPart()); assert address != null; return new DocumentAddressResolver() { @Override public String getRelativeAddressFor(@NotNull SDDocument current, @NotNull SDDocument referenced) { // the map on endpoint should account for all SDDocument assert revWsdls.containsKey(referenced); return address+'?'+ revWsdls.get(referenced); } }; }
Example #18
Source File: ServerConnectionImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
public @NotNull String getEPRAddress(Packet request, WSEndpoint endpoint) { //return WSHttpHandler.getRequestAddress(httpExchange); PortAddressResolver resolver = adapter.owner.createPortAddressResolver(getBaseAddress(), endpoint.getImplementationClass()); String address = resolver.getAddressFor(endpoint.getServiceName(), endpoint.getPortName().getLocalPart()); if(address==null) throw new WebServiceException(WsservletMessages.SERVLET_NO_ADDRESS_AVAILABLE(endpoint.getPortName())); return address; }
Example #19
Source File: HttpAdapter.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public DocumentAddressResolver getDocumentAddressResolver( PortAddressResolver portAddressResolver) { final String address = portAddressResolver.getAddressFor(endpoint.getServiceName(), endpoint.getPortName().getLocalPart()); assert address != null; return new DocumentAddressResolver() { @Override public String getRelativeAddressFor(@NotNull SDDocument current, @NotNull SDDocument referenced) { // the map on endpoint should account for all SDDocument assert revWsdls.containsKey(referenced); return address+'?'+ revWsdls.get(referenced); } }; }
Example #20
Source File: HttpAdapter.java From hottub with GNU General Public License v2.0 | 5 votes |
public DocumentAddressResolver getDocumentAddressResolver( PortAddressResolver portAddressResolver) { final String address = portAddressResolver.getAddressFor(endpoint.getServiceName(), endpoint.getPortName().getLocalPart()); assert address != null; return new DocumentAddressResolver() { @Override public String getRelativeAddressFor(@NotNull SDDocument current, @NotNull SDDocument referenced) { // the map on endpoint should account for all SDDocument assert revWsdls.containsKey(referenced); return address+'?'+ revWsdls.get(referenced); } }; }
Example #21
Source File: PortableConnectionImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public @Override @NotNull String getEPRAddress(Packet request, WSEndpoint endpoint) { PortAddressResolver resolver = adapter.owner.createPortAddressResolver(getBaseAddress(), endpoint.getImplementationClass()); String address = resolver.getAddressFor(endpoint.getServiceName(), endpoint.getPortName().getLocalPart()); if(address==null) { throw new WebServiceException(WsservletMessages.SERVLET_NO_ADDRESS_AVAILABLE(endpoint.getPortName())); } return address; }
Example #22
Source File: ServerConnectionImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public @NotNull String getEPRAddress(Packet request, WSEndpoint endpoint) { //return WSHttpHandler.getRequestAddress(httpExchange); PortAddressResolver resolver = adapter.owner.createPortAddressResolver(getBaseAddress(), endpoint.getImplementationClass()); String address = resolver.getAddressFor(endpoint.getServiceName(), endpoint.getPortName().getLocalPart()); if(address==null) throw new WebServiceException(WsservletMessages.SERVLET_NO_ADDRESS_AVAILABLE(endpoint.getPortName())); return address; }
Example #23
Source File: PortableConnectionImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public @Override @NotNull String getEPRAddress(Packet request, WSEndpoint endpoint) { PortAddressResolver resolver = adapter.owner.createPortAddressResolver(getBaseAddress(), endpoint.getImplementationClass()); String address = resolver.getAddressFor(endpoint.getServiceName(), endpoint.getPortName().getLocalPart()); if(address==null) { throw new WebServiceException(WsservletMessages.SERVLET_NO_ADDRESS_AVAILABLE(endpoint.getPortName())); } return address; }
Example #24
Source File: ServerConnectionImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public @NotNull String getEPRAddress(Packet request, WSEndpoint endpoint) { //return WSHttpHandler.getRequestAddress(httpExchange); PortAddressResolver resolver = adapter.owner.createPortAddressResolver(getBaseAddress(), endpoint.getImplementationClass()); String address = resolver.getAddressFor(endpoint.getServiceName(), endpoint.getPortName().getLocalPart()); if(address==null) throw new WebServiceException(WsservletMessages.SERVLET_NO_ADDRESS_AVAILABLE(endpoint.getPortName())); return address; }
Example #25
Source File: PortableConnectionImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
public @Override @NotNull String getEPRAddress(Packet request, WSEndpoint endpoint) { PortAddressResolver resolver = adapter.owner.createPortAddressResolver(getBaseAddress(), endpoint.getImplementationClass()); String address = resolver.getAddressFor(endpoint.getServiceName(), endpoint.getPortName().getLocalPart()); if(address==null) { throw new WebServiceException(WsservletMessages.SERVLET_NO_ADDRESS_AVAILABLE(endpoint.getPortName())); } return address; }
Example #26
Source File: HttpAdapter.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public DocumentAddressResolver getDocumentAddressResolver( PortAddressResolver portAddressResolver) { final String address = portAddressResolver.getAddressFor(endpoint.getServiceName(), endpoint.getPortName().getLocalPart()); assert address != null; return new DocumentAddressResolver() { @Override public String getRelativeAddressFor(@NotNull SDDocument current, @NotNull SDDocument referenced) { // the map on endpoint should account for all SDDocument assert revWsdls.containsKey(referenced); return address+'?'+ revWsdls.get(referenced); } }; }
Example #27
Source File: PortableConnectionImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public @Override @NotNull String getEPRAddress(Packet request, WSEndpoint endpoint) { PortAddressResolver resolver = adapter.owner.createPortAddressResolver(getBaseAddress(), endpoint.getImplementationClass()); String address = resolver.getAddressFor(endpoint.getServiceName(), endpoint.getPortName().getLocalPart()); if(address==null) { throw new WebServiceException(WsservletMessages.SERVLET_NO_ADDRESS_AVAILABLE(endpoint.getPortName())); } return address; }
Example #28
Source File: PortableConnectionImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public @Override @NotNull String getEPRAddress(Packet request, WSEndpoint endpoint) { PortAddressResolver resolver = adapter.owner.createPortAddressResolver(getBaseAddress(), endpoint.getImplementationClass()); String address = resolver.getAddressFor(endpoint.getServiceName(), endpoint.getPortName().getLocalPart()); if(address==null) { throw new WebServiceException(WsservletMessages.SERVLET_NO_ADDRESS_AVAILABLE(endpoint.getPortName())); } return address; }
Example #29
Source File: HttpAdapter.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public DocumentAddressResolver getDocumentAddressResolver( PortAddressResolver portAddressResolver) { final String address = portAddressResolver.getAddressFor(endpoint.getServiceName(), endpoint.getPortName().getLocalPart()); assert address != null; return new DocumentAddressResolver() { @Override public String getRelativeAddressFor(@NotNull SDDocument current, @NotNull SDDocument referenced) { // the map on endpoint should account for all SDDocument assert revWsdls.containsKey(referenced); return address+'?'+ revWsdls.get(referenced); } }; }
Example #30
Source File: ServerConnectionImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public @NotNull String getEPRAddress(Packet request, WSEndpoint endpoint) { //return WSHttpHandler.getRequestAddress(httpExchange); PortAddressResolver resolver = adapter.owner.createPortAddressResolver(getBaseAddress(), endpoint.getImplementationClass()); String address = resolver.getAddressFor(endpoint.getServiceName(), endpoint.getPortName().getLocalPart()); if(address==null) throw new WebServiceException(WsservletMessages.SERVLET_NO_ADDRESS_AVAILABLE(endpoint.getPortName())); return address; }