Issue 73: created module for object storage

git-svn-id: http://jclouds.googlecode.com/svn/trunk@1605 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
adrian.f.cole 2009-07-05 21:25:09 +00:00
parent f86e06f3d8
commit 530e7f38a0
3 changed files with 8 additions and 10 deletions

View File

@ -162,13 +162,11 @@ public class URLFetchServiceClient extends BaseHttpFutureCommandClient<HTTPReque
@Override
protected HttpResponse invoke(HTTPRequest request) throws IOException {
if (logger.isTraceEnabled())
logger.trace("%1$s - submitting request %2$s, headers: %3$s", request.getURL().getHost(),
request.getURL(), headersAsString(request.getHeaders()));
HTTPResponse response = urlFetchService.fetch(request);
if (logger.isTraceEnabled())
logger.info("%1$s - received response code %2$s, headers: %3$s", request.getURL()
.getHost(), response.getResponseCode(), headersAsString(response.getHeaders()));
logger.info("%1$s - received response code %2$s, headers: %3$s", request.getURL().getHost(),
response.getResponseCode(), headersAsString(response.getHeaders()));
return convert(response);
}

View File

@ -25,7 +25,7 @@ package org.jclouds.gae.config;
import org.jclouds.gae.URLFetchServiceClient;
import org.jclouds.http.HttpFutureCommandClient;
import org.jclouds.http.config.HttpFutureCommandClientModule;
import org.jclouds.http.config.ConfiguresHttpFutureCommandClient;
import com.google.appengine.api.urlfetch.URLFetchService;
import com.google.appengine.api.urlfetch.URLFetchServiceFactory;
@ -37,7 +37,7 @@ import com.google.inject.Provides;
*
* @author Adrian Cole
*/
@HttpFutureCommandClientModule
@ConfiguresHttpFutureCommandClient
public class URLFetchServiceClientModule extends AbstractModule {
@Override

View File

@ -52,7 +52,7 @@ import org.jclouds.command.pool.PoolConstants;
import org.jclouds.command.pool.config.FutureCommandConnectionPoolClientModule;
import org.jclouds.http.HttpFutureCommand;
import org.jclouds.http.HttpFutureCommandClient;
import org.jclouds.http.config.HttpFutureCommandClientModule;
import org.jclouds.http.config.ConfiguresHttpFutureCommandClient;
import org.jclouds.http.httpnio.pool.HttpNioConnectionPoolClient;
import org.jclouds.http.httpnio.pool.HttpNioFutureCommandConnectionPool;
import org.jclouds.http.httpnio.pool.HttpNioFutureCommandExecutionHandler;
@ -70,7 +70,7 @@ import com.google.inject.name.Named;
*
* @author Adrian Cole
*/
@HttpFutureCommandClientModule
@ConfiguresHttpFutureCommandClient
public class HttpNioConnectionPoolClientModule extends
FutureCommandConnectionPoolClientModule<NHttpConnection> {