com.sun.xml.internal.ws.api.server.DocumentAddressResolver Java Examples
The following examples show how to use
com.sun.xml.internal.ws.api.server.DocumentAddressResolver.
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 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 #3
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 #4
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 #5
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 #6
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 #7
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 #8
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 #9
Source File: HttpAdapter.java From TencentKona-8 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 #10
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 #11
Source File: HttpAdapter.java From openjdk-jdk8u 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 #12
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 #13
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 #14
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 #15
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 #16
Source File: HttpAdapter.java From openjdk-8 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); } }; }