net.unto.twitter
Interface HttpManager

All Known Implementing Classes:
TwitterHttpManager

public interface HttpManager

A simple HTTP connection interface.


Method Summary
 void clearCredentials()
           
 String get(UtilProtos.Url url)
          Perform an HTTP GET request to the specified URL.
 boolean hasCredentials()
           
 String post(UtilProtos.Url url)
          Perform an HTTP POST request to the specified URL.
 

Method Detail

hasCredentials

boolean hasCredentials()

clearCredentials

void clearCredentials()

get

String get(UtilProtos.Url url)
Perform an HTTP GET request to the specified URL.

Parameters:
url - the UtilProtos.Url to HTTP GET.
Returns:
a String containing the body of the HTTP GET response.

post

String post(UtilProtos.Url url)
Perform an HTTP POST request to the specified URL.

Parameters:
url - the UtilProtos.Url to HTTP POST.
Returns:
a String containing the body of the HTTP POST response.


Copyright © 2009 DeWitt Clinton. All Rights Reserved.