Skip to content

Servlet container implementation that serves HTTP request for thread based PHP ApplicationServer.

Notifications You must be signed in to change notification settings

wagnert/TechDivision_ServletContainer

Repository files navigation

Introduction

The servlet container, may also be known as web container, will provide you with a fully HTTP 1.1 compatible web server. The actual container implementation allows you to serve all types of HTTP request by interacting with so called servlets. That, in our case, are pure PHP classes implementing the Servlet inferface. The servlet container is not a standalone daemone, instead it is a component of appserver.io and needs the application server runtime and base component to work.

Instead of writing a bootstrapper file, index.php in most cases, a servlet is a class, that provides methods that will be automatically invoked by the servlet container when a request, your servlet maps to the request URI, came in. As HTTP 1.1 specifies eight methods the Servlet interface defines one method for each of them. In most cases you will implement the GET and/or the POST method.

For further readings on servlets and how we use them you may have a look at the following documentation entries.

  • New WebServer project : Have a look here

  • A separate ServletEngine : Is documented here

  • How to write Servlets : Have a look here

About

Servlet container implementation that serves HTTP request for thread based PHP ApplicationServer.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages