org.jclouds.trmk.vcloud_0_8.functions
Class ParseLoginResponseFromHeaders

java.lang.Object
  extended by org.jclouds.trmk.vcloud_0_8.functions.ParseLoginResponseFromHeaders
All Implemented Interfaces:
com.google.common.base.Function<HttpResponse,VCloudSession>

@Singleton
public class ParseLoginResponseFromHeaders
extends Object
implements com.google.common.base.Function<HttpResponse,VCloudSession>

This parses VCloudSession from HTTP headers.

Author:
Adrian Cole

Method Summary
 VCloudSession apply(HttpResponse from)
          parses the http response headers to create a new VCloudSession object.
 String parseTokenFromHeaders(HttpResponse from)
           
 
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
 

Method Detail

apply

public VCloudSession apply(HttpResponse from)
parses the http response headers to create a new VCloudSession object.

Specified by:
apply in interface com.google.common.base.Function<HttpResponse,VCloudSession>

parseTokenFromHeaders

public String parseTokenFromHeaders(HttpResponse from)


Copyright © 2009-2012 jclouds. All Rights Reserved.