Processing Java and Webhooks

How can we implement webhooks from a service like Zapier inside a processing Java app? I would like to make an app that listens for webhook posts to get realtime information from websites like twitter.