Building Web Servers in Java

Building Web Servers in Java

English | MP4 | AVC 1920×1080 | AAC 48KHz 2ch | 1h 45m | 632 MB

Leverage the new HTTP 2.0 client bundled with Java 9 to build a fully functional HTTP REST API

A Web server is a program that uses HTTP to serve the files that form Web pages to users, in response to their requests, which are then forwarded by their computers’ HTTP clients. Dedicated computers and appliances may also be referred to as Web servers. It’s a software that can process a client request and send a response back to the client. Web servers and web clients are two separate applications, so there should be a common language for communication. HTML is the common language between server and client. A web server is also called a Hypertext Transfer Protocol (HTTP) server because it uses HTTP to communicate with its clients, which are usually web browsers. Basically a web server is used to host web sites but other web servers also exist, such as gaming, storage, FTP, email, and more.

To start off the course, we will consume data from a public REST API using the new HTTP 2.0 client built into Java 9, providing both a synchronous and asynchronous example. Moving along, you will learn how to implement your own internet-facing REST API. We will do this by extending the previous example to publish data from a data file over the internet. We will then add a token-based authentication layer to our API, including examples of how to encrypt passwords and store them in a MySQL database. This course will teach you all you need to know to leverage the new HTTP 2.0 client bundled with Java 9 to build a fully functional HTTP REST API, complete with authentication, leveraging Hibernate and MySQL.

This video begins with the basics that all Java developers use every day and then delves into detailed concepts and tricks to speed up your development. You will learn the required concepts by performing practical tasks and implementing them in your daily activities, all at your own pace.

What You Will Learn

  • Web API’s and the common formats used to support them – REST/SOAP and JSON/XML
  • Accessing Web API’s with the new HTTP 2.0 client
  • Designing your own Web API
  • Implementing your own Web API
  • Tying an API in with a database to add authentication
  • Encrypt passwords and store them in a MySQL database
  • Build a fully functional HTTP REST API leveraging Hibernate and MySQL
Table of Contents

Reading REST APIs in Java 9
1 The Course Overview
2 Introduction to Web APIs – REST and SOAP
3 REST APIs
4 The New HTTP 2.0 Client in Java 9
5 Accessing a Public Google API Using the Client

Building a REST API
6 Designing a REST API – Basic Principles
7 Designing an API for a Vehicle Information Service
8 Introduction to Spring Boot
9 Implementing the API
10 Unit Testing the API
11 Retrieving Data Using Hibernate and Postgres
12 Adding Authentication to the API