org.apache.shindig.gadgets.http
Interface HttpFetcher
- All Known Implementing Classes:
- BasicHttpFetcher
public interface HttpFetcher
Perform an request for the given resource. Does not perform caching, authentication, or stats.
This class should only be used to implement network-level fetching of resources. While we use
HTTP to represent the transport layer, it's important to note that this fetcher may be used for
other types of URI-based resources and does not necessarily require HTTP.
fetch
HttpResponse fetch(HttpRequest request)
throws GadgetException
- Fetch HTTP content.
- Parameters:
request - The request to fetch.
- Returns:
- An HTTP response from the relevant resource, including error conditions.
- Throws:
GadgetException - In the event of a failure that can't be mapped to an HTTP result code.
Copyright © 2007-2012. All Rights Reserved.