To iterate list in java is very basic operation, but over the years it’s gone through some significant changes. We will go through all these changes in given examples.
In this tutorial, we show how to work with the Python httplib2 module. The Hypertext Transfer Protocol (HTTP) is an application protocol for distributed, collaborative, hypermedia information systems. HTTP is the foundation of data communication for the World Wide Web. Python httplib2 module provides methods for accessing Web resources via HTTP. It supports many features, […]
In any application, which solves real world problems, having problems in it’s unit tests – is least desirable thing. Good written tests are assets while badly written tests are burden to your application. In this tutorial, we will learn unit testing FIRST principles that can help make your tests shine and ensure that they pay […]
In this java example, we will learn xpath namespace resolution into an XML file using NamespaceContext which has namespace declarations and respective usages.
This exception you may face while starting jetty server packaged inside your dropwizard REST application uber jar.
In this java example, we will learn to convert OutputStream to InputStream which you may need when you read data from one source which return an outputstream; and write/pass the data to other target which wants data in inputstream.
Learn to add username/password based authentication and role based authorization capabilities into Dropwizard REST APIs using Basic Authentication.
Python language contains the csv module which has classes to read and write data in the CSV format. Let’s learn it using some examples.
DropWizard health check is implemented by extending the HealthCheck class and returning Result.healthy() if everything is alright and Result.unhealthy() if something is not working – as expected.
Dropwizard includes both Apache HttpClient and Jersey Client. Let’s build REST client for consuming REST APIs across the network.