ch.hsr.bieridee.test.http
Class AuthJsonHttp

java.lang.Object
  extended by ch.hsr.bieridee.test.http.AuthJsonHttp

public final class AuthJsonHttp
extends java.lang.Object

A factory that returns a default HttpHelper with support for HMAC authentication and JSON accept header.


Method Summary
static HttpHelper create()
          Create a new HttpHelper instance, add the AcceptRequestProcessor and the HMACAuthRequestProcessor to it and return it.
static HttpHelper create(java.lang.String username, java.lang.String password)
          Create a new HttpHelper instance, add the AcceptRequestProcessor and the HMACAuthRequestProcessor with cusotm login data to it and return it.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static HttpHelper create()
Create a new HttpHelper instance, add the AcceptRequestProcessor and the HMACAuthRequestProcessor to it and return it.

Returns:
HttpHelper instance

create

public static HttpHelper create(java.lang.String username,
                                java.lang.String password)
Create a new HttpHelper instance, add the AcceptRequestProcessor and the HMACAuthRequestProcessor with cusotm login data to it and return it.

Returns:
HttpHelper instance