HttpClient 4 – Do Not Follow Redirects 1. Overview In this article I will show how to configure the Apache HttpClient 4 to stop following redirects. By default, following the HTTP Spec, the HttpClient will automatically follow redirects. For some usecases, that may be perfectly fine, but there are certainly… Continue Reading httpclient-stop-follow-redirect

Initializing HashSet at the Time of Construction 1. Overview In this quick tutorial, we’ll introduce various methods of initializing the HashSet with values, at the time of its construction. If you’re instead looking to explore the features of HashSet, refer to this core article here. We’ll dive into Java built-in methods since Java 5 and before followed… Continue Reading java-initialize-hashset

Context and Servlet Initialization Parameters 1. Overview Servlets are plain Java classes that run in a servlet container. HTTP servlets (a specific type of servlet) are first class citizens in Java web applications.  The API of HTTP servlets is aimed at handling HTTP requests through the typical request-processing-response cycle, implemented… Continue Reading context-servlet-initialization-param

Integrating Groovy into Java Applications 1. Introduction In this tutorial, we’ll explore the latest techniques to integrate Groovy into a Java Application. 2. A Few Words About Groovy The Groovy programming language is a powerful, optionally-typed and dynamic language. It’s supported by the Apache Software Foundation and the Groovy community,… Continue Reading groovy-java-applications