org.apache.shindig.gadgets.http
Class DefaultRequestPipeline

java.lang.Object
  extended by org.apache.shindig.gadgets.http.DefaultRequestPipeline
All Implemented Interfaces:
RequestPipeline

public class DefaultRequestPipeline
extends Object
implements RequestPipeline

A standard implementation of a request pipeline. Performs request caching and signing on top of standard HTTP requests.


Constructor Summary
DefaultRequestPipeline(HttpFetcher httpFetcher, HttpCache httpCache, com.google.inject.Provider<OAuthRequest> oauthRequestProvider, ResponseRewriterRegistry responseRewriterRegistry, InvalidationService invalidationService, HttpResponseMetadataHelper metadataHelper)
           
 
Method Summary
 HttpResponse execute(HttpRequest request)
          Execute the given request.
protected  void normalizeProtocol(HttpRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRequestPipeline

@Inject
public DefaultRequestPipeline(HttpFetcher httpFetcher,
                                     HttpCache httpCache,
                                     com.google.inject.Provider<OAuthRequest> oauthRequestProvider,
                                     ResponseRewriterRegistry responseRewriterRegistry,
                                     InvalidationService invalidationService,
                                     @Nullable
                                     HttpResponseMetadataHelper metadataHelper)
Method Detail

execute

public HttpResponse execute(HttpRequest request)
                     throws GadgetException
Description copied from interface: RequestPipeline
Execute the given request. TODO: This should throw a custom exception type.

Specified by:
execute in interface RequestPipeline
Throws:
GadgetException

normalizeProtocol

protected void normalizeProtocol(HttpRequest request)
                          throws GadgetException
Throws:
GadgetException


Copyright © 2007-2012. All Rights Reserved.