Learn how to expand shortened URLs in Java using the Apache HttpClient.
Search Results for: add
RestTemplate with Digest Authentication
How to set up Digest Authentication for the Spring RestTemplate using HttpClient 4.
HttpSessionListener Example – Monitoring
Set up a HttpSessionListener to track the number of active sessions in a web application.
Spring Security Remember Me
Cookie Remember Me example with Spring Security.
Versioning a REST API
Versioning a REST API – version identifier in the URI or version media types?
Apache HttpClient Timeout
How to set up timeout for an HttpClient – connection and socket timeouts, and a mechanism for hard timeout of ongoing http connections.
Retrieve User Information in Spring Security
How to get the currently logged in user with Spring Security.
Redirect to Different Pages After Login With Spring Security
Example of how to Redirect to different pages after Login with Spring Security.
Unable to Locate Spring NamespaceHandler for XML Schema Namespace
Solving the – Unable to locate Spring NamespaceHandler for XML schema namespace – for all namespaces.
Spring Security Digest Authentication
Digest Authentication with a Spring MVC project – the XML namespace configuration and several examples of consuming the application with curl.
Spring NoSuchBeanDefinitionException
Causes and Solutions for the NoSuchBeanDefinitionException in Spring – “No qualifying bean of type”, “No Bean Named”, Proxied Beans, etc.
Control the Session with Spring Security
Configure Sessions with Spring Security – set up Concurrent Sessions, enable Session Fixation Protection and prevent URLs from containing Session information.
Spring Security Authentication Provider
How to Set Up a Custom Authentication Provider with Spring Security and the namespace configuration.
Spring Security Basic Authentication
Set up Basic Authentication in Spring – the XML Configuration, the Error Messages, and example of consuming the secured URLs with curl.
Spring BeanCreationException
A quick and practical guide to dealing with different causes of Spring BeanCreationException
Spring Security – security none, filters none, access permitAll
The differences between access=”permitAll”, filters=”none”, security=”none” in Spring Security.
Spring Maven Repositories
Guide on how to set up Maven to use Spring Repositories – Release Candidates, Milestones and Snapshots – after the Spring infrastructure updates.
Spring RequestMapping
Spring @RequestMapping – Basic Example, @RequestParam, @PathVariable, Header mapping
Spring BeanDefinitionStoreException
Causes and Solutions for the BeanDefinitionStoreException in Spring – FileNotFoundException, NoSuchMethodError, NoClassDefFoundError and IOException.
Hibernate 3 with Spring
Setup Hibernate 3 with Spring – the Java and XML Configuration, integration with MySQL and usage best practices.