Servlet Jargons

Servlet Jargons

Before going through the complete Servlet tutorial, it is better to understand tech jargons related to Servlets.

Following are some of the tech jargons related to Java Servlet technology,

  • HTTP
  • HTTP Request
  • HTTP Response
  • Request Methods
  • HTTP Server
  • Servlet Container
  • Application Server

Hyper Text Transfer Protocol (HTTP)

HTTP is the corner stone of the World Wide Web(WWW). 

It is the protocol used to exchange hyper text between the client and server. 

The present version that is in popular use is HTTP/1.1. HTTP standards are defined by Internet Engineering Task Force (IETF) and World Wide Web Consortium (W3C). HTTP is a request-response based model. 

HTTP uses TCP connections over port 80 by default. HTTP is a stateless protocol. 

That means each and every request is processed individually and no state information is carried over from one request to another.


HTTP Request and Response

HTTP Request is a request from a client to a HTTP server. 

It contains the request method to be used, the resource identifier and protocol.

The server’s response to a HTTP request received. There processes the received HTTP request and sends back the HTTP response. 

It contains the response status code, response phrase, response header fields and the response message.

Request Methods

As part of the HTTP Request, the request method that should be applied on the resource will be sent. 

GET, POST, HEAD, PUT, DELETE and TRACE are those methods.

GET – Used to retrieve data and should not have any other effect on resource.

HEAD – Similar to GET method, but used to retrieve only the header information.

POST – Generally used to submit block of data enclosed in the request message body.

PUT – The enclosed entity to be stored in the server under the resource name given.

DELETE – To delete the specified resource.

TRACE – Request to echo back the sent request.

HTTP Server

Sometimes ever referred to “Web Server”. Here we are meaning the software part of the server. 

The HTTP server stores, processes and delivers web pages to requesting clients. 

In other words, processes the HTTP request and responds with the HTTP response. 

Apache is an example of HTTP server.

Servlet Container

Is a component is the application server, which loads the servlets and manages the servlet life cycle and responds back with the dynamic content to the HTTP server. 

Servlet container is used by the HTTP server for processing the dynamic content. 

Tomcat is an example for servlet container.

Application Server

Java application server is an implementation of JEE specification container. 

It can be used for RMI, EJB, JMS, web services and for the whole JEE API stack. 

JBOSS is an example of application server.

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值