Jetty:权威参考

Table of Contents

Getting Started With Jetty

Introducing Jetty

What is Jetty?

Jetty is an open-source project providing an HTTP server, HTTP client, and javax.servlet container.

This guide is broken up in to five parts:

  • The first section emphasizes beginning to use Jetty. It provides information about what Jetty is and where you can download it, and where to find Jetty in repositories like Central Maven. It also provides a Quick Start guide on how to get Jetty up and running as well as an overview of how and what to configure in Jetty.
  • The second section of the guide deals with configuring Jetty at a more granular level. It explains how to use Jetty to deploy web applications, configure contexts and connects, and how to implement SSL and other security measures.
  • Administration of Jetty is the focus of the third section of the guide. From server startup to session management, logging, HTTP/2 support and Jetty optimization, these chapters will help administrators get the most out of their Jetty server instances. This section also covers configuring many of the most common servlet container features such as JNDI and JMX.
  • Aimed at advanced users of Jetty, the fourth section of the guide focuses on Jetty development. A large portion of this section is focused on using Jetty as an embedded server in existing applications. It contains several examples and how-to guides for making the most out of the Jetty framework. This section also includes a guide on using the Jetty Maven plugin as well as information on debugging Jetty.
  • The final section of the guide is a reference section. Included there are guides on Jetty architecture and Jetty XML syntax, alternate distributions of Jetty and even troubleshooting of common issues. There is also a chapter on getting involved in the Jetty community including information on how to contribute code and how to find help.

Feedback is always welcome! Additionally, if you are interested in how to contribute to the open source project there is a section on that as well!

What Version Do I Use?

Jetty 9 is the most recent version of Jetty and has a great many improvements over previous versions. This documentation which focuses on Jetty 9. While many people continue to use older versions of Jetty, we generally recommend using Jetty 9 as it represents the version of Jetty that we will actively maintain and improve over the next few years.

Table 1. Jetty Versions

Version

Year

Home

Min JVM

Protocols

Servlet

JSP

Status

 

It is important that only stable releases are used in production environments. Versions that have been deprecated or are released as Milestones (M) or Release Candidates (RC) are not suitable for production as they may contain security flaws or incomplete/non-functioning feature sets.

11

2020-

Eclipse

11 (2)

HTTP/1.1 (RFC 7230), HTTP/2 (RFC 7540), WebSocket (RFC 6455, JSR 356), FastCGI, JakartaEE Namespace(1)

5.0.0

3.0.0

Stable

10

2019-

Eclipse

11 (2)

HTTP/1.1 (RFC 7230), HTTP/2 (RFC 7540), WebSocket (RFC 6455, JSR 356), FastCGI

4.0.1

2.2

Stable

9.4

2016-

Eclipse

1.8

HTTP/1.1 (RFC 7230), HTTP/2 (RFC 7540), WebSocket (RFC 6455, JSR 356), FastCGI

3.1

2.3

Stable

9.3

2015-

Eclipse

1.8 (3)

HTTP/1.1 (RFC 7230), HTTP/2 (RFC 7540), WebSocket (RFC 6455, JSR 356), FastCGI

3.1

2.3

Deprecated / End of Life December 2020

9.2

2014-2018

Eclipse

1.7 (3)

HTTP/1.1 RFC2616, javax.websocket, SPDY v3

3.1

2.3

Deprecated / End of Life January 2018

9.1

2013-2014

Eclipse

1.7 (3)

HTTP/1.1 RFC2616

3.1

2.3

Deprecated / End of Life May 2014

9.0

2013-2013

Eclipse

1.7 (3)

HTTP/1.1 RFC2616

3.1-beta

2.3

Deprecated / End of Life November 2013

8

2009-2014

Eclipse/Codehaus

1.6 (3)

HTTP/1.1 RFC2616, WebSocket RFC 6455, SPDY v3

3.0

2.2

Deprecated / End of Life November 2014

7

2008-2014

Eclipse/Codehaus

1.5

HTTP/1.1 RFC2616, WebSocket RFC 6455, SPDY v3

2.5

2.1

Deprecated / End of Life November 2014

6

2006-2010

Codehaus

1.4-1.5

HTTP/1.1 RFC2616

2.5

2.0

Deprecated / End of Life November 2010

5

2003-2009

Sourceforge

1.2-1.5

HTTP/1.1 RFC2616

2.4

2.0

Antique

4

2001-2006

Sourceforge

1.2, J2ME

HTTP/1.1 RFC2616

2.3

1.2

Ancient

3

1999-2002

Sourceforge

1.2

HTTP/1.1 RFC2068

2.2

1.1

Fossilized

2

1998-2000

Mortbay

1.1

HTTP/1.0 RFC1945

2.1

1.0

Legendary

1

1995-1998

Mortbay

1.0

HTTP/1.0 RFC1945

-

-

Mythical

          
  1. Due to Oracle’s ownership of the "Java" trademark, usage of the javax.* namespace has been restricted and the jakarta.* namespace was adopted by the Eclipse Foundation.
  2. JPMS module support is optional
  3. JDK9 and newer is not supported if using MultiRelease JAR Files, or Bytecode / Annotation scanning.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值