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

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

Introduction

In this page you can find the example usage for org.springframework.web.context.request WebRequest 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

@ExceptionHandler(MaxUploadSizeExceededException.class)
public String handleMaxUploadSizeExceededException(final MaxUploadSizeExceededException e, WebRequest request) {
    logger.warn("Uploaded file to big from {}: ", request.getRemoteUser(), e);
    return fileUploadResponseFactory.createJsonErrorResponse(MessageKey.UPLOADED_FILE_TOO_LARGE);
}