This commit is contained in:
Adrian Cole 2011-12-19 17:40:15 -08:00
parent 0244e123c2
commit fc7bc3f638
2 changed files with 1 additions and 12 deletions

View File

@ -21,8 +21,8 @@ package org.jclouds.hpcloud.object.storage.functions;
import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.collect.Lists.newArrayList; import static com.google.common.collect.Lists.newArrayList;
import java.util.List;
import java.net.URI; import java.net.URI;
import java.util.List;
import org.jclouds.hpcloud.object.storage.domain.ContainerCDNMetadata; import org.jclouds.hpcloud.object.storage.domain.ContainerCDNMetadata;
import org.jclouds.hpcloud.object.storage.reference.HPCloudObjectStorageHeaders; import org.jclouds.hpcloud.object.storage.reference.HPCloudObjectStorageHeaders;
@ -33,7 +33,6 @@ import org.jclouds.rest.InvocationContext;
import com.google.common.base.Function; import com.google.common.base.Function;
import com.google.common.base.Splitter; import com.google.common.base.Splitter;
import com.google.common.collect.Iterables;
/** /**
* This parses {@link AccountMetadata} from HTTP headers. * This parses {@link AccountMetadata} from HTTP headers.

View File

@ -22,9 +22,6 @@ import static com.google.common.base.Preconditions.checkArgument;
import java.util.Map.Entry; import java.util.Map.Entry;
import javax.inject.Inject;
import org.jclouds.date.DateService;
import org.jclouds.http.HttpRequest; import org.jclouds.http.HttpRequest;
import org.jclouds.http.HttpResponse; import org.jclouds.http.HttpResponse;
import org.jclouds.openstack.swift.domain.ContainerMetadata; import org.jclouds.openstack.swift.domain.ContainerMetadata;
@ -43,15 +40,8 @@ import com.google.common.base.Function;
*/ */
public class ParseContainerMetadataFromHeaders implements Function<HttpResponse, ContainerMetadata>, public class ParseContainerMetadataFromHeaders implements Function<HttpResponse, ContainerMetadata>,
InvocationContext<ParseContainerMetadataFromHeaders> { InvocationContext<ParseContainerMetadataFromHeaders> {
private final DateService dateParser;
private GeneratedHttpRequest<?> request; private GeneratedHttpRequest<?> request;
@Inject
public ParseContainerMetadataFromHeaders(DateService dateParser) {
this.dateParser = dateParser;
}
public ContainerMetadata apply(HttpResponse from) { public ContainerMetadata apply(HttpResponse from) {
ContainerMetadata to = new ContainerMetadata(); ContainerMetadata to = new ContainerMetadata();