use of org.exist.protocolhandler.xmldb.XmldbURL in project exist by eXist-db.
the class EmbeddedURLConnection method getInputStream.
@Override
public InputStream getInputStream() throws IOException {
if (LOG.isDebugEnabled()) {
LOG.debug(url);
}
final XmldbURL xmldbURL = new XmldbURL(url);
final InputStream inputstream;
if (xmldbURL.isEmbedded()) {
inputstream = new EmbeddedInputStream(xmldbURL);
} else {
inputstream = new XmlrpcInputStream(threadGroup, xmldbURL);
}
return inputstream;
}
use of org.exist.protocolhandler.xmldb.XmldbURL in project exist by eXist-db.
the class EmbeddedURLConnection method getOutputStream.
@Override
public OutputStream getOutputStream() throws IOException {
if (LOG.isDebugEnabled()) {
LOG.debug(url);
}
final XmldbURL xmldbURL = new XmldbURL(url);
final OutputStream outputstream;
if (xmldbURL.isEmbedded()) {
outputstream = new EmbeddedOutputStream(xmldbURL);
} else {
outputstream = new XmlrpcOutputStream(threadGroup, xmldbURL);
}
return outputstream;
}
Aggregations