org.simpleframework.http.Request.getAttributes()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(104)

本文整理了Java中org.simpleframework.http.Request.getAttributes方法的一些代码示例,展示了Request.getAttributes的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getAttributes方法的具体详情如下:
包路径:org.simpleframework.http.Request
类名称:Request
方法名:getAttributes

Request.getAttributes介绍

[英]This can be used to retrieve the response attributes. These can be used to keep state with the response when it is passed to other systems for processing. Attributes act as a convenient model for storing objects associated with the response. This also inherits attributes associated with the client connection.
[中]这可用于检索响应属性。当响应被传递到其他系统进行处理时,可以使用它们来保持响应的状态。属性充当一个方便的模型,用于存储与响应关联的对象。这也会继承与客户端连接关联的属性。

代码示例

代码示例来源:origin: org.simpleframework/simple

/**
* This can be used to retrieve the response attributes. These can
* be used to keep state with the response when it is passed to
* other systems for processing. Attributes act as a convenient
* model for storing objects associated with the response. This 
* also inherits attributes associated with the client connection.
*
* @return the attributes that have been set on this response
*/ 
public Map getAttributes() {
 return request.getAttributes();
}

代码示例来源:origin: org.simpleframework/simple-http

/**
* This can be used to retrieve the response attributes. These can
* be used to keep state with the response when it is passed to
* other systems for processing. Attributes act as a convenient
* model for storing objects associated with the response. This 
* also inherits attributes associated with the client connection.
*
* @return the attributes that have been set on this response
*/ 
public Map getAttributes() {
 return request.getAttributes();
}

代码示例来源:origin: ngallagher/simpleframework

/**
* This can be used to retrieve the response attributes. These can
* be used to keep state with the response when it is passed to
* other systems for processing. Attributes act as a convenient
* model for storing objects associated with the response. This 
* also inherits attributes associated with the client connection.
*
* @return the attributes that have been set on this response
*/ 
public Map getAttributes() {
 return request.getAttributes();
}

代码示例来源:origin: org.simpleframework/simple-http

/**
* Constructor for the <code>ServiceSession</code> object. This is used 
* to create the session that will be used by a <code>Service</code> to
* send and receive WebSocket frames.
* 
* @param channel this is the actual WebSocket for the session
* @param request this is the session initiating request
* @param response this is the session initiating response
*/
public ServiceSession(FrameChannel channel, Request request, Response response) {
 this.channel = new ServiceChannel(channel);
 this.attributes = request.getAttributes();
 this.response = response;
 this.request = request;
}

代码示例来源:origin: ngallagher/simpleframework

/**
* Constructor for the <code>ServiceSession</code> object. This is used 
* to create the session that will be used by a <code>Service</code> to
* send and receive WebSocket frames.
* 
* @param channel this is the actual WebSocket for the session
* @param request this is the session initiating request
* @param response this is the session initiating response
*/
public ServiceSession(FrameChannel channel, Request request, Response response) {
 this.channel = new ServiceChannel(channel);
 this.attributes = request.getAttributes();
 this.response = response;
 this.request = request;
}

相关文章