Examples of asOutputStream()


Examples of org.apache.mina.core.buffer.IoBuffer.asOutputStream()

            + "lns=\"\">action</negotiatedParams></openChannelResponse></s:Body></s:Envelope>";
        SoapTcpMessage soapTcpMessage = SoapTcpMessage.createSoapTcpMessage(response, 0);
        IoBuffer buffer = IoBuffer.allocate(512);
        buffer.setAutoExpand(true);
        try {
            SoapTcpUtils.writeSoapTcpMessage(buffer.asOutputStream(), soapTcpMessage);
        } catch (IOException e) {
            e.printStackTrace();
        }
        buffer.flip();
        session.write(buffer);
View Full Code Here

Examples of org.apache.mina.core.buffer.IoBuffer.asOutputStream()

            + "XMLSchema\"/></s:Body></s:Envelope>";
        SoapTcpMessage soapTcpMessage = SoapTcpMessage.createSoapTcpMessage(response, 0);
        IoBuffer buffer = IoBuffer.allocate(512);
        buffer.setAutoExpand(true);
        try {
            SoapTcpUtils.writeSoapTcpMessage(buffer.asOutputStream(), soapTcpMessage);
        } catch (IOException e) {
            e.printStackTrace();
        }
        buffer.flip();
        session.write(buffer);
View Full Code Here

Examples of org.apache.mina.core.buffer.IoBuffer.asOutputStream()

        SoapTcpChannel channel = exchange.getInMessage().getContent(SoapTcpChannel.class);
        String message = new String(baos.toByteArray());
        SoapTcpMessage soapTcpMessage = SoapTcpMessage.createSoapTcpMessage(message, channel.getChannelId());
        IoBuffer buffer = IoBuffer.allocate(512);
        buffer.setAutoExpand(true);
        SoapTcpUtils.writeSoapTcpMessage(buffer.asOutputStream(), soapTcpMessage);
        buffer.flip();
        session.write(buffer);
    }
}
View Full Code Here

Examples of org.apache.mina.core.buffer.IoBuffer.asOutputStream()

            + "XMLSchema\"/></s:Body></s:Envelope>";
        SoapTcpMessage soapTcpMessage = SoapTcpMessage.createSoapTcpMessage(response, 0);
        IoBuffer buffer = IoBuffer.allocate(512);
        buffer.setAutoExpand(true);
        try {
            SoapTcpUtils.writeSoapTcpMessage(buffer.asOutputStream(), soapTcpMessage);
        } catch (IOException e) {
            e.printStackTrace();
        }
        buffer.flip();
        session.write(buffer);
View Full Code Here

Examples of org.apache.mina.core.buffer.IoBuffer.asOutputStream()

            + "lns=\"\">action</negotiatedParams></openChannelResponse></s:Body></s:Envelope>";
        SoapTcpMessage soapTcpMessage = SoapTcpMessage.createSoapTcpMessage(response, 0);
        IoBuffer buffer = IoBuffer.allocate(512);
        buffer.setAutoExpand(true);
        try {
            SoapTcpUtils.writeSoapTcpMessage(buffer.asOutputStream(), soapTcpMessage);
        } catch (IOException e) {
            e.printStackTrace();
        }
        buffer.flip();
        session.write(buffer);
View Full Code Here

Examples of org.apache.mina.core.buffer.IoBuffer.asOutputStream()

            + "XMLSchema\"/></s:Body></s:Envelope>";
        SoapTcpMessage soapTcpMessage = SoapTcpMessage.createSoapTcpMessage(response, 0);
        IoBuffer buffer = IoBuffer.allocate(512);
        buffer.setAutoExpand(true);
        try {
            SoapTcpUtils.writeSoapTcpMessage(buffer.asOutputStream(), soapTcpMessage);
        } catch (IOException e) {
            e.printStackTrace();
        }
        buffer.flip();
        session.write(buffer);
View Full Code Here

Examples of org.apache.mina.core.buffer.IoBuffer.asOutputStream()

    }

    try {
      IoBuffer buf = IoBuffer.allocate(input.available());
      try {
        ServletUtils.copy(input, buf.asOutputStream());
        buf.flip();
        Input in = new Input(buf);
        String className = Deserializer.deserialize(in, String.class);
        if (result == null) {
          // we need to create the object first
View Full Code Here

Examples of org.apache.mina.core.buffer.IoBuffer.asOutputStream()

      log.debug("Path 2: {}", path);
      int reqContentLength = req.getContentLength();
      if (reqContentLength > 0) {
        log.debug("Request content length: {}", reqContentLength);
        IoBuffer reqBuffer = IoBuffer.allocate(reqContentLength);
        ServletUtils.copy(req, reqBuffer.asOutputStream());
        reqBuffer.flip();
        post.setEntity(new InputStreamEntity(reqBuffer.asInputStream(), reqContentLength));
        post.addHeader("Content-Type", REQUEST_TYPE);
        // get.setPath(path);
        post.addHeader("Tunnel-request", path);
View Full Code Here

Examples of org.apache.mina.core.buffer.IoBuffer.asOutputStream()

  protected void skipData(HttpServletRequest req) throws IOException {
    log.trace("skipData {}", req);
    int length = req.getContentLength();
    log.trace("Skipping {} bytes", length);
    IoBuffer data = IoBuffer.allocate(length);
    ServletUtils.copy(req, data.asOutputStream());
    data.flip();
    data.free();
    data = null;
    log.trace("Skipped {} bytes", length);
  }
View Full Code Here

Examples of org.apache.mina.core.buffer.IoBuffer.asOutputStream()

    if (conn != null) {
      // put the received data in a ByteBuffer
      int length = req.getContentLength();
      log.trace("Request content length: {}", length);
      final IoBuffer data = IoBuffer.allocate(length);
      ServletUtils.copy(req, data.asOutputStream());
      data.flip();
      // decode the objects in the data
      final List<?> messages = conn.decode(data);
      // clear the buffer
      data.free();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.