org.jclouds.gae
Class ConvertToGaeRequest

java.lang.Object
  extended by org.jclouds.gae.ConvertToGaeRequest
All Implemented Interfaces:
com.google.common.base.Function<HttpRequest,com.google.appengine.api.urlfetch.HTTPRequest>

@Singleton
public class ConvertToGaeRequest
extends Object
implements com.google.common.base.Function<HttpRequest,com.google.appengine.api.urlfetch.HTTPRequest>

Author:
Adrian Cole

Field Summary
 Set<String> prohibitedHeaders
           
static String USER_AGENT
           
protected  HttpUtils utils
           
 
Method Summary
 com.google.appengine.api.urlfetch.HTTPRequest apply(HttpRequest request)
          byte [] content is replayable and the only content type supportable by GAE.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Field Detail

USER_AGENT

public static final String USER_AGENT
See Also:
Constant Field Values

utils

protected final HttpUtils utils

prohibitedHeaders

public final Set<String> prohibitedHeaders
Method Detail

apply

public com.google.appengine.api.urlfetch.HTTPRequest apply(HttpRequest request)
byte [] content is replayable and the only content type supportable by GAE. As such, we convert the original request content to a byte array.

Specified by:
apply in interface com.google.common.base.Function<HttpRequest,com.google.appengine.api.urlfetch.HTTPRequest>


Copyright © 2009-2011 jclouds. All Rights Reserved.