7979import static java .net .HttpURLConnection .HTTP_OK ;
8080
8181/**
82- * Access to the RosetteAPI via HTTP.
82+ * Access to the Analytics API via HTTP.
8383 */
8484public class HttpRosetteAPI extends AbstractRosetteAPI {
8585
@@ -104,16 +104,16 @@ private HttpRosetteAPI() {
104104 }
105105
106106 /**
107- * Constructs a Rosette API instance using the builder syntax.
107+ * Constructs an Analytics API instance using the builder syntax.
108108 *
109- * @param key Rosette API key. This may be null for use with an on-premise deployment
110- * of the Rosette API.
111- * @param urlToCall Alternate Rosette API URL. {@code null} uses the default, public, URL.
109+ * @param key Analytics API key. This may be null for use with an on-premise deployment
110+ * of the Analytics API.
111+ * @param urlToCall Alternate Analytics API URL. {@code null} uses the default, public, URL.
112112 * @param failureRetries Number of times to retry in case of failure; {@code null} uses the
113113 * default value: 1.
114114 * @param connectionConcurrency Number of concurrent connections. Pass this if have subscribed
115115 * to a plan that supports enhanced concurrency, or if you are using
116- * an on-premise deployment of the Rosette API. {@code null} uses the
116+ * an on-premise deployment of the Analytics API. {@code null} uses the
117117 * default value: 2.
118118 * @throws HttpRosetteAPIException Problem with the API request
119119 */
@@ -216,32 +216,32 @@ public int getFailureRetries() {
216216 }
217217
218218 /**
219- * Gets information about the Rosette API, returns name, version, build number and build time.
219+ * Gets information about the Analytics API, returns name, version, build number and build time.
220220 *
221221 * @return InfoResponse
222- * @throws HttpRosetteAPIException Rosette specific exception
222+ * @throws HttpRosetteAPIException Analytics specific exception
223223 * @throws IOException General IO exception
224224 */
225225 public InfoResponse info () throws IOException , HttpRosetteAPIException {
226226 return sendGetRequest (urlBase + INFO_SERVICE_PATH , InfoResponse .class );
227227 }
228228
229229 /**
230- * Pings the Rosette API for a response indicating that the service is available.
230+ * Pings the Analytics API for a response indicating that the service is available.
231231 *
232232 * @return PingResponse
233- * @throws HttpRosetteAPIException Rosette specific exception
233+ * @throws HttpRosetteAPIException Analytics specific exception
234234 * @throws IOException General IO exception
235235 */
236236 public PingResponse ping () throws IOException , HttpRosetteAPIException {
237237 return sendGetRequest (urlBase + PING_SERVICE_PATH , PingResponse .class );
238238 }
239239
240240 /**
241- * Gets the set of language and script codes supported by the specified Rosette API endpoint.
241+ * Gets the set of language and script codes supported by the specified Analytics API endpoint.
242242 *
243243 * @return SupportedLanguagesResponse
244- * @throws HttpRosetteAPIException for an error returned from the Rosette API.
244+ * @throws HttpRosetteAPIException for an error returned from the Analytics API.
245245 */
246246 @ Override
247247 public SupportedLanguagesResponse getSupportedLanguages (String endpoint ) throws HttpRosetteAPIException {
@@ -254,12 +254,12 @@ public SupportedLanguagesResponse getSupportedLanguages(String endpoint) throws
254254 }
255255
256256 /**
257- * Gets the set of language, script codes and transliteration scheme pairs supported by the specified Rosette API
257+ * Gets the set of language, script codes and transliteration scheme pairs supported by the specified Analytics API
258258 * endpoint.
259259 *
260- * @param endpoint Rosette API endpoint.
260+ * @param endpoint Analytics API endpoint.
261261 * @return SupportedLanguagePairsResponse
262- * @throws HttpRosetteAPIException for an error returned from the Rosette API.
262+ * @throws HttpRosetteAPIException for an error returned from the Analytics API.
263263 */
264264 @ Override
265265 public SupportedLanguagePairsResponse getSupportedLanguagePairs (String endpoint ) throws HttpRosetteAPIException {
@@ -279,7 +279,7 @@ public SupportedLanguagePairsResponse getSupportedLanguagePairs(String endpoint)
279279 * @param <RequestType> the type of the request object.
280280 * @param <ResponseType> the type of the response object.
281281 * @return the response.
282- * @throws HttpRosetteAPIException for an error returned from the Rosette API.
282+ * @throws HttpRosetteAPIException for an error returned from the Analytics API.
283283 * @throws RosetteRuntimeException for other errors, such as communications problems with HTTP.
284284 */
285285 @ Override
@@ -300,7 +300,7 @@ public <RequestType extends Request, ResponseType extends Response> ResponseType
300300 * @param request the data for the request.
301301 * @param <RequestType> the type of the request object.
302302 * @return the response, {@link com.basistech.rosette.dm.AnnotatedText}.
303- * @throws HttpRosetteAPIException for an error returned from the Rosette API.
303+ * @throws HttpRosetteAPIException for an error returned from the Analytics API.
304304 * @throws RosetteRuntimeException for other errors, such as communications problems with HTTP.
305305 */
306306 @ Override
@@ -326,11 +326,11 @@ public <RequestType extends Request> AnnotatedText perform(String endpoint, Requ
326326 }
327327
328328 /**
329- * Sends a GET request to Rosette API.
329+ * Sends a GET request to Analytics API.
330330 * <p>
331331 * Returns a Response.
332332 *
333- * @param urlStr Rosette API end point.
333+ * @param urlStr Analytics API end point.
334334 * @param clazz Response class
335335 * @return Response
336336 * @throws HttpRosetteAPIException
@@ -351,11 +351,11 @@ private <T extends Response> T sendGetRequest(String urlStr, Class<T> clazz) thr
351351 }
352352
353353 /**
354- * Sends a POST request to Rosette API.
354+ * Sends a POST request to Analytics API.
355355 * <p>
356356 * Returns a Response.
357357 *
358- * @param urlStr Rosette API end point.
358+ * @param urlStr Analytics API end point.
359359 * @param clazz Response class
360360 * @return Response
361361 * @throws IOException
@@ -570,7 +570,7 @@ private <T extends Object> T getResponse(HttpResponse httpResponse, Class<T> cla
570570 }
571571 if (429 == status ) {
572572 String concurrencyMessage = "You have exceeded your plan's limit on concurrent calls. "
573- + "This could be caused by multiple processes or threads making Rosette API calls "
573+ + "This could be caused by multiple processes or threads making Analytics API calls "
574574 + "in parallel, or if your httpClient is configured with higher concurrency "
575575 + "than your plan allows." ;
576576 if (emHeader == null ) {
0 commit comments