org.glassfish.grizzly.http.server.Request.setNote()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(166)

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

Request.setNote介绍

[英]Bind the Note value to this Request, replacing any existing binding for this name. Use #createNote(java.lang.String) to create a new Note.
[中]将Note值绑定到此请求,替换此名称的任何现有绑定。使用#createNote(java.lang.String)创建新便笺。

代码示例

代码示例来源:origin: org.glassfish.main.core/kernel

request.setNote(MAPPING_DATA, null);
if (mappingData == null) {
  mappingData = new MappingData();
  request.setNote(MAPPING_DATA, mappingData);
} else {
  mappingData.recycle();

代码示例来源:origin: org.glassfish.main.core/kernel

if (localDecodedURI == null) {
  localDecodedURI = DataChunk.newInstance();
  req.setNote(DATA_CHUNK, localDecodedURI);

代码示例来源:origin: javaee/grizzly

servletResponse.initialize(response, servletRequest);
request.setNote(SERVLET_REQUEST_NOTE, servletRequest);
request.setNote(SERVLET_RESPONSE_NOTE, servletResponse);

代码示例来源:origin: javaee/grizzly

servletResponse.initialize(response, servletRequest);
request.setNote(SERVLET_REQUEST_NOTE, servletRequest);
request.setNote(SERVLET_RESPONSE_NOTE, servletResponse);

代码示例来源:origin: javaee/grizzly

servletResponse.initialize(response, servletRequest);
request.setNote(SERVLET_REQUEST_NOTE, servletRequest);
request.setNote(SERVLET_RESPONSE_NOTE, servletResponse);

代码示例来源:origin: javaee/grizzly

servletResponse.initialize(response, servletRequest);
request.setNote(SERVLET_REQUEST_NOTE, servletRequest);
request.setNote(SERVLET_RESPONSE_NOTE, servletResponse);

代码示例来源:origin: javaee/grizzly

servletResponse.initialize(response, servletRequest);
request.setNote(SERVLET_REQUEST_NOTE, servletRequest);
request.setNote(SERVLET_RESPONSE_NOTE, servletResponse);

代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server

servletResponse.initialize(response, servletRequest);
request.setNote(SERVLET_REQUEST_NOTE, servletRequest);
request.setNote(SERVLET_RESPONSE_NOTE, servletResponse);

代码示例来源:origin: org.glassfish.main.web/web-core

req.setNote(CATALINA_REQUEST_NOTE, request);
req.setNote(CATALINA_RESPONSE_NOTE, response);

代码示例来源:origin: org.glassfish.main.web/web-core

if (localDecodedURI == null) {
    localDecodedURI = DataChunk.newInstance();
    req.setNote(DATA_CHUNK, localDecodedURI);
           request.getMappingData());
MappingData md = request.getMappingData();
req.setNote(MAPPING_DATA, md);
request.updatePaths(md);

相关文章

Request类方法