package com.alexrnl.jbetaseries;

import java.util.logging.Logger;

/**
 * Entry point of the interface to the BetaSeries API.<br />
 * @author Alex
 */
public final class JBetaSeries {
	/** Logger */
	private static Logger	lg	= Logger.getLogger(JBetaSeries.class.getName());
	
	/** The key to use for the API */
	private final String	key;
	/** The preferred data type format */
	private final Format	format;
	/** */
	private final String	userAgent;
	/** The token for the user, <code>null</code> if no user is logged. */
	private final String	token;
	
	/**
	 * Constructor #1.<br />
	 * This will use the {@link Format#XML XML} format of the API.
	 * @param key
	 *        the API key to use.
	 */
	public JBetaSeries (final String key) {
		this(key, Format.XML, "");
	}
	
	/**
	 * Constructor #2.<br />
	 * @param key
	 *        the API key to use.
	 * @param format
	 *        the data type required for the API.
	 */
	public JBetaSeries (final String key, final Format format) {
		this(key, format, "jBetaSeries");
	}
	
	/**
	 * Constructor #2.<br />
	 * @param key
	 *        the API key to use.
	 * @param format
	 *        the data type required for the API.
	 * @param userAgent
	 *        the user-agent to use with the application.
	 */
	public JBetaSeries (final String key, final Format format, final String userAgent) {
		super();
		this.key = key;
		this.format = format;
		this.userAgent = userAgent;
		this.token = null;
	}
	
}

@@ -406,16 +406,51 @@
 at;%0A%09/**
+ The user-agent to use with the API
  */%0A%09pri
@@ -1035,10 +1035,9 @@
 at, 
-%22j
+J
 Beta
@@ -1042,17 +1042,38 @@
 taSeries
-%22
+.class.getSimpleName()
 );%0A%09%7D%0A%09%0A

Fix default user-agent