org.jclouds.openstack.functions
Class ParseAuthenticationResponseFromHeaders

java.lang.Object
  extended by org.jclouds.openstack.functions.ParseAuthenticationResponseFromHeaders
All Implemented Interfaces:
com.google.common.base.Function<HttpResponse,OpenStackAuthAsyncClient.AuthenticationResponse>, InvocationContext<ParseAuthenticationResponseFromHeaders>

public class ParseAuthenticationResponseFromHeaders
extends Object
implements com.google.common.base.Function<HttpResponse,OpenStackAuthAsyncClient.AuthenticationResponse>, InvocationContext<ParseAuthenticationResponseFromHeaders>

This parses OpenStackAuthAsyncClient.AuthenticationResponse from HTTP headers.

Author:
Adrian Cole

Field Summary
protected  Logger logger
           
 
Constructor Summary
ParseAuthenticationResponseFromHeaders(javax.inject.Provider<javax.ws.rs.core.UriBuilder> uriBuilderProvider)
           
 
Method Summary
 OpenStackAuthAsyncClient.AuthenticationResponse apply(HttpResponse from)
          parses the http response headers to create a new OpenStackAuthAsyncClient.AuthenticationResponse object.
protected  URI getURI(String headerValue)
           
 ParseAuthenticationResponseFromHeaders setContext(HttpRequest request)
           
 
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

logger

protected Logger logger
Constructor Detail

ParseAuthenticationResponseFromHeaders

@Inject
public ParseAuthenticationResponseFromHeaders(javax.inject.Provider<javax.ws.rs.core.UriBuilder> uriBuilderProvider)
Method Detail

apply

public OpenStackAuthAsyncClient.AuthenticationResponse apply(HttpResponse from)
parses the http response headers to create a new OpenStackAuthAsyncClient.AuthenticationResponse object.

Specified by:
apply in interface com.google.common.base.Function<HttpResponse,OpenStackAuthAsyncClient.AuthenticationResponse>

getURI

protected URI getURI(String headerValue)

setContext

public ParseAuthenticationResponseFromHeaders setContext(HttpRequest request)
Specified by:
setContext in interface InvocationContext<ParseAuthenticationResponseFromHeaders>


Copyright © 2009-2011 jclouds. All Rights Reserved.