/** * Copies the input stream to the output stream * * @param stream the <code>InputStream</code> * @param ostream the <code>OutputStream</code> */ public static void copy(InputStream stream, OutputStream ostream) throws IOException { IOUtils.copy(stream, ostream, false); }
/** * Copies the input stream to the output stream * * @param stream the <code>InputStream</code> * @param ostream the <code>OutputStream</code> */ public static void copy(InputStream stream, OutputStream ostream) throws IOException { IOUtils.copy(stream, ostream, false); }
public void processExplicitSchemaAndWSDL(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException { HashMap<String, AxisService> services = configContext.getAxisConfiguration().getServices(); String filePart = req.getRequestURL().toString(); String schema = filePart.substring(filePart.lastIndexOf("/") + 1, filePart.length()); if ((services != null) && !services.isEmpty()) { Iterator<AxisService> i = services.values().iterator(); while (i.hasNext()) { AxisService service = (AxisService) i.next(); InputStream stream = HTTPTransportUtils.getMetaInfResourceAsStream(service, schema); if (stream != null) { OutputStream out = res.getOutputStream(); res.setContentType("text/xml"); IOUtils.copy(stream, out, true); return; } } } }
public void processExplicitSchemaAndWSDL(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException { HashMap<String, AxisService> services = configContext.getAxisConfiguration().getServices(); String filePart = req.getRequestURL().toString(); String schema = filePart.substring(filePart.lastIndexOf("/") + 1, filePart.length()); if ((services != null) && !services.isEmpty()) { Iterator<AxisService> i = services.values().iterator(); while (i.hasNext()) { AxisService service = (AxisService) i.next(); InputStream stream = HTTPTransportUtils.getMetaInfResourceAsStream(service, schema); if (stream != null) { OutputStream out = res.getOutputStream(); res.setContentType("text/xml"); IOUtils.copy(stream, out, true); return; } } } }
DeploymentConstants.META_INF + "/" + wsdl); if (in != null) { IOUtils.copy(in, out, true); } else {
DeploymentConstants.META_INF + "/" + wsdl); if (in != null) { IOUtils.copy(in, out, true); } else {
DeploymentConstants.META_INF + "/" + xsd); if (in != null) { IOUtils.copy(in, out, true); } else {
DeploymentConstants.META_INF + "/" + xsd); if (in != null) { IOUtils.copy(in, out, true); } else {