Java Servlets 3.1
此功能部件启用对已写入 Java Servlet 3.1 规范的 HTTP Servlet 的支持。可将这些 servlet 打包到 Java EE 指定的 WAR 或 EAR 文件中。如果需要 servlet 安全性,那么还应配置 appSecurity 功能部件。如果没有安全性功能部件,那么该应用程序的所有安全性约束将被忽略。
启用此功能部件
要启用 Java Servlet 3.1 功能部件,请在 server.xml 文件的 featureManager 元素内添加以下元素声明:
<feature>servlet-3.1</feature>
开发依赖于此功能部件的功能部件
如果您要开发依赖于 Java Servlet 3.1 功能部件的功能部件,请在新功能部件的功能部件清单文件的 Subsystem-Content 头中添加以下项:
com.ibm.websphere.appserver.servlet-3.1; type="osgi.subsystem.feature"
启用此功能部件的功能部件
- adminCenter-1.0 - Admin Center
- apiDiscovery-1.0 - API Discovery 1.0
- appSecurity-1.0 - Application Security 1.0
- batch-1.0 - Batch API 1.0
- batchManagement-1.0 - Batch Management
- collectiveMember-1.0 - Collective Member
- httpWhiteboard-1.0 - OSGi Http Whiteboard
- jaspic-1.1 - Java Authentication SPI for Containers 1.1
- javaee-7.0 - Java EE Full Platform 7.0
- jaxrs-1.1 - Java RESTful Services 1.1
- jaxrs-2.0 - Java RESTful Services 2.0
- jaxrsClient-2.0 - Java RESTful Services Client 2.0
- jpa-2.0 - Java Persistence API 2.0
- jsf-2.0 - JavaServer Faces 2.0
- jsf-2.2 - JavaServer Faces 2.2
- jsp-2.2 - JavaServer Pages 2.2
- jsp-2.3 - JavaServer Pages 2.3
- jwt-1.0 - Json Web Token
- oauth-2.0 - OAuth
- openid-2.0 - OpenID
- openidConnectClient-1.0 - OpenID Connect Client
- openidConnectServer-1.0 - OpenID Connect Provider
- osgi.jpa-1.0 - OSGi Java Persistence API
- passwordUtilities-1.0 - Password Utilities
- restConnector-1.0 - JMX REST Connector 1.0
- restConnector-2.0 - JMX REST Connector 2.0
- rtcomm-1.0 - Real-Time Communications
- rtcommGateway-1.0 - WebRTC Rtcomm Gateway
- samlWeb-2.0 - SAML web single sign-on version 2.0
- scim-1.0 - System for Cross-domain Identity Management
- sipServlet-1.1 - SIP Servlet
- spnego-1.0 - Simple and Protected GSSAPI Negotiation Mechanism
- wab-1.0 - OSGi Web Application Bundles
- webCache-1.0 - Web Response Cache
- webProfile-7.0 - Java EE Web Profile 7.0
- websocket-1.0 - Java WebSocket 1.0
- websocket-1.1 - Java WebSocket 1.1
- wsAtomicTransaction-1.2 - WS-AT Service
- wsSecuritySaml-1.1 - WSSecurity SAML
此功能部件提供的标准 API 包
- javax.servlet
- javax.servlet.annotation
- javax.servlet.descriptor
- javax.servlet.http
- javax.servlet.resources
此功能部件提供的 IBM API 包
- com.ibm.websphere.servlet.container
- com.ibm.websphere.servlet.context
- com.ibm.websphere.servlet.error
- com.ibm.websphere.servlet.event
- com.ibm.websphere.servlet.session
- com.ibm.websphere.webcontainer
- com.ibm.wsspi.servlet.session
此功能部件提供的 SPI 包
- com.ibm.websphere.servlet.filter
- com.ibm.websphere.servlet.request
- com.ibm.websphere.servlet.response
- com.ibm.websphere.webcontainer.async
- com.ibm.ws.webcontainer.extension
- com.ibm.ws.webcontainer.spiadapter.collaborator
- com.ibm.wsspi.webcontainer
- com.ibm.wsspi.webcontainer.collaborator
- com.ibm.wsspi.webcontainer.extension
- com.ibm.wsspi.webcontainer.filter
- com.ibm.wsspi.webcontainer.metadata
- com.ibm.wsspi.webcontainer.osgi.extension
- com.ibm.wsspi.webcontainer.servlet
- com.ibm.wsspi.webcontainer.webapp
功能部件配置元素
可在 server.xml 文件中使用以下元素以配置 Java Servlet 3.1 功能部件:
- application
- applicationManager
- applicationMonitor
- channelfw
- classloading
- cors
- enterpriseApplication
- httpAccessLogging
- httpDispatcher
- httpEncoding
- httpEndpoint
- httpOptions
- httpProxyRedirect
- httpSession
- javaPermission
- library
- mimeTypes
- pluginConfiguration
- tcpOptions
- virtualHost
- webApplication
- webContainer