org.mule.security.oauth.util
Class HttpUtilImpl

java.lang.Object
  extended by org.mule.security.oauth.util.HttpUtilImpl
All Implemented Interfaces:
HttpUtil

public class HttpUtilImpl
extends Object
implements HttpUtil

Default implementation for HttpUtil


Constructor Summary
HttpUtilImpl()
           
 
Method Summary
 String post(String url, String body)
          It posts the given body to a url and returns the response body as a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpUtilImpl

public HttpUtilImpl()
Method Detail

post

public String post(String url,
                   String body)
It posts the given body to a url and returns the response body as a string

Specified by:
post in interface HttpUtil
Parameters:
url - the url you want to consume
body - the body to post
Returns:
a string with the server's response body


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