Graphene Implementation 1.0.0.CR3

org.jboss.arquillian.ajocado.utils
Class HeaderUtils

java.lang.Object
  extended by org.jboss.arquillian.ajocado.utils.HeaderUtils

public final class HeaderUtils
extends Object

Encapsulates HTTP header creation

Author:
Karel Piwko

Method Summary
static RequestHeader createBasicAuthorization(String username, String password)
          Creates a header which corresponds to HTTP Basic authorization
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createBasicAuthorization

public static RequestHeader createBasicAuthorization(String username,
                                                     String password)
Creates a header which corresponds to HTTP Basic authorization

Parameters:
username - User name to be encoded in header
password - Password to be encoded in header
Returns:
Header which corresponds to HTTP Basic authorization for given credentials

Graphene Implementation 1.0.0.CR3

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.