public class ParseAuthenticationResponseFromHeaders extends Object implements com.google.common.base.Function<HttpResponse,AuthenticationResponse>, InvocationContext<ParseAuthenticationResponseFromHeaders>
AuthenticationResponse
from HTTP headers.Constructor and Description |
---|
ParseAuthenticationResponseFromHeaders(Provider<UriBuilder> uriBuilderProvider) |
Modifier and Type | Method and Description |
---|---|
AuthenticationResponse |
apply(HttpResponse from)
parses the http response headers to create a new
AuthenticationResponse object. |
protected URI |
getURI(String headerValue) |
ParseAuthenticationResponseFromHeaders |
setContext(HttpRequest request) |
protected Logger logger
@Inject public ParseAuthenticationResponseFromHeaders(Provider<UriBuilder> uriBuilderProvider)
public AuthenticationResponse apply(HttpResponse from)
AuthenticationResponse
object.apply
in interface com.google.common.base.Function<HttpResponse,AuthenticationResponse>
public ParseAuthenticationResponseFromHeaders setContext(HttpRequest request)
setContext
in interface InvocationContext<ParseAuthenticationResponseFromHeaders>
Copyright © 2009-2012 jclouds. All Rights Reserved.