Examples of ResultMessage


Examples of org.apache.mina.examples.sumup.message.ResultMessage

        super( Constants.RESULT );
    }

    protected void encodeBody( ProtocolSession session, AbstractMessage message, ByteBuffer out )
    {
        ResultMessage m = ( ResultMessage ) message;
        if( m.isOk() )
        {
            out.putShort( ( short ) Constants.RESULT_OK );
            out.putInt( m.getValue() );
        }
        else
        {
            out.putShort( ( short ) Constants.RESULT_ERROR );
        }
View Full Code Here

Examples of org.graylog2.indexer.results.ResultMessage

          LOG.error("Missing parameters. Returning HTTP 400.");
          throw new WebApplicationException(400);
        }
        checkPermission(RestPermissions.MESSAGES_READ, messageId);
    try {
            ResultMessage resultMessage = messages.get(messageId, index);
            Message message = new Message(resultMessage.getMessage());
            checkMessageReadPermission(message);

            return json(resultMessage);
    } catch (IndexMissingException e) {
          LOG.error("Index {} does not exist. Returning HTTP 404.", e.index().name());
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.