Skip to content

Commit cd71a4d

Browse files
author
Adam Soos
committed
WS-3314: remove Rosette mentions from javadoc and error message
1 parent c0415ec commit cd71a4d

File tree

11 files changed

+45
-45
lines changed

11 files changed

+45
-45
lines changed

api/src/main/java/com/basistech/rosette/api/HttpRosetteAPI.java

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
import static java.net.HttpURLConnection.HTTP_OK;
8080

8181
/**
82-
* Access to the RosetteAPI via HTTP.
82+
* Access to the Analytics API via HTTP.
8383
*/
8484
public 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) {

api/src/main/java/com/basistech/rosette/api/MorphologicalFeature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package com.basistech.rosette.api;
1818

1919
/**
20-
* Specify which feature you want Rosette API Morphology endpoint to return. Specify COMPLETE for every feature.
20+
* Specify which feature you want Analytics API Morphology endpoint to return. Specify COMPLETE for every feature.
2121
*/
2222
public enum MorphologicalFeature {
2323
COMPLETE("complete"),

common/src/main/java/com/basistech/rosette/api/common/AbstractRosetteAPI.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import com.basistech.rosette.dm.AnnotatedText;
3030

3131
/**
32-
* This class defines the common API to Rosette, whether over HTTP or other integration mechanisms.
32+
* This class defines the common API to Analytics, whether over HTTP or other integration mechanisms.
3333
*/
3434
public abstract class AbstractRosetteAPI implements AutoCloseable {
3535

@@ -89,27 +89,27 @@ public abstract class AbstractRosetteAPI implements AutoCloseable {
8989
));
9090

9191
/**
92-
* Gets the set of language and script codes supported by the specified Rosette API endpoint.
92+
* Gets the set of language and script codes supported by the specified Analytics API endpoint.
9393
*
94-
* @param endpoint Rosette API endpoint.
94+
* @param endpoint Analytics API endpoint.
9595
* @return SupportedLanguagesResponse
9696
* @throws CommonRosetteAPIException for an error.
9797
*/
9898
public abstract SupportedLanguagesResponse getSupportedLanguages(String endpoint) throws CommonRosetteAPIException;
9999

100100
/**
101-
* Gets the set of language, script codes and transliteration scheme pairs supported by the specified Rosette API
101+
* Gets the set of language, script codes and transliteration scheme pairs supported by the specified Analytics API
102102
* endpoint.
103103
*
104-
* @param endpoint Rosette API endpoint.
104+
* @param endpoint Analytics API endpoint.
105105
* @return SupportedLanguagePairsResponse
106106
* @throws CommonRosetteAPIException for an error returned from the Rosette API.
107107
*/
108108
public abstract SupportedLanguagePairsResponse getSupportedLanguagePairs(String endpoint)
109109
throws CommonRosetteAPIException;
110110

111111
/**
112-
* Perform a request to an endpoint of the Rosette API.
112+
* Perform a request to an endpoint of the Analytics API.
113113
* @param endpoint which endpoint.
114114
* @param request the data for the request.
115115
* @param <RequestType> The class of the request object for this endpoint.
@@ -123,7 +123,7 @@ public abstract SupportedLanguagePairsResponse getSupportedLanguagePairs(String
123123
throws CommonRosetteAPIException;
124124

125125
/**
126-
* Perform a request to an endpoint of the Rosette API.
126+
* Perform a request to an endpoint of the Analytics API.
127127
* @param endpoint which endpoint.
128128
* @param request the data for the request.
129129
* @param <RequestType> The class of the request object for this endpoint.
@@ -134,7 +134,7 @@ public abstract <RequestType extends Request> AnnotatedText perform(String endpo
134134
throws CommonRosetteAPIException;
135135

136136
/**
137-
* Start an asynchronous request to an endpoint of the Rosette API.
137+
* Start an asynchronous request to an endpoint of the Analytics API.
138138
* @param endpoint which endpoint.
139139
* @param request the data for the request.
140140
* @param <RequestType> The class of the request object for this endpoint.

model/src/main/java/com/basistech/rosette/apimodel/AccuracyMode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import java.util.EnumSet;
2020

2121
/**
22-
* Rosette API relationship accuracy mode
22+
* Analytics API relationship accuracy mode
2323
*/
2424
public enum AccuracyMode {
2525
PRECISION("precision"),

model/src/main/java/com/basistech/rosette/apimodel/CommonRosetteAPIException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import com.basistech.rosette.RosetteRuntimeException;
1919

2020
/**
21-
* Exception from the Rosette API inherit from this exception.
21+
* Exception from the Analytics API inherit from this exception.
2222
*/
2323
public class CommonRosetteAPIException extends RosetteRuntimeException {
2424
private final transient ErrorResponse errorResponse;

model/src/main/java/com/basistech/rosette/apimodel/ConstantsResponse.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
public class ConstantsResponse extends Response {
3232

3333
/**
34-
* @return the version of Rosette API
34+
* @return the version of Analytics API
3535
*/
3636
private final String version;
3737

3838
/**
39-
* @return the Rosette API build info
39+
* @return the Analytics API build info
4040
*/
4141
private final String build;
4242

model/src/main/java/com/basistech/rosette/apimodel/DocumentRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import java.io.InputStream;
2525

2626
/**
27-
* This class represents the common information for all document processing requests to the Rosette API.
27+
* This class represents the common information for all document processing requests to the Analytics API.
2828
* Most applications do not use this class directly; the methods of the {@code RosetteAPI} class
2929
* create request objects. More complex applications may create objects of
3030
* this class for themselves via the {@link DocumentRequest.DocumentRequestBuilder}.
@@ -38,7 +38,7 @@
3838
* <li>A binary file image, attached as an additional MIME part to the request.
3939
* The application provides a MIME content type in {@code contentType}.</li>
4040
* <li>A URL of a data to download. The application provides the URL in
41-
* {@code contentUri}. Note that the Rosette API respects the content type
41+
* {@code contentUri}. Note that the Analytics API respects the content type
4242
* returned by the server for downloaded data.</li>
4343
* </ol>
4444
* In this object the 'content' item is an {@link Object}; it contains a {@link String}

model/src/main/java/com/basistech/rosette/apimodel/ErrorResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import lombok.EqualsAndHashCode;
2323

2424
/**
25-
* Rosette API response error data
25+
* Analytics API response error data
2626
*/
2727
@Data
2828
@EqualsAndHashCode

model/src/main/java/com/basistech/rosette/apimodel/InfoResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import lombok.Getter;
2323

2424
/**
25-
* Rosette API information
25+
* Analytics API information
2626
*/
2727
@Getter
2828
@EqualsAndHashCode

model/src/main/java/com/basistech/rosette/apimodel/batch/BatchRequest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ public final class BatchRequest {
3939
private final String batchId = UUID.randomUUID().toString();
4040

4141
/**
42-
* A URL for RosetteAPI to call to inform you the completion of the batch.
42+
* A URL for Analytics API to call to inform you the completion of the batch.
4343
* It must be accessible on the Internet and can only be http: or https:.
44-
* RosetteAPI will use the GET method so optional parameters need to be
44+
* Analytics API will use the GET method so optional parameters need to be
4545
* included as query parameters in the URL.
4646
*
47-
* @return completionCallbackUrl a URL for RosetteAPI to call when batch completes
47+
* @return completionCallbackUrl a URL for Analytics API to call when batch completes
4848
*/
4949
private final String completionCallbackUrl;
5050

@@ -56,8 +56,8 @@ public final class BatchRequest {
5656
/**
5757
* Specifies where the results should be stored. Only a valid AWS S3 URL
5858
* is supported at this time. The S3 bucket needs to have a proper policy
59-
* statement to grant read/write permission to RosetteAPI within the batch
60-
* processing time window. RosetteAPI's AWS account number is 625892746452.
59+
* statement to grant read/write permission to Analytics API within the batch
60+
* processing time window. Analytics API's AWS account number is 625892746452.
6161
*
6262
* Example policy statement:
6363
*

0 commit comments

Comments
 (0)