Examples of Reply


Examples of ch.softappeal.yass.core.remote.Reply

    while (true) {
      if (Thread.interrupted()) {
        return requestInterrupted(requestNumber);
      }
      try {
        final Reply reply = replyQueue.poll(100L, TimeUnit.MILLISECONDS);
        if (reply != null) {
          return reply;
        } else if (closed.get()) {
          throw new SessionClosedException();
        }
View Full Code Here

Examples of cn.iver.model.Reply

        render("/reply/_reply.html");
    }

    @Before({LoginInterceptor.class, ReplyValidator.class})
    public void save(){
        Reply reply = getModel(Reply.class).set("userID", getSessionAttr("userID"));
        int postID = reply.getInt("postID");
        reply.mySave(postID);
        forwardAction("/reply/" + postID + "-0");
    }
View Full Code Here

Examples of com.alexgilleran.icesoap.parser.test.xmlclasses.Reply

  @Test
  public void testCrappyLists() throws XMLParsingException, ParseException {
    IceSoapParser<Reply> parser = new IceSoapParserImpl<Reply>(Reply.class);

    Reply reply = parser.parse(SampleXml.getCrappyList());

    assertEquals(0, reply.exitTo);
    assertEquals(new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss.sss").parse("2012-11-29T15:22:17.927"), reply.reqTime);
    assertEquals("USER_1", reply.users.get(0).name);
    assertEquals("USER_2", reply.users.get(1).name);
View Full Code Here

Examples of it.hakvoort.neuroclient.reply.Reply

    return executeCommand(Command.HELLO);
  }

  @Override
  public Reply close() {
    Reply reply = executeCommand(Command.CLOSE);

    connection.disconnect();
    connection.removeInputListener(this);

    return reply;
View Full Code Here

Examples of org.apache.sshd.sftp.Reply

    /**
     * {@inheritDoc}
     */
  public Reply beforeCommand(final SftpSession session, final Request sftpRequest) {
    Reply reply = null;
    for (Sftplet sftpLet : sftpLetList) {
      reply = sftpLet.beforeCommand(session, sftpRequest);
    }
    return reply;
  }
View Full Code Here

Examples of org.apache.sshd.sftp.Reply

    /**
     * {@inheritDoc}
     */
  public Reply afterCommand(final SftpSession session, final Request sftpRequest, final Reply sftpReply)
      throws IOException {
    Reply reply = sftpReply;
    for (Sftplet sftpLet : sftpLetList) {
      reply = sftpLet.afterCommand(session, sftpRequest, reply);
    }
    return reply;
  }
View Full Code Here

Examples of org.directwebremoting.extend.Reply

            Replies replies = remoter.execute(calls);

            // There will only be one of these while JSON mode does not do batching
            for (int i = 0; i < replies.getReplyCount(); i++)
            {
                Reply reply = replies.getReply(i);

                try
                {
                    // The existence of a throwable indicates that something went wrong
                    if (reply.getThrowable() != null)
                    {
                        Throwable ex = reply.getThrowable();
                        writeData(out, ex, callback);

                        log.warn("--Erroring: message[" + ex.toString() + ']');
                    }
                    else
                    {
                        Object data = reply.getReply();
                        writeData(out, data, callback);
                    }
                }
                catch (Exception ex)
                {
View Full Code Here

Examples of org.directwebremoting.extend.Reply

        out.println(ProtocolConstants.SCRIPT_CALL_REPLY);

        String batchId = replies.getCalls().getBatchId();
        for (int i = 0; i < replies.getReplyCount(); i++)
        {
            Reply reply = replies.getReply(i);
            String callId = reply.getCallId();

            try
            {
                // The existence of a throwable indicates that something went wrong
                if (reply.getThrowable() != null)
                {
                    Throwable ex = reply.getThrowable();
                    ScriptBuffer script = EnginePrivate.getRemoteHandleExceptionScript(batchId, callId, ex);
                    conduit.addScript(script);
                    // TODO: Are there any reasons why we should be logging here (and in the ConversionException handler)
                    //log.warn("--Erroring: batchId[" + batchId + "] message[" + ex.toString() + ']'), ex;
                }
                else
                {
                    Object data = reply.getReply();
                    ScriptBuffer script = EnginePrivate.getRemoteHandleCallbackScript(batchId, callId, data);
                    conduit.addScript(script);
                }
            }
            catch (IOException ex)
View Full Code Here

Examples of org.directwebremoting.extend.Reply

            throw new SecurityException("Call count for batch is too high");
        }

        for (Call call : calls)
        {
            Reply reply = execute(call);
            replies.addReply(reply);
        }

        return replies;
    }
View Full Code Here

Examples of org.directwebremoting.extend.Reply

            MethodDeclaration method = call.getMethodDeclaration();

            // Do we already have an error?
            if (method == null || call.getException() != null)
            {
                return new Reply(call.getCallId(), null, call.getException());
            }

            // We don't need to check accessControl.getReasonToNotExecute()
            // because the checks are made by the doExec method, but we do check
            // if we can display it
            accessControl.assertGeneralExecutionIsPossible(call.getScriptName(), method);

            // Log the call details if the accessLogLevel is call.
            if (AccessLogLevel.getValue(this.accessLogLevel, debug).hierarchy() == 0)
            {
                StringBuffer buffer = new StringBuffer();
                buffer.append("Exec: ")
                      .append(call.getScriptName())
                      .append(".")
                      .append(call.getMethodDeclaration().toString());

                buffer.append(", ");
                buffer.append("id=");
                buffer.append(call.getCallId());

                Loggers.ACCESS.info(buffer.toString());
            }

            Object reply = module.executeMethod(method, call.getParameters());

            return new Reply(call.getCallId(), reply);
        }
        catch (SecurityException ex)
        {
            writeExceptionToAccessLog(ex);
            // If we are in live mode, then we don't even say what went wrong
            if (debug)
            {
                return new Reply(call.getCallId(), null, ex);
            }
            else
            {
                return new Reply(call.getCallId(), null, new SecurityException());
            }
        }
        catch (InvocationTargetException ex)
        {
            // Allow Jetty RequestRetry exception to propagate to container
            Continuation.rethrowIfContinuation(ex);
            writeExceptionToAccessLog(ex.getTargetException());
            return new Reply(call.getCallId(), null, ex.getTargetException());
        }
        catch (Exception ex)
        {
            // Allow Jetty RequestRetry exception to propagate to container
            Continuation.rethrowIfContinuation(ex);
            writeExceptionToAccessLog(ex);
            return new Reply(call.getCallId(), null, ex);
        }
    }
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.