org.jclouds.openstack.functions
Class ParseAuthenticationResponseFromHeaders
java.lang.Object
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
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 |
logger
protected Logger logger
ParseAuthenticationResponseFromHeaders
@Inject
public ParseAuthenticationResponseFromHeaders(javax.inject.Provider<javax.ws.rs.core.UriBuilder> uriBuilderProvider)
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.