Examples of Hessian2Output


Examples of com.caucho.hessian.io.Hessian2Output

  public AbstractHessianOutput getHessianOutput(OutputStream os)
  {
    AbstractHessianOutput out;

    if (_isHessian2Request)
      out = new Hessian2Output(os);
    else {
      HessianOutput out1 = new HessianOutput(os);
      out = out1;

      if (_isHessian2Reply)
View Full Code Here

Examples of com.caucho.hessian.io.Hessian2Output

    StoreConnection conn = null;
   
    try {
      TempOutputStream os = new TempOutputStream();
     
      Hessian2Output out = new Hessian2Output(os);
      out.writeObject(payload);
      out.close();
   
      conn = getConnection();

      PreparedStatement sendStmt = conn.prepareSend();
View Full Code Here

Examples of com.caucho.hessian.io.Hessian2Output

     
      SelfEncryptedCookie cookieObj
  = new SelfEncryptedCookie(cookie, createTime);

      TempOutputStream tos = new TempOutputStream();
      Hessian2Output hOut = new Hessian2Output(tos);

      hOut.writeObject(cookieObj);

      hOut.close();

      TempOutputStream cipherOut = new TempOutputStream();
      CipherOutputStream cOut
  = new CipherOutputStream(cipherOut, cipher);
View Full Code Here

Examples of com.caucho.hessian.io.Hessian2Output

      dOut = new HessianDebugOutputStream(_os, log, Level.FINEST);
      dOut.startStreaming();
      _os = dOut;
    }
     
    _out = new Hessian2Output(_os);
  }
View Full Code Here

Examples of com.caucho.hessian.io.Hessian2Output

   * Sends a message to a given jid
   */
  public void message(String to, String from, Serializable value)
  {
    try {
      Hessian2Output out = _out;

      if (out != null) {
        if (log.isLoggable(Level.FINER)) {
          log.finer(this + " message " + value
                    + " {to:" + to + ", from:" + from + "}");
        }

        synchronized (out) {
          out.startPacket();
          out.writeInt(HmtpPacketType.MESSAGE.ordinal());
          out.writeString(to);
          out.writeString(from);
          out.writeObject(value);
          out.endPacket();
 
          if (_isAutoFlush)
            out.flush();
        }
      }
    } catch (IOException e) {
      close();
     
View Full Code Here

Examples of com.caucho.hessian.io.Hessian2Output

         String from,
         Serializable value,
         ActorError error)
  {
    try {
      Hessian2Output out = _out;

      if (out != null) {
  if (log.isLoggable(Level.FINER)) {
    log.finer(this + " messageError " + value
        + " {to:" + to + ", from:" + from + "}");
  }

  synchronized (out) {
    out.startPacket();
    out.writeInt(HmtpPacketType.MESSAGE_ERROR.ordinal());
    out.writeString(to);
    out.writeString(from);
    out.writeObject(value);
    out.writeObject(error);
    out.endPacket();
 
    if (_isAutoFlush)
      out.flush();
  }
      }
    } catch (IOException e) {
      close();
     
View Full Code Here

Examples of com.caucho.hessian4.io.Hessian2Output

  public AbstractHessianOutput getHessianOutput(OutputStream os)
  {
    AbstractHessianOutput out;

    if (_isHessian2Request)
      out = new Hessian2Output(os);
    else {
      HessianOutput out1 = new HessianOutput(os);
      out = out1;

      if (_isHessian2Reply)
View Full Code Here

Examples of com.caucho.hessian4.io.Hessian2Output

      out = new HessianOutput(os);
      break;

    case CALL_1_REPLY_2:
      in = new HessianInput(is);
      out = new Hessian2Output(os);
      break;

    case HESSIAN_2:
      in = new Hessian2Input(is);
      in.readCall();
      out = new Hessian2Output(os);
      break;

    default:
      throw new IllegalStateException(header + " is an unknown Hessian call");
    }
View Full Code Here

Examples of org.rzo.netty.ahessian.rpc.io.Hessian2Output

  {
    _hasSessionFilter = ctx.getPipeline().getContext(ClientSessionFilter.class) != null;
    if (hOut == null)
    {
    OutputStream out = (OutputStream) ctx.getPipeline().getContext(OutputStreamEncoder.class).getAttachment();
    hOut = new Hessian2Output(out);
      hOut.getSerializerFactory().addFactory(sFactory);
    }
    else
      hOut.reset();
    ctx.sendUpstream(e);
View Full Code Here

Examples of org.rzo.netty.ahessian.rpc.io.Hessian2Output

    return new Hessian2Input(is);
  }

  public AbstractHessianOutput getHessian2Output(OutputStream out)
  {
    Hessian2Output out2 = new Hessian2Output(out);
    out2.setSerializerFactory(_factory.getSerializerFactory());
    return out2;
  }
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.