Introduction to HtmlUnit
1. Introduction In this article, we will introduce HtmlUnit, a tool that allows us to, simply put, interact with and test an HTML site programmatically, using JAVA APIs. 2. About HtmlUnit HtmlUnit is...
View ArticleURL Encoding and Decoding in Java
1. Introduction Simply put, URL encoding translates special characters from the URL to a representation that adheres to the spec and can be correctly understood and interpreted. In this article, we’ll...
View ArticleJoin and Split Arrays and Collections in Java
1. Overview In this quick tutorial, we’ll learn how to join and to split Arrays and Collections in Java, making good use of the new stream support. 2. Join Two Arrays Let’s start by joining two Arrays...
View ArticleIntroduction to Spring Integration
1. Introduction This article will introduce the core concepts of Spring Integration primarily through small, practical examples. Spring Integration provides a lot of powerful components that can...
View ArticleIntro to the Spring ClassPathXmlApplicationContext
1. Overview The Spring Framework core is, simply put, an IoC container used to manage beans. There are two basic types of containers in Spring – the Bean Factory and the Application Context. The...
View ArticleSpring Security – @PreFilter and @PostFilter
1. Overview In this article we’ll learn how to use the @PreFilter and @PostFilter annotations to secure operations in a Spring application. When used together with the authenticated principal...
View ArticleJava Web Weekly, Issue 155
1. Spring and Java >> Latest Java 9 Schedule Appears to Be at Risk from the Outset [infoq.com] A quick but interesting analysis of the new Java 9 release schedule. >> Getting Started with...
View ArticlePattern Search with Grep in Java
1. Overview In this tutorial – we’ll learn how to search for a pattern in a given file/s – using Java and third party libraries such as Unix4J and Grep4J. 2. Background Unix has a powerful command...
View ArticleJava – Combine Multiple Collections
1. Overview In this tutorial, we will illustrate how to concatenate multiple collections into one logical collection. We’ll be exploring five different approaches – two using Java 8, one using Guava,...
View ArticleSimulated Annealing: The Traveling Salesman Problem in Java
1. Introduction In this tutorial, we’ll learn about the Simulated Annealing algorithm and we’ll show the example implementation based on the Traveling Salesman Problem (TSP). 2. Simulated Annealing...
View ArticleJava Logging with Nested Diagnostic Context (NDC)
1. Overview Nested Diagnostic Context (NDC) is a mechanism to help distinguish interleaved log messages from different sources. NDC does this by providing the ability to add distinctive contextual...
View ArticleOAuth2.0 and Dynamic Client Registration
1. Introduction In this tutorial, we are going to prepare a dynamic client registration with the OAuth2.0. The OAuth2.0 is an authorization framework that enables obtaining limited access to user...
View ArticleJava Web Weekly, Issue 156
1. Spring and Java >> No, being wary doesn’t hurt Java. A comment about Java licensing. [eisele.net] >> What we Need is Standardised Non-OSS Licenses [jooq.org] Notes about the...
View ArticleIntegration Patterns With Apache Camel
1. Overview This article will cover some essential enterprise integration patterns (EIPs) supported by Apache Camel. Integration patterns help by providing solutions for standardized ways of...
View ArticleSpring Cloud – Securing Services
1. Overview In the previous article, Spring Cloud – Bootstrapping, we’ve built a basic Spring Cloud application. This article shows how to secure it. We’ll naturally use Spring Security to share...
View ArticleMicrosoft Word Processing in Java with Apache POI
1. Overview Apache POI is a Java library for working with the various file formats based on the Office Open XML standards (OOXML) and Microsoft’s OLE 2 Compound Document format (OLE2). This tutorial...
View ArticleGuide to JAXB
1. Introduction This is an introductory article on JAXB (Java Architecture for XML Binding). First, we’ll show how to convert Java objects to XML and vice-versa, and then we’ll focus on generating...
View ArticleWorking with Images in Java
1. Overview In this tutorial, we are going to take a look at a few available image-processing libraries, and perform simple image processing operation – loading an image and drawing a shape on it....
View ArticleA Guide to Rolling File Appenders
1. Overview While log files often convey useful information, they naturally grow bigger over time, and if allowed to grow indefinitely, their size could become a problem. Logging libraries address...
View ArticleIntro to Inversion Control and Dependency Injection with Spring
1. Overview In this article, we’ll introduce the concepts of IoC (Inversion of Control) and DI (Dependency Injection), and we’ll then take a look at how these are implemented in the Spring framework....
View Article