inputSource = loc.getImportInputSource(contextURI, locationURI); String liu = loc.getLatestImportURI(); ? loc.getLatestImportURI() : (url != null) ? url.toString() ? loc.getLatestImportURI() : (url != null) ? url.toString()
InputSource is = locator.getBaseInputSource(); String base = locator.getBaseURI(); this.loc.close(); this.loc = null;
/** * Read the specified <wsdl:definitions> element into a WSDL * definition. The WSDLLocator is used to provide the document * base URIs. The InputSource of the WSDLLocator is ignored, instead * the WSDL is parsed from the given Element. * * @param locator A WSDLLocator object used to provide * the document base URI of the WSDL definition described by the * element. * @param definitionsElement the <wsdl:definitions> element * @return the definition described by the element. */ public Definition readWSDL(WSDLLocator locator, Element definitionsElement) throws WSDLException { try { this.loc = locator; return readWSDL(locator.getBaseURI(), definitionsElement, null); } finally { locator.close(); this.loc = null; } }
public void close() { if (!fromParent) { try { if (last.getByteStream() != null) { last.getByteStream().close(); } } catch (IOException e) { //ignore } } parent.close(); }
public InputSource getImportInputSource(String parentLocation, String importLocation) { InputSource src = parent.getImportInputSource(parentLocation, importLocation); lastImport = null; if (src == null || (src.getByteStream() == null && src.getCharacterStream() == null)) { src = getInputSource(parentLocation, importLocation); if (src != null) { lastImport = src.getSystemId(); } } return src; }
public String getLatestImportURI() { if (lastImport != null) { return lastImport; } return parent.getLatestImportURI(); }
/** * sets a custom WSDL locator * * @param customResolver */ public void setCustomWSDLResolver(WSDLLocator customResolver) { this.customWSDLResolver = customResolver; setDocumentBaseUri(this.customWSDLResolver.getBaseURI()); }
public InputSource getBaseInputSource() { InputSource is = parent.getBaseInputSource(); fromParent = true; if (is == null) { is = getInputSource(); fromParent = false; } else { baseUri = is.getSystemId(); } last = is; return is; }
/** * Read the specified <wsdl:definitions> element into a WSDL * definition. The WSDLLocator is used to provide the document * base URIs. The InputSource of the WSDLLocator is ignored, instead * the WSDL is parsed from the given Element. * * @param locator A WSDLLocator object used to provide * the document base URI of the WSDL definition described by the * element. * @param definitionsElement the <wsdl:definitions> element * @return the definition described by the element. */ public Definition readWSDL(WSDLLocator locator, Element definitionsElement) throws WSDLException { try { this.loc = locator; return readWSDL(locator.getBaseURI(), definitionsElement, null); } finally { locator.close(); this.loc = null; } }
public void close() { if (!fromParent) { try { if (last.getByteStream() != null) { last.getByteStream().close(); } } catch (IOException e) { //ignore } } parent.close(); }
public InputSource getImportInputSource(String parentLocation, String importLocation) { InputSource src = parent.getImportInputSource(parentLocation, importLocation); lastImport = null; if (src == null || (src.getByteStream() == null && src.getCharacterStream() == null)) { src = getInputSource(parentLocation, importLocation); if (src != null) { lastImport = src.getSystemId(); } } return src; }
public String getLatestImportURI() { if (lastImport != null) { return lastImport; } return parent.getLatestImportURI(); }
/** * sets a custom WSDL locator * * @param customResolver */ public void setCustomWSDLResolver(WSDLLocator customResolver) { this.customWSDLResolver = customResolver; setDocumentBaseUri(this.customWSDLResolver.getBaseURI()); }
public InputSource getBaseInputSource() { InputSource is = parent.getBaseInputSource(); fromParent = true; if (is == null) { is = getInputSource(); fromParent = false; } else { baseUri = is.getSystemId(); } last = is; return is; }
inputSource = loc.getImportInputSource( schema.getDocumentBaseURI(), schemaRef.getSchemaLocationURI()); + schema.getDocumentBaseURI() + "'"); location = loc.getLatestImportURI();
InputSource is = locator.getBaseInputSource(); String base = locator.getBaseURI(); this.loc.close(); this.loc = null;
/** * Read the specified <wsdl:definitions> element into a WSDL * definition. The WSDLLocator is used to provide the document * base URIs. The InputSource of the WSDLLocator is ignored, instead * the WSDL is parsed from the given Element. * * @param locator A WSDLLocator object used to provide * the document base URI of the WSDL definition described by the * element. * @param definitionsElement the <wsdl:definitions> element * @return the definition described by the element. */ public Definition readWSDL(WSDLLocator locator, Element definitionsElement) throws WSDLException { try { this.loc = locator; return readWSDL(locator.getBaseURI(), definitionsElement, null); } finally { locator.close(); this.loc = null; } }
public void close() { if (!fromParent) { try { if (last.getByteStream() != null) { last.getByteStream().close(); } } catch (IOException e) { //ignore } } parent.close(); }
public InputSource getImportInputSource(String parentLocation, String importLocation) { InputSource src = parent.getImportInputSource(parentLocation, importLocation); lastImport = null; if (src == null || (src.getByteStream() == null && src.getCharacterStream() == null)) { src = getInputSource(parentLocation, importLocation); if (src != null) { lastImport = src.getSystemId(); } } return src; }
public String getLatestImportURI() { if (lastImport != null) { return lastImport; } return parent.getLatestImportURI(); }