Converting Between LocalDate and XMLGregorianCalendar 1. Overview In this quick tutorial, we’ll discuss LocalDate and XMLGregorianCalendar and provide examples of converting between the two types. 2. XMLGregorianCalendar The XML Schema standard defines clear rules for specifying dates in XML format. In order to use this format, the Java class XMLGregorianCalendar,… Continue Reading java-localdate-to-xmlgregoriancalendar

A Java Client for a WebSockets API 1. Introduction HTTP (Hypertext Transfer Protocol) is a stateless request-response protocol. Its simple design makes it very scalable but unsuitable and inefficient for highly interactive real-time web applications because of the amount of overhead that needs to be transmitted along with every request/response.… Continue Reading websockets-api-java-spring-client

How to Manually Authenticate User with Spring Security 1. Overview In this quick article, we’ll focus on how to programmatically set an authenticated user in Spring Security and Spring MVC. 2. Spring Security Simply put, Spring Security hold the principal information of each authenticated user in a ThreadLocal – represented… Continue Reading manually-set-user-authentication-spring-security