Java8设计模式最佳实战-设计模式概述(第五天学习记录)

本文详细介绍了JavaEE平台的多层架构,特别是前端控制器和应用程序控制器模式,以及表示层的两种类型——面向用户和面向服务。同时提到了如何在实际项目中运用这些概念,并附带了学习资源链接。
摘要由CSDN通过智能技术生成

Explaining the front controller pattern

解释前控制器模式

Implementing the front controller pattern

实现前端控制器模式

Explaining the application controller pattern

解释应用程序控制器模式

Implementing the application controller pattern

实现应用程序控制器模式

Explaining the presentation tier

解释演示层

The Java EE platform is a distributed multitiered application model that has three widely

javaee平台是一个分布式的多层应用程序模型,它有三个广泛的

used common tiers. These tiers are the presentation tier (or web tier), the business tier, and

使用通用层。这些层是表示层(或web层)、业务层和

the integration tier (or EIS tier).

集成层(或EIS层)。

The presentation tier, also known as the web tier, contains the components that create a

表示层,也称为web层,包含创建

web application. This tier has many components that use the HTTP protocol, construct

web应用程序。这个层有许多使用HTTP协议的组件,construct

views and interfaces for users, and provide a web service. These components are called web

为用户提供视图和接口,并提供web服务。这些组件称为web

components. There are two types of presentation tier:

组件。有两种类型的表示层:

Presentation-oriented tier: This type of presentation tier contains the

面向表示层:这种类型的表示层包含

components to construct an interactive web page and dynamic content using

组件来构造交互式网页和使用

HTML and XHTML. These components are JavaServer Faces technology, Java

HTML和XHTML。这些组件是JavaServer Faces技术,Java

Servlet technology, and JavaServer Page technology, which allow us to construct

Servlet技术和JavaServer页面技术,它们允许我们构造

an interactive web page.

一个交互式网页。

Server-oriented tier: This contains the components to construct an endpoint of a

面向服务器层:包含用于构造

web service. These components are JAX-RS and JAX-WS.

网络服务。这些组件是JAX-RS和JAX-WS。

The presentation-oriented tier is generally used on web applications using componentbased specifications such as JavaServer Faces technology, or web applications using actionbased Java Servlet technology as well as JavaServer Pages technology. The server-oriented

面向表示层通常用于使用基于组件的规范(如javaserverfaces技术)的web应用程序,或使用基于action的javaservlet技术以及javaserverpages技术的web应用程序。面向服务器

tier is generally used on web applications that create a REST API or web service that is

tier通常用于创建restapi或web服务的web应用程序

consumed by the client running on a mobile platform or browser. In the following diagram,在这里插入图片描述

由运行在移动平台或浏览器上的客户端使用。在下图中,

we can see how the presentation tier works

我们可以看到表示层是如何工作的

As shown in the preceding diagram, the Client sends a Request to the server; the

如上图所示,客户机向服务器发送一个请求

Presentation Tier processes the request and sends it to the Business Tier; the Business Tier

并向业务层发送请求

then sends a response to the Presentation Tier if the request is not asynchronous, and

如果请求不是异步的,则向表示层发送响应,并且

finally the Presentation Tier processes and sends the response to the Client.

最后

自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。

深知大多数Java工程师,想要提升技能,往往是自己摸索成长,自己不成体系的自学效果低效漫长且无助。

因此收集整理了一份《2024年Java开发全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。

既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上Java开发知识点,不论你是刚入门Android开发的新手,还是希望在技术上不断提升的资深开发者,这些资料都将为你打开新的学习之门!

如果你觉得这些内容对你有帮助,需要这份全套学习资料的朋友可以戳我获取!!

由于文件比较大,这里只是将部分目录截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且会持续更新!
份全套学习资料的朋友可以戳我获取!!**](https://bbs.csdn.net/topics/618164986)

由于文件比较大,这里只是将部分目录截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且会持续更新!

  • 30
    点赞
  • 30
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值