コード例 #1
0
ファイル: GatewayEngineImpl.java プロジェクト: Fusegrid/railo
 /**
  * send the message to the gateway
  *
  * @param gatewayId
  * @param data
  * @return
  * @throws PageException
  */
 public String sendMessage(String gatewayId, Struct data) throws PageException, GatewayException {
   Gateway g = getGateway(gatewayId);
   if (g.getState() != Gateway.RUNNING)
     throw new GatewayException("Gateway [" + gatewayId + "] is not running");
   return g.sendMessage(data);
 }