Example usage for org.springframework.web.context.request NativeWebRequest getRemoteUser

List of usage examples for org.springframework.web.context.request NativeWebRequest getRemoteUser

Introduction

In this page you can find the example usage for org.springframework.web.context.request NativeWebRequest getRemoteUser.

Prototype

@Nullable
String getRemoteUser();

Source Link

Document

Return the remote user for this request, if any.

Usage

From source file:org.wte4j.ui.server.services.RestExceptionHandler.java

@Order(Ordered.LOWEST_PRECEDENCE)
@ExceptionHandler(RuntimeException.class)
public String handleRuntimeException(final RuntimeException e, NativeWebRequest request) {
    logger.error("error on processing request from {} ", request.getRemoteUser(), e);
    return fileUploadResponseFactory.createJsonErrorResponse(MessageKey.INTERNAL_SERVER_ERROR);
}