作业帮 > 英语 > 作业

英语翻译4 Packaging and deployment A portlet application’s resou

来源:学生作业帮 编辑:作业帮 分类:英语作业 时间:2024/07/09 05:23:47
英语翻译
4 Packaging and deployment
A portlet application’s resources,portlets and deployment descriptors are packaged together in one Web application archive (WAR file).In contrast to servlet-only Web applications,portlet applications consist of two deployment descriptors:one to specify the Web application resources,the web.xml,and one to specify the portlet resources,the portlet.xml.All Web resources that are not portlets must be specified in the web.xml deployment descriptor and all portlets and port- let related settings must be specified in the port let.xml.As a result of the two deployment descriptor ifies,portlet application deployment is a two-step deployment process that deploys the Web application into the application server and the portlets into the portal server.
Figs.6 and 7 depict the schema of the portlet.xml file.Eachiabeled box represents a XML tag,dashed boxes are optional,non- dashed ones are required.Some tags may occur more than once and therefore have a cardinality added to them (0...oc for an unrestricted occurrence,1...oc for at least one).Fig.6 shows the settings that can be applied on the application level.These settings include the support of custom portlet modes or window states,user attributes (like the first or last name of the user,see also [4] for the most common user attribute names) and security constraints when accessing the portlet (like always use a SSL connection when accessing this portlet).
Fig.7 depicts the settings on the portlet level,which include name and class of the portlet,initialization parameters,cache settings,supported output MIME types (e.g.text/html),supported locales,persistent preferences the portlet uses (see (3.4.1)),and J2EE roles the portlet accesses.An example of a deployment descriptor is presented in the example below.
5 Porfiets and J2EE
The portlet specification is very closely aligned with J2EE concepts.This close alignment is reflected in:
•Portlet applications are WAR files and can be deployed using the existing infrastructure for WAR files.
• portlets use also the HttpSession and can share data via the session with other J2EE artifacts like servlets.
•Portlets can access the web application context via the portlet API and share data with other J2EE artifacts on the context level.
• Portlets can access web application initialization parameters defined in the web.xml via the portlet context.
• Portlets can include servlets and JSPs via a request dispatcher.
• Portlet J2EE roles defined in the portlet.xml can reference J2EE roles defined in the web.xml enabling a unified role mapping between portlets and servlets.
The future goal is to keep the portlet specification aligned with the next J2EE versions and to become part of J2EE some day in the future.
请高手帮我翻译下列英文!不要求很对,但要求很通顺!
请不要用翻译软件敷衍我!
4 包装和配置
portlet 申请的资源、 portlets 和配置描述符在一个网络申请文件中一起被包装.(战争文件) 与唯 servlet 网络申请相反,portlet 申请有二个配置描述符:一叙述网络申请资源,网.xml,和一叙述 portlet 资源,portlet.xml.不是 portlets 的所有的网络资源一定在网中被指定.xml 配置描述符和所有的 portlets 和港口- 让相关的设定一定在被让的港口中被指定.xml.这二个配置的结果描述符 ifies,portlet 申请配置是两步舞配置部署网络申请进入申请伺候器,而且部署 portlets 进入门的伺候器的程序.
无花果树.6 和 7 描述 portlet.xml 文件的轮廓.Eachiabeled 盒子表现一个可扩展标示语言标签,被猛掷盒子是可选择、非猛掷一被需要.一些标签可能发生超过一次因此对他们增加一个基数 (0...oc 为无限制的发生,1...oc 为至少一).图 6 表演能在申请水平上被应用的设定.这些设定包括订制 portlet 模态的支持,否则窗户说,使用者属性 (喜欢第一或者使用者的姓,也见到给最通常的使用者属性的命名) 和安全限制当存取 portlet 的时候.(当存取这一 portlet 的时候,同类总是使用 SSL 连接)
图 7 在 portlet 水平,包括 portlet 的名字和班级上描述设定,设定初值叁数,贮藏设定,支援了输出多用途互联网邮件扩充类型 (举例来说本文/html),支援了现场,固执的偏爱 portlet 使用 (见到 )4,和 J2 EE 角色 portlet 通路.配置描述符的一个例子在下面的例子中被呈现.
5 Porfiets 和 J2 EE
portlet 规格非常接近地被使 J2 EE 观念一致.这结束对准被反映在:
Portlet 申请是战争文件而且能被部署使用现有的系统内各部分作为战争文件.
portlets 也使用 HttpSession 而且经由会议能以其他的 J2 EE 像 servlets 的人工品分享数据.
Portlets 经由 portlet 美国石油协会和部份数据能在上下文水平上以其他的 J2 EE 人工品存取网申请上下文.
Portlets 能存取在网中被定义的网申请设定初值叁数.经由 portlet 上下文的 xml.
Portlets 经由一个请求发送者能包括 servlets 和 JSPs .
Portlet J2 EE 角色在 portlet.xml 中定义能在网中定义的叁考 J2 EE 角色.xml 促成一个被统一的角色在 portlets 和 servlets 之间映射.
将来的目标将保存使下 J2 EE 版本一致的 portlet 规格而且将来有一天变成 J2 的一部份 EE .