com.jayway.restassured.internal
Class PreemptiveAuthSpecImpl

java.lang.Object
  extended by com.jayway.restassured.internal.PreemptiveAuthSpecImpl
All Implemented Interfaces:
PreemptiveAuthSpec, groovy.lang.GroovyObject

public class PreemptiveAuthSpecImpl
extends Object
implements PreemptiveAuthSpec, groovy.lang.GroovyObject


Constructor Summary
PreemptiveAuthSpecImpl(RequestSpecification requestBuilder)
           
 
Method Summary
 RequestSpecification basic(String userName, String password)
          Use preemptive http basic authentication.
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String property)
           
 Object invokeMethod(String method, Object arguments)
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setProperty(String property, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreemptiveAuthSpecImpl

public PreemptiveAuthSpecImpl(RequestSpecification requestBuilder)
Method Detail

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass mc)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public Object invokeMethod(String method,
                           Object arguments)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public Object getProperty(String property)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(String property,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject

basic

public RequestSpecification basic(String userName,
                                  String password)
Description copied from interface: PreemptiveAuthSpec
Use preemptive http basic authentication. This means that the authentication details are sent in the request header regardless if the server has challenged for authentication or not.

Specified by:
basic in interface PreemptiveAuthSpec
Parameters:
userName - The user name.
password - The password.
Returns:
The Request specification


Copyright © 2010-2011. All Rights Reserved.