org.javaswift.joss.command.impl.identity
Class BasicAuthenticationCommandImpl

java.lang.Object
  extended by org.javaswift.joss.command.impl.core.AbstractCommand<org.apache.http.client.methods.HttpGet,Access>
      extended by org.javaswift.joss.command.impl.identity.BasicAuthenticationCommandImpl
All Implemented Interfaces:
Closeable, Callable<Access>, Command<Access>, AuthenticationCommand

public class BasicAuthenticationCommandImpl
extends AbstractCommand<org.apache.http.client.methods.HttpGet,Access>
implements AuthenticationCommand


Field Summary
static String X_AUTH_TOKEN
           
static String X_STORAGE_URL
           
 
Fields inherited from class org.javaswift.joss.command.impl.core.AbstractCommand
LOG, request, response
 
Constructor Summary
BasicAuthenticationCommandImpl(org.apache.http.client.HttpClient httpClient, String url, String username, String password)
           
 
Method Summary
protected  org.apache.http.client.methods.HttpGet createRequest(String url)
           
 Access getReturnObject(org.apache.http.HttpResponse response)
           
 HttpStatusChecker[] getStatusCheckers()
           
 String getUrl()
           
 
Methods inherited from class org.javaswift.joss.command.impl.core.AbstractCommand
addHeaders, call, close, closeStreamAutomatically, createObjectMapper, modifyURI, setAllowErrorLog, setHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.javaswift.joss.command.shared.core.Command
call
 

Field Detail

X_AUTH_TOKEN

public static final String X_AUTH_TOKEN
See Also:
Constant Field Values

X_STORAGE_URL

public static final String X_STORAGE_URL
See Also:
Constant Field Values
Constructor Detail

BasicAuthenticationCommandImpl

public BasicAuthenticationCommandImpl(org.apache.http.client.HttpClient httpClient,
                                      String url,
                                      String username,
                                      String password)
Method Detail

getReturnObject

public Access getReturnObject(org.apache.http.HttpResponse response)
                       throws IOException
Overrides:
getReturnObject in class AbstractCommand<org.apache.http.client.methods.HttpGet,Access>
Throws:
IOException

createRequest

protected org.apache.http.client.methods.HttpGet createRequest(String url)
Specified by:
createRequest in class AbstractCommand<org.apache.http.client.methods.HttpGet,Access>

getStatusCheckers

public HttpStatusChecker[] getStatusCheckers()
Specified by:
getStatusCheckers in class AbstractCommand<org.apache.http.client.methods.HttpGet,Access>

getUrl

public String getUrl()
Specified by:
getUrl in interface AuthenticationCommand


Copyright © 2012-2014 42 BV. All Rights Reserved.