本文整理了Java中org.apache.coyote.Request.setNote
方法的一些代码示例,展示了Request.setNote
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.setNote
方法的具体详情如下:
包路径:org.apache.coyote.Request
类名称:Request
方法名:setNote
[英]Used to store private data. Thread data could be used instead - but if you have the req, getting/setting a note is just a array access, may be faster than ThreadLocal for very frequent operations. Example use: Jk: HandlerRequest.HOSTBUFFER = 10 CharChunk, buffer for Host decoding WorkerEnv: SSL_CERT_NOTE=16 - MessageBytes containing the cert Catalina CoyoteAdapter: ADAPTER_NOTES = 1 - stores the HttpServletRequest object ( req/res) To avoid conflicts, note in the range 0 - 8 are reserved for the servlet container ( catalina connector, etc ), and values in 9 - 16 for connector use. 17-31 range is not allocated or used.
[中]用于存储私人数据。可以使用线程数据,但如果您有req,获取/设置注释只是一个数组访问,对于非常频繁的操作,可能比ThreadLocal更快。示例用法:Jk:HandlerRequest。HOSTBUFFER=10 CharChunk,主机解码工作缓冲区renv:SSL_CERT_NOTE=16-包含CERT Catalina CoyoteAdapter:ADAPTER_NOTES=1的MessageBytes-存储HttpServletRequest对象(req/res)以避免冲突,0-8范围内的注释保留给servlet容器(Catalina连接器等),和9-16中的值,供连接器使用。17-31范围未分配或使用。
代码示例来源:origin: codefollower/Tomcat-Research
req.setNote(ADAPTER_NOTES, request);
res.setNote(ADAPTER_NOTES, response);
代码示例来源:origin: jboss.web/jbossweb
req.setNote(ADAPTER_NOTES, request);
res.setNote(ADAPTER_NOTES, response);
代码示例来源:origin: org.jboss.web/jbossweb
req.setNote(ADAPTER_NOTES, request);
res.setNote(ADAPTER_NOTES, response);
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
req.setNote(ADAPTER_NOTES, request);
res.setNote(ADAPTER_NOTES, response);
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
req.setNote(ADAPTER_NOTES, request);
res.setNote(ADAPTER_NOTES, response);
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
req.setNote(ADAPTER_NOTES, request);
res.setNote(ADAPTER_NOTES, response);
代码示例来源:origin: tomcat/catalina
req.setNote(ADAPTER_NOTES, request);
res.setNote(ADAPTER_NOTES, response);
代码示例来源:origin: org.osivia.portal.core/osivia-portal-jbossas-jbossweb-lib
/* 240 */ req.setNote(1, request);
/* 241 */ res.setNote(1, response);
代码示例来源:origin: codefollower/Tomcat-Research
req.setNote(ADAPTER_NOTES, request);
res.setNote(ADAPTER_NOTES, response);
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
req.setNote(ADAPTER_NOTES, request);
res.setNote(ADAPTER_NOTES, response);
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
req.setNote(ADAPTER_NOTES, request);
res.setNote(ADAPTER_NOTES, response);
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
req.setNote(ADAPTER_NOTES, request);
res.setNote(ADAPTER_NOTES, response);
代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core
req.setNote(ADAPTER_NOTES, request);
res.setNote(ADAPTER_NOTES, response);
代码示例来源:origin: org.apache.tomcat/tomcat-catalina
req.setNote(ADAPTER_NOTES, request);
res.setNote(ADAPTER_NOTES, response);
代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina
req.setNote(ADAPTER_NOTES, request);
res.setNote(ADAPTER_NOTES, response);
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
req.setNote(ADAPTER_NOTES, request);
res.setNote(ADAPTER_NOTES, response);
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
req.setNote(ADAPTER_NOTES, request);
res.setNote(ADAPTER_NOTES, response);
代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina
req.setNote(ADAPTER_NOTES, request);
res.setNote(ADAPTER_NOTES, response);
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
req.setNote(ADAPTER_NOTES, request);
res.setNote(ADAPTER_NOTES, response);
代码示例来源:origin: org.apache.coyote.springsource/com.springsource.org.apache.coyote.springsource
if(hostNameC == null) {
hostNameC = new CharChunk(valueL);
request.setNote(HOSTBUFFER, hostNameC);
内容来源于网络,如有侵权,请联系作者删除!