public class ReactiveRequestAttributes
extends org.springframework.web.context.request.AbstractRequestAttributes
限定符和类型 | 字段和说明 |
---|---|
static String |
DESTRUCTION_CALLBACK_NAME_PREFIX
Constant identifying the
String prefixed to the name of a
destruction callback when it is stored in a WebSession . |
protected static Set<Class<?>> |
immutableValueTypes |
构造器和说明 |
---|
ReactiveRequestAttributes(org.springframework.web.server.ServerWebExchange exchange)
Create a new ReactiveRequestAttributes instance for the given ServerWebExchange.
|
限定符和类型 | 方法和说明 |
---|---|
Object |
getAttribute(String name,
int scope) |
String[] |
getAttributeNames(int scope) |
org.springframework.http.server.reactive.ServerHttpRequest |
getRequest()
Exposes the native
ServerHttpRequest that we're wrapping. |
org.springframework.http.server.reactive.ServerHttpResponse |
getResponse()
Exposes the native
ServerHttpResponse that we're wrapping (if any). |
String |
getSessionId() |
Object |
getSessionMutex() |
void |
registerDestructionCallback(String name,
Runnable callback,
int scope) |
void |
removeAttribute(String name,
int scope) |
Object |
resolveReference(String key) |
void |
setAttribute(String name,
Object value,
int scope) |
String |
toString() |
protected void |
updateAccessedSessionAttributes()
Update all accessed session attributes through
session.setAttribute
calls, explicitly indicating to the container that they might have been modified. |
public static final String DESTRUCTION_CALLBACK_NAME_PREFIX
String
prefixed to the name of a
destruction callback when it is stored in a WebSession
.public ReactiveRequestAttributes(org.springframework.web.server.ServerWebExchange exchange)
exchange
- current ServerWebExchangepublic final org.springframework.http.server.reactive.ServerHttpRequest getRequest()
ServerHttpRequest
that we're wrapping.ServerHttpRequest
@Nullable public final org.springframework.http.server.reactive.ServerHttpResponse getResponse()
ServerHttpResponse
that we're wrapping (if any).ServerHttpResponse
public void removeAttribute(String name, int scope)
public String[] getAttributeNames(int scope)
public void registerDestructionCallback(String name, Runnable callback, int scope)
public String getSessionId()
public Object getSessionMutex()
protected void updateAccessedSessionAttributes()
session.setAttribute
calls, explicitly indicating to the container that they might have been modified.updateAccessedSessionAttributes
在类中 org.springframework.web.context.request.AbstractRequestAttributes
Copyright © 2023 buession.com Inc.. All rights reserved.