Bloom Lab
Pages
Home
Bloom Code Guidelines
Showing posts with label
javaEE
.
Show all posts
Showing posts with label
javaEE
.
Show all posts
Thursday, August 13, 2015
Java Beans Overview
## About Java Beans Java Bean is an implementation standard. * Serialize. * Zero-argument constructor. * Encapsulated properties *(private)* with access through getters & setters. So, the bean can be mentioned as reusable software component in Java. In other-words almost any class that follows this convention can be a Java Bean. A bean can generate & receive the events from other objects. A java bean can be configured to act in different ways, its config can be saved and restored from persistent storage. Despite the growing amount of getters & setters that leads to boilerplate code, its flexible & can be well controlled by application.
Read more »
Monday, August 3, 2015
Java Servlets
## Servlets A servlet is simply a class which responds to a particular type of network request - most commonly an HTTP request. Another words, servlets extend the capabilities of servers that host applications accessed by means of a request-response programming model. Basically servlets are usually used to implement web applications. Servlets provide *"Here is an HTTP request, write to this HTTP response"* interaction flow. There are various frameworks which operate on top of servlets *(e.g. Struts)*. Java Servlets are part of the Java EE. Servlets run inside a servlet container *(e.g. Tomcat, Jetty web servers)* which handle the networking side (e.g. parsing an HTTP request, connection handling etc). All servlets must implement the `Servlet` interface, which defines lifecycle methods. The `HttpServlet` class provides methods, such as `doGet` and `doPost`, for handling HTTP-specific services.
Read more »
Older Posts
Home
Subscribe to:
Posts (Atom)