org.jclouds.openstack.functions
Class ParseAuthenticationResponseFromHeaders

java.lang.Object
  extended by 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

Field Summary
protected  Logger logger
           
 
Constructor Summary
ParseAuthenticationResponseFromHeaders(javax.inject.Provider<javax.ws.rs.core.UriBuilder> uriBuilderProvider)
           
 
Method Summary
 AuthenticationResponse apply(HttpResponse from)
          parses the http response headers to create a new AuthenticationResponse object.
protected  URI getURI(String headerValue)
           
 ParseAuthenticationResponseFromHeaders setContext(HttpRequest request)
           
 
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
 

Field Detail

logger

protected Logger logger
Constructor Detail

ParseAuthenticationResponseFromHeaders

@Inject
public ParseAuthenticationResponseFromHeaders(javax.inject.Provider<javax.ws.rs.core.UriBuilder> uriBuilderProvider)
Method Detail

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.