org.mule.example.launcher
Class SimpleHTTPClient

java.lang.Object
  extended by org.mule.example.launcher.SimpleHTTPClient

public class SimpleHTTPClient
extends Object

SimpleHTTPClient is a simple class that handles GET and POST HTTP requests.


Constructor Summary
SimpleHTTPClient()
           
 
Method Summary
 HTTPResponse httpClient(Object data)
          Performs a HTTP GET or HTTP POST request and returns the contents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleHTTPClient

public SimpleHTTPClient()
Method Detail

httpClient

public HTTPResponse httpClient(Object data)
Performs a HTTP GET or HTTP POST request and returns the contents.

Parameters:
data - Map instance containing the URL (should start with http://) and the method (GET or POST)
Returns:
The contents


Copyright © 2003-2011 MuleSoft, Inc.. All Rights Reserved.