1 00:00:01,890 --> 00:00:02,940 Welcome, my friends. 2 00:00:03,540 --> 00:00:04,680 Welcome to this lecture. 3 00:00:05,100 --> 00:00:11,320 In this lecture, we will try to study the life cycle of a sonnet using diagrams. 4 00:00:12,540 --> 00:00:14,160 So let's start with the first diagram. 5 00:00:26,090 --> 00:00:33,160 So we are first going to see this part of the diagram where the client calls the VIPs. 6 00:00:33,190 --> 00:00:41,210 So now this is the VIPs server and this foredeck angle is what encompasses. 7 00:00:41,940 --> 00:00:48,530 So within this Web site that we have hosting a select as well as it is a container. 8 00:00:48,540 --> 00:00:49,860 So it has a container. 9 00:00:50,750 --> 00:00:57,890 What makes this object and what makes this simple Java object is servlet is that the simple Java object 10 00:00:58,160 --> 00:00:59,880 extends Bystolic. 11 00:01:00,020 --> 00:01:01,480 That's what makes it a solid. 12 00:01:01,700 --> 00:01:03,950 So this is that Solnik, which is a site and. 13 00:01:05,630 --> 00:01:07,280 And this is the container. 14 00:01:07,580 --> 00:01:10,790 The client from the Web flow from the Web browser. 15 00:01:10,790 --> 00:01:13,460 It can be Firefox, Internet Explorer and whatever. 16 00:01:13,910 --> 00:01:15,830 It makes a HTP request. 17 00:01:17,750 --> 00:01:25,250 No decision to be request is made by the container, the container also reads that it is a get request. 18 00:01:26,530 --> 00:01:33,200 OK, so the container that they read, the request and actually request and say is the GTECH list. 19 00:01:33,580 --> 00:01:39,200 So this is what is happening in the first part of the diagram and the second part of the diagram, not 20 00:01:39,270 --> 00:01:41,040 the request, has reached the container. 21 00:01:42,250 --> 00:01:45,790 The client has in this in this part of the diagram. 22 00:01:45,800 --> 00:01:47,710 The client has nothing to do with it. 23 00:01:48,490 --> 00:01:56,940 The container creates two objects to Java objects request, and each response that is requested is to 24 00:01:57,070 --> 00:01:58,780 be a response perspectively. 25 00:02:00,040 --> 00:02:02,150 These are the two objects that are created. 26 00:02:02,440 --> 00:02:04,060 Everything else remains the same. 27 00:02:04,780 --> 00:02:12,310 And the third part of the diagram, this, the servlet which we have, which which which has been instantiated, 28 00:02:12,700 --> 00:02:15,190 which has been which has been created. 29 00:02:15,460 --> 00:02:17,290 It's constructor has been created. 30 00:02:17,710 --> 00:02:20,110 This object pulls up ahead. 31 00:02:21,850 --> 00:02:23,310 I think it creates a tension. 32 00:02:24,010 --> 00:02:28,990 This is a military operation, every request will create a single state, will not create a separate 33 00:02:28,990 --> 00:02:29,590 object. 34 00:02:29,980 --> 00:02:35,710 Object is created only once during the first request or under Lord Lord of the Lord on start up, which 35 00:02:35,710 --> 00:02:43,040 means that when the dawn gets out of it as it started, the sternlicht will be instantiated. 36 00:02:43,900 --> 00:02:47,930 So there are two ways the subject will be instituted, as I have already mentioned. 37 00:02:48,790 --> 00:02:53,800 One is when the soldier starts up, you have to mention that specifically in Lord of Lord, Lord on 38 00:02:53,800 --> 00:03:00,460 Startup or the second, when the first request is made to the subject, when the second request is made 39 00:03:01,180 --> 00:03:05,480 and the subject will not be instantiated and the had will be created. 40 00:03:05,950 --> 00:03:10,000 Now in this thread you send the request and the response objects. 41 00:03:10,360 --> 00:03:18,690 These requests in response objects embody the request as you request and the response they have. 42 00:03:18,700 --> 00:03:20,020 Did you have functions? 43 00:03:20,020 --> 00:03:27,280 They have methods for which you can you can ask different different characteristics of requests as well 44 00:03:27,280 --> 00:03:28,240 as responses. 45 00:03:28,660 --> 00:03:32,900 OK, so now we will move to the next part of the diagram in the next lecture. 46 00:03:33,860 --> 00:03:34,150 Right. 47 00:03:34,330 --> 00:03:34,780 Thank you.