简体   繁体   English

Jetty中的哪些元素是可插拔的? 例如会话cookie

[英]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.

相关问题 如何为BitSet类型的元素创建SortedSet(例如TreeSet) - How to create SortedSet (e.g. TreeSet) for elements of type BitSet httpOnly Session Cookie + Servlet 3.0(例如Glassfish v3) - httpOnly Session Cookie + Servlet 3.0 (e.g. Glassfish v3) 是否可以使用反射[在Java中]获取集合(例如列表)的元素 - Is it possible to get elements of a Collection (e.g. List) using reflection [in Java] 如何检查数组的所有元素是否不等于某个值? (例如,不是空的) - How can I check if all elements of array doesn't equal to some value? (e.g. not empty) 休眠-在字段中的oneToMany-Relation中存储元素数量? (例如评论数) - Hibernate - Store number of elements in oneToMany-Relation in field? (e.g. number of comments) 将连字符分隔的单词(例如“do-some-stuff”)转换为较小的驼峰变体(例如“doSomeStuff”)的最优雅方法是什么? - What is the most elegant way to convert a hyphen separated word (e.g. “do-some-stuff”) to the lower camel-case variation (e.g. “doSomeStuff”)? 从Scala(和Java)访问DRb对象(例如Ruby Queue)的最佳方法是什么? - What's the best way of accessing a DRb object (e.g. Ruby Queue) from Scala (and Java)? Java中数字前的方括号是什么意思? 例如 []89 或 [1, 2, 3]89 - What do square brackets before a number mean in Java? e.g. []89 or [1, 2, 3]89 有没有办法找出使用Java在iTunes中正在播放的歌曲? - Is there a way to find out what song is currently playing in e.g. iTunes using Java? 在Java应用程序中查看样式化文本(例如HTML)的最简单方法是什么? - What is the simplest way to view styled text (e.g. in HTML) in a Java application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM