Package com.caucho.burlap.io

Examples of com.caucho.burlap.io.BurlapOutput


{
   private final BurlapOutput output;

   BurlapCauchoOutput(OutputStream stream)
   {
      this.output = new BurlapOutput();
      output.setSerializerFactory(new JMXSerializerFactory());
      output.init(stream);
   }
View Full Code Here


      throw new HttpRequestMethodNotSupportedException("POST",
          "BurlapServiceExporter only supports POST requests");
    }

    BurlapInput in = new BurlapInput(request.getInputStream());
    BurlapOutput out = new BurlapOutput(response.getOutputStream());
    try {
      this.skeleton.invoke(in, out);
    }
    catch (Throwable ex) {
      throw new NestedServletException("Burlap skeleton invocation failed", ex);
View Full Code Here

   */
  public void invoke(InputStream inputStream, OutputStream outputStream) throws Throwable {
    Assert.notNull(this.skeleton, "Burlap exporter has not been initialized");
    ClassLoader originalClassLoader = overrideThreadContextClassLoader();
    try {
      this.skeleton.invoke(new BurlapInput(inputStream), new BurlapOutput(outputStream));
    }
    finally {
      resetThreadContextClassLoader(originalClassLoader);
    }
  }
View Full Code Here

    try {
      InputStream is = request.getInputStream();
      OutputStream os = response.getOutputStream();

      BurlapInput in = new BurlapInput(is);
      BurlapOutput out = new BurlapOutput(os);

      _skeleton.invoke(in, out);
    } catch (RuntimeException e) {
      throw e;
    } catch (ServletException e) {
View Full Code Here

    return in;
  }

  public BurlapOutput getBurlapOutput(OutputStream os)
  {
    BurlapOutput out = new BurlapOutput(os);

    return out;
  }
View Full Code Here

  os = conn.getOutputStream();
      } catch (Exception e) {
  throw new BurlapRuntimeException(e);
      }

      BurlapOutput out = _factory.getBurlapOutput(os);

      if (! _factory.isOverloadEnabled()) {
      }
      else if (args != null)
        methodName = methodName + "__" + args.length;
      else
        methodName = methodName + "__0";

      out.call(methodName, args);

      try {
  os.flush();
      } catch (Exception e) {
  throw new BurlapRuntimeException(e);
View Full Code Here

   */
  public void invoke(InputStream inputStream, OutputStream outputStream) throws Throwable {
    Assert.notNull(this.skeleton, "Burlap exporter has not been initialized");
    ClassLoader originalClassLoader = overrideThreadContextClassLoader();
    try {
      this.skeleton.invoke(new BurlapInput(inputStream), new BurlapOutput(outputStream));
    }
    finally {
      try {
        inputStream.close();
      }
View Full Code Here

  os = conn.getOutputStream();
      } catch (Exception e) {
  throw new BurlapRuntimeException(e);
      }

      BurlapOutput out = _factory.getBurlapOutput(os);

      if (! _factory.isOverloadEnabled()) {
      }
      else if (args != null)
        methodName = methodName + "__" + args.length;
      else
        methodName = methodName + "__0";

      if (log.isLoggable(Level.FINE))
  log.fine(this + " calling " + methodName + " (" + method + ")");

      out.call(methodName, args);

      try {
  os.flush();
      } catch (Exception e) {
  throw new BurlapRuntimeException(e);
View Full Code Here

    try {
      InputStream is = request.getInputStream();
      OutputStream os = response.getOutputStream();

      BurlapInput in = new BurlapInput(is);
      BurlapOutput out = new BurlapOutput(os);

      _skeleton.invoke(in, out);
    } catch (RuntimeException e) {
      throw e;
    } catch (ServletException e) {
View Full Code Here

    return in;
  }

  public BurlapOutput getBurlapOutput(OutputStream os)
  {
    BurlapOutput out = new BurlapOutput(os);

    return out;
  }
View Full Code Here

TOP

Related Classes of com.caucho.burlap.io.BurlapOutput

Copyright © 2018 www.massapicom. 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.