Java Servlet容器 Jetty 9 發布,支持 SPDY 和 WebSocket

jopen 11年前發布 | 23K 次閱讀 Jetty

Jetty 是一個開源的servlet容器,它為基于Java的web內容,例如JSP和servlet提供運行環境。Jetty是使用Java語言編寫的,它的 API以一組JAR包的形式發布。開發人員可以將Jetty容器實例化成一個對象,可以迅速為一些獨立運行(stand-alone)的Java應用提供網絡和web連接。

Jetty 9 支持 SPDY 和 WebSocket。

下載地址:

Maven:

<groupId>org.eclipse.jetty</groupId>

<version>9.0.0.v20130308</version>

Jetty 9.x 特性:

  • Completely overhauled I/O layer
  • Servlet API 3.0
  • JSP 2.2
  • SPDY/3
  • WebSocket (RFC-6455)
移植到 Jetty 9.x 的要求:
  • Requires Java 1.7 or newer.
  • Jetty Maven Plugin has now been moved to org.eclipse.jetty groupId
  • There is no org.mortbay or codehaus components
  • Support for early WebSocket drafts has been dropped, only support released RFC-6455 spec.
  • There now only 1 aggregate jar, called jetty-all.
  • Bad UTF8 encoding will result in replacement characters being passed into the application to handle. (older versions of Jetty would fail the request)
  • Removal of all traditional Socket (BIO) Connectors.
    • Only supporting NIO for Connectors.
  • Consolidated all of the various Deployment technique and scenarios into one.
    • ContextDeployer and WebAppDeployer have been removed
    • DeploymentManager has only 1 AppProvider now, the WebAppProvider
    • WebAppProvider supports both Deployment Descriptors deployment and traditional Automatic WAR deployment.
  • New Jetty Async Http Client
  • New Jetty WebSocket Servlet & WebSocket Client
  • A new Jetty XML DTD (http://www.eclipse.org/jetty/configure_9.0.dtd) changes the <Ref id=""> syntax in your Jetty XML to <Ref refid="">
  • Removed Jetty6Continuation support
 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!