Search in sources :

Example 1 with EmbeddedOutputStream

use of org.exist.protocolhandler.embedded.EmbeddedOutputStream 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;
}
Also used : XmldbURL(org.exist.protocolhandler.xmldb.XmldbURL) OutputStream(java.io.OutputStream) EmbeddedOutputStream(org.exist.protocolhandler.embedded.EmbeddedOutputStream) XmlrpcOutputStream(org.exist.protocolhandler.xmlrpc.XmlrpcOutputStream) EmbeddedOutputStream(org.exist.protocolhandler.embedded.EmbeddedOutputStream) XmlrpcOutputStream(org.exist.protocolhandler.xmlrpc.XmlrpcOutputStream)

Aggregations

OutputStream (java.io.OutputStream)1 EmbeddedOutputStream (org.exist.protocolhandler.embedded.EmbeddedOutputStream)1 XmldbURL (org.exist.protocolhandler.xmldb.XmldbURL)1 XmlrpcOutputStream (org.exist.protocolhandler.xmlrpc.XmlrpcOutputStream)1