Skip to content

io microsphere spring webflux context request ServerWebRequest

github-actions[bot] edited this page Jun 22, 2026 · 19 revisions

ServerWebRequest

Type: Class | Module: microsphere-spring-webflux | Package: io.microsphere.spring.webflux.context.request | Since: 1.0.0

Source: microsphere-spring-webflux/src/main/java/io/microsphere/spring/webflux/context/request/ServerWebRequest.java

Overview

The adapter implementation of NativeWebRequest based on ServerWebExchange

Declaration

public class ServerWebRequest implements NativeWebRequest

Author: Mercy

Version Information

  • Introduced in: 1.0.0
  • Current Project Version: 0.2.28-SNAPSHOT

Version Compatibility

This component is tested and compatible with the following Java versions:

Java Version Status
Java 17 ✅ Compatible
Java 21 ✅ Compatible
Java 25 ✅ Compatible

Usage

Maven Dependency

Add the following dependency to your pom.xml:

<dependency>
    <groupId>io.github.microsphere-projects</groupId>
    <artifactId>microsphere-spring-webflux</artifactId>
    <version>${microsphere-spring.version}</version>
</dependency>

Tip: Use the BOM (microsphere-spring-dependencies) for consistent version management. See the Getting Started guide.

Import

import io.microsphere.spring.webflux.context.request.ServerWebRequest;

API Reference

Public Methods

Method Description
getExchange The attribute name of the remote user in the request : "REMOTE_USER" .
getRequest Get the ServerHttpRequest
getResponse Get the ServerHttpResponse
getRequestHeaders Get the HttpHeaders
getSession

Method Details

getExchange

public ServerWebExchange getExchange()

The attribute name of the remote user in the request : "REMOTE_USER" . / public static final String REMOTE_USER_ATTRIBUTE_NAME = "REMOTE_USER";

/** The attribute name of the mutex for the session, used for synchronization on the session.

See Also

  • ServerWebExchange
  • ServerHttpRequest
  • ServerHttpResponse
  • NativeWebRequest

This documentation was auto-generated from the source code of microsphere-spring.

Home

spring-context

spring-guice

spring-jdbc

spring-test

spring-web

spring-webflux

spring-webmvc

Clone this wiki locally