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

org.johnnei.enjin.IEnjinApiFactory Maven / Gradle / Ivy

The newest version!
package org.johnnei.enjin;

public interface IEnjinApiFactory {

	/**
	 * Creates an {@link IEnjinApi} instance for the given url
	 * @param url
	 *        The url on which the Enjin API is available.
	 */
	IEnjinApi createForDomain(String url);

	/**
	 * Creates an {@link IEnjinApi} instance for the given url
	 * @param url
	 *        The url on which the Enjin API is available.
	 * @param readOnly
	 *        If the API access at the given url is configured to be read-only.
	 */
	IEnjinApi createForDomain(String url, boolean readOnly);

	/**
	 * Creates an {@link IEnjinApi} instance for the given url
	 * @param url
	 *        The url on which the Enjin API is available.
	 * @param readOnly
	 *        If the API access at the given url is configured to be read-only.
	 * @param apiKey
	 *        The API key to authenticate as the website. null will be treated as not allowed to
	 *        authenticate as the website.
	 */
	IEnjinApi createForDomain(String url, boolean readOnly, String apiKey);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy