Package etch.bindings.java.msg

Examples of etch.bindings.java.msg.Message


   
    lengthBudget = buf.avail();
   
    try
    {
      Message msg = startMessage();
      readKeysAndValues( msg );
      endMessage( msg );
      return msg;
    }
    finally
View Full Code Here


          version, VERSION ) );
   
    Type t = readType();
    int length = readLength();
   
    return new Message( t, vf, length );
  }
View Full Code Here

   * @param type the type of the message.
   * @return a new message
   */
  public final Message _newMessage( Type type )
  {
    return new Message( type, _vf );
  }
View Full Code Here

      password = (String) session.sessionQuery( PASSWORD );
      if (password == null)
        throw new IllegalStateException( "PwAuth: password == null" );
    }
   
    Message msg = new Message( mt_request, vf );
    msg.put( mf_user, user );
    msg.put( mf_password, password );
    transport.transportMessage( null, msg );
  }
View Full Code Here

  }
 
  private void sendPwAuthResp( Who recipient, Message msg, boolean result, String status )
    throws Exception
  {
    Message rmsg = msg.reply();
    rmsg.put( mf_ok, result );
    rmsg.put( mf_status, status );
    transport.transportMessage( recipient, rmsg );
  }
View Full Code Here

    stack.push( te );
    elementList.push( te.getChildren() );
   
    Integer id = te.getIntAttr( null, STRUCT_TYPE_ATTR );
    Type type = vf.getType( id );
    return new Message( type, vf );
  }
View Full Code Here

    {
      int timeout = disableTimeout ? 0 : responseType.getTimeout();
      Mailbox.Element mbe = mb.read( timeout);
      if (mbe == null)
        throw new TimeoutException( "timeout waiting for "+responseType );
      Message rmsg = mbe.msg;
      rmsg.checkType( responseType );
      Object r = rmsg.get( responseType.getResponseField() );
      if (r instanceof Exception)
      {
        Exception e = (Exception) r;
        e.fillInStackTrace();
        throw e;
View Full Code Here

    }
  }
 
  private void sendKeepAliveReq()
  {
    Message msg = new Message( mt_request, vf );
    msg.put( mf_delay, delay );
    msg.put( mf_count, count );
    try
    {
//      Log.report( "SendKeepAliveReq", "msg", msg );
      transport.transportMessage( null, msg );
    }
View Full Code Here

    }
  }
 
  private void sendKeepAliveResp( Message msg )
  {
    Message rmsg = msg.reply();
    try
    {
//      Log.report( "SendKeepAliveResp", "rmsg", rmsg );
      transport.transportMessage( null, rmsg );
    }
View Full Code Here

    public void sessionPacket( Who sender, FlexBuffer buf ) throws Exception
  {
    // messagize the packet.
   
    Message msg = tdi.readMessage( buf );
//    Log.report( "Messagizer.packet", "who", this, "recv", msg );
    boolean handled = session.sessionMessage( sender, msg );
    if (!handled)
      session.sessionNotify( new UnwantedMessage( sender, msg ) );
  }
View Full Code Here

TOP

Related Classes of etch.bindings.java.msg.Message

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.