org.jclouds.openstack.functions
Class ParseAuthenticationResponseFromHeaders
java.lang.Object
org.jclouds.openstack.functions.ParseAuthenticationResponseFromHeaders
- All Implemented Interfaces:
- com.google.common.base.Function<HttpResponse,AuthenticationResponse>, InvocationContext<ParseAuthenticationResponseFromHeaders>
public class ParseAuthenticationResponseFromHeaders
- extends Object
- implements com.google.common.base.Function<HttpResponse,AuthenticationResponse>, InvocationContext<ParseAuthenticationResponseFromHeaders>
This parses 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 AuthenticationResponse apply(HttpResponse from)
- parses the http response headers to create a new
AuthenticationResponse
object.
- Specified by:
apply
in interface com.google.common.base.Function<HttpResponse,AuthenticationResponse>
getURI
protected URI getURI(String headerValue)
setContext
public ParseAuthenticationResponseFromHeaders setContext(HttpRequest request)
- Specified by:
setContext
in interface InvocationContext<ParseAuthenticationResponseFromHeaders>
Copyright © 2009-2012 jclouds. All Rights Reserved.