Example usage for org.springframework.messaging.handler.invocation InvocableHandlerMethod getShortLogMessage

List of usage examples for org.springframework.messaging.handler.invocation InvocableHandlerMethod getShortLogMessage

Introduction

In this page you can find the example usage for org.springframework.messaging.handler.invocation InvocableHandlerMethod getShortLogMessage.

Prototype

public String getShortLogMessage() 

Source Link

Document

Return a short representation of this handler method for log message purposes.

Usage

From source file:org.springframework.messaging.handler.invocation.AbstractMethodMessageHandler.java

protected void processHandlerMethodException(HandlerMethod handlerMethod, Exception ex, Message<?> message) {
    InvocableHandlerMethod invocable = getExceptionHandlerMethod(handlerMethod, ex);
    if (invocable == null) {
        logger.error("Unhandled exception from message handler method", ex);
        return;//  w w  w.  j a va 2s. com
    }
    invocable.setMessageMethodArgumentResolvers(this.argumentResolvers);
    if (logger.isDebugEnabled()) {
        logger.debug("Invoking " + invocable.getShortLogMessage());
    }
    try {
        Object returnValue = invocable.invoke(message, ex, handlerMethod);
        MethodParameter returnType = invocable.getReturnType();
        if (void.class == returnType.getParameterType()) {
            return;
        }
        this.returnValueHandlers.handleReturnValue(returnValue, returnType, message);
    } catch (Throwable ex2) {
        logger.error("Error while processing handler method exception", ex2);
    }
}