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 parsesAuthenticationResponse
from HTTP headers.
-
-
Constructor Summary
Constructors Constructor Description ParseAuthenticationResponseFromHeaders()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationResponse
apply(HttpResponse from)
parses the http response headers to create a newAuthenticationResponse
object.protected URI
getURI(String headerValue)
ParseAuthenticationResponseFromHeaders
setContext(HttpRequest request)
-
-
-
Field Detail
-
logger
protected Logger logger
-
-
Method Detail
-
apply
public AuthenticationResponse apply(HttpResponse from)
parses the http response headers to create a newAuthenticationResponse
object.- Specified by:
apply
in interfacecom.google.common.base.Function<HttpResponse,AuthenticationResponse>
- Specified by:
apply
in interfaceFunction<HttpResponse,AuthenticationResponse>
-
setContext
public ParseAuthenticationResponseFromHeaders setContext(HttpRequest request)
- Specified by:
setContext
in interfaceInvocationContext<ParseAuthenticationResponseFromHeaders>
-
-