[英]What elements in Jetty are pluggable and removale? e.g. session cookies
I was reading that one of the benefits of Jetty is that many of the layers/modules are either pluggable or removable. 我读到Jetty的好处之一是许多层/模块都是可插拔的或可移动的。
Can someone explain how this works and what modules are pluggable and/or removable? 有人可以解释一下它是如何工作的以及哪些模块是可插拔的吗?
For example, if I have my own session management in my application, how would I be able to remove session cookies in Jetty? 例如,如果我在自己的应用程序中有自己的会话管理,那么如何在Jetty中删除会话cookie?
I don't know Jetty very well. 我不太了解码头。 But, a session is always optional.
但是,会话始终是可选的。 You can use
您可以使用
<%@ page session="false" %> in a JSP. JSP中的<%@页面会话=“ false”%>。 A Servlet doesn't create a session unless you add code to do so.
除非添加代码,否则Servlet不会创建会话。
Nearly every aspect of Jetty is pluggable. 码头的几乎每个方面都是可插拔的。
The best way to see what is available is to first download a distribution and then poke around in the ${jetty.home}/etc/ directory. 查看可用资源的最佳方法是先下载发行版,然后在$ {jetty.home} / etc /目录中四处浏览。
Jetty is wired up via a set of xml files found in this directory. Jetty通过在此目录中找到的一组xml文件进行连接。
The base xml in the distribution is etc/jetty.xml 发行版中的基本xml是etc / jetty.xml
If you look at the start.ini you can see which xml files are being referenced by default. 如果查看start.ini,则可以看到默认情况下正在引用哪些xml文件。
If you want to know more about the OPTIONS parameter and what jar files are being loaded for each, use the following ... 如果您想了解有关OPTIONS参数的更多信息以及为每个参数加载哪些jar文件,请使用以下命令...
$ java -jar start.jar --list-options
Don't forget to poke around the other startup command line arguments as well. 别忘了还围绕其他启动命令行参数。
$ java -jar start.jar --help
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.