public abstract class ExampleBase extends Object
HttpRosetteAPI| Constructor and Description |
|---|
ExampleBase() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getAltUrlFromSystemProperty() |
protected String |
getApiKeyFromSystemProperty() |
protected static String |
responseToJson(com.basistech.rosette.apimodel.Response response)
Converts a response to JSON string
|
protected static void |
showUsage(Class<? extends ExampleBase> commandClass)
Prints out how to run the program
|
protected String getApiKeyFromSystemProperty()
protected String getAltUrlFromSystemProperty()
protected static void showUsage(Class<? extends ExampleBase> commandClass)
commandClass - the class to use in the usage message.protected static String responseToJson(com.basistech.rosette.apimodel.Response response) throws com.fasterxml.jackson.core.JsonProcessingException
response - Response from RosetteAPIcom.fasterxml.jackson.core.JsonProcessingException - if the Jackson library throws an error serializing.Copyright © 2014–2020 Basis Technology Corp.. All rights reserved.