Package org.jclouds.openstack.functions
Class ParseAuthenticationResponseFromHeaders
- java.lang.Object
-
- org.jclouds.openstack.functions.ParseAuthenticationResponseFromHeaders
-
- All Implemented Interfaces:
com.google.common.base.Function<HttpResponse,AuthenticationResponse>,Function<HttpResponse,AuthenticationResponse>,InvocationContext<ParseAuthenticationResponseFromHeaders>
public class ParseAuthenticationResponseFromHeaders extends Object implements com.google.common.base.Function<HttpResponse,AuthenticationResponse>, InvocationContext<ParseAuthenticationResponseFromHeaders>
This parsesAuthenticationResponsefrom HTTP headers.
-
-
Constructor Summary
Constructors Constructor Description ParseAuthenticationResponseFromHeaders()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationResponseapply(HttpResponse from)parses the http response headers to create a newAuthenticationResponseobject.protected URIgetURI(String headerValue)ParseAuthenticationResponseFromHeaderssetContext(HttpRequest request)
-
-
-
Field Detail
-
logger
protected Logger logger
-
-
Method Detail
-
apply
public AuthenticationResponse apply(HttpResponse from)
parses the http response headers to create a newAuthenticationResponseobject.- Specified by:
applyin interfacecom.google.common.base.Function<HttpResponse,AuthenticationResponse>- Specified by:
applyin interfaceFunction<HttpResponse,AuthenticationResponse>
-
setContext
public ParseAuthenticationResponseFromHeaders setContext(HttpRequest request)
- Specified by:
setContextin interfaceInvocationContext<ParseAuthenticationResponseFromHeaders>
-
-