Package com.foreach.cuke.rest.authentication

Examples of com.foreach.cuke.rest.authentication.Authentication.apply()


    Authentication defaultAuthentication = context.lookup( "rest.base.auth" );

    if ( defaultAuthentication != null ) {
      LOG.debug( "applying default request authentication {}", defaultAuthentication );
      defaultAuthentication.apply( uri, headers );
    }

    MultiValueMap<String, Object> values = new LinkedMultiValueMap<String, Object>();

    if ( dataTable != null ) {
View Full Code Here


          if ( authentication == null ) {
            fail( "No authentication configured under variable " + value );
          }

          LOG.debug( "applying request authentication {}", authentication );
          authentication.apply( uri, headers );
        }
        else if ( StringUtils.equalsIgnoreCase( "content-type", name ) ) {
          headers.setContentType( MediaType.valueOf( value ) );
        }
        else if ( StringUtils.equalsIgnoreCase( type, "data" ) ) {
View Full Code Here

    Authentication defaultAuthentication = context.lookup( "rest.base.auth" );

    if ( defaultAuthentication != null ) {
      LOG.debug( "applying default request authentication {}", defaultAuthentication );
      defaultAuthentication.apply( uri, headers );
    }

    HttpEntity<?> request = new HttpEntity<Object>( instance, headers );

    restRequest.execute(
View Full Code Here

      else {
        Authentication defaultAuthentication = context.lookup( "rest.base.auth" );

        if ( defaultAuthentication != null ) {
          LOG.debug( "applying default request authentication {}", defaultAuthentication );
          defaultAuthentication.apply( uri, headers );
        }
      }

      // Build request
      for ( Map.Entry<String, String> parameter : parameters.entrySet() ) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.