All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.sitebricks.client.Web Maven / Gradle / Ivy

There is a newer version: 0.8.11
Show newest version
package com.google.sitebricks.client;

import com.google.inject.ImplementedBy;

import java.util.Map;

/**
 * @author Dhanji R. Prasanna ([email protected])
 */
@ImplementedBy(CommonsWeb.class)
public interface Web {
  enum Auth {
    BASIC, DIGEST
  }

  FormatBuilder clientOf(String url);

  FormatBuilder clientOf(String url, Map headers);

  static interface FormatBuilder {
     ReadAsBuilder transports(Class clazz);

    FormatBuilder auth(Auth auth, String username, String password);
  }

  static interface ReadAsBuilder {
    WebClient over(Class clazz);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy