A B C D E F G H I L M N O P Q R S T U V W 
All Classes All Packages

A

addDetectedLanguage(DetectedLanguage) - Method in class io.github.brenoepics.at4j.data.response.DetectResponse
Adds a detected language to the list.
addHeader(String, String) - Method in class io.github.brenoepics.at4j.util.rest.RestRequest
Adds a header to the request.
addPrivateData(String) - Static method in class io.github.brenoepics.at4j.util.logging.ProtectedLogger
Adds private data to be asterisked out in log messages.
addQueryParameter(String, String) - Method in class io.github.brenoepics.at4j.util.rest.RestRequest
Adds a query parameter to the url.
addQueryParameters(Map<String, String>) - Method in class io.github.brenoepics.at4j.util.rest.RestRequest
Adds multiple query parameters to the url.
addRequestToQueue(RestRequest) - Method in class io.github.brenoepics.at4j.core.ratelimit.RateLimitBucket
Adds the given request to the bucket's queue.
addResult(TranslationResult) - Method in class io.github.brenoepics.at4j.data.response.TranslationResponse
Method to add a translation result to the list.
addText(String) - Method in class io.github.brenoepics.at4j.data.request.DetectLanguageParams
Adds a text to the list of texts to be analyzed for language detection.
API_VERSION_PARAMETER_INVALID - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
ASIA_PACIFIC - io.github.brenoepics.at4j.azure.BaseURL
The domain of the Azure Translator API for the Asia Pacific.
asRestRequestInformation() - Method in class io.github.brenoepics.at4j.util.rest.RestRequest
Gets the information for this rest request.
ASTERISK - io.github.brenoepics.at4j.data.request.optional.ProfanityMarker
Represents the "Asterisk" option for marking profanities.
AT4J - Class in io.github.brenoepics.at4j
This class contains constants related to the AT4J version, commit ID, build timestamp, display version, GitHub URL, user agent, and Azure Translator API version.
AT4JThreadFactory - Class in io.github.brenoepics.at4j.core.thread
A thread factory that creates optionally numbered threads as daemon or non-daemon.
AT4JThreadFactory(String, boolean) - Constructor for class io.github.brenoepics.at4j.core.thread.AT4JThreadFactory
Creates a new thread factory.
AvailableLanguagesParams - Class in io.github.brenoepics.at4j.data.request
This class represents the parameters for available languages.
AvailableLanguagesParams() - Constructor for class io.github.brenoepics.at4j.data.request.AvailableLanguagesParams
 
AZURE_TRANSLATOR_API_VERSION - Static variable in class io.github.brenoepics.at4j.AT4J
The API version from Azure Translator which we are using.
AzureApi - Interface in io.github.brenoepics.at4j
This class is the most important class of AT4J, as it contains the main methods for translating text.
AzureApiBuilder - Class in io.github.brenoepics.at4j
Builder class for constructing instances of AzureApi.
AzureApiBuilder() - Constructor for class io.github.brenoepics.at4j.AzureApiBuilder
Default constructor initializes the base URL to the global endpoint.
AzureApiImpl<T> - Class in io.github.brenoepics.at4j.core
This class is an implementation of the AzureApi interface.
AzureApiImpl(HttpClient, BaseURL, String, String, ExecutorService) - Constructor for class io.github.brenoepics.at4j.core.AzureApiImpl
Constructor for AzureApiImpl.
AzureException - Exception in io.github.brenoepics.at4j.core.exceptions
This exception is always thrown whenever a request to azure failed.
AzureException(Exception, String, RestRequestInfo, RestRequestResponseInfo) - Constructor for exception io.github.brenoepics.at4j.core.exceptions.AzureException
Creates a new instance of this class.
AzureExceptionInstantiation<T extends AzureException> - Interface in io.github.brenoepics.at4j.core.exceptions
Represents a function that accepts four arguments (Exception, String, RestRequest<?> and RestRequestResult) and produces an azure exception of type T.

B

BAD_REQUEST - io.github.brenoepics.at4j.util.rest.RestRequestHttpResponseCode
The request was improperly formatted, or the server couldn't understand it.
BadRequestException - Exception in io.github.brenoepics.at4j.core.exceptions
When we sent a bad request (HTTP response code 400).
BadRequestException(Exception, String, RestRequestInfo, RestRequestResponseInfo) - Constructor for exception io.github.brenoepics.at4j.core.exceptions.BadRequestException
Creates a new instance of this class.
baseURL(BaseURL) - Method in class io.github.brenoepics.at4j.AzureApiBuilder
Sets the base URL for the Azure API.
BaseURL - Enum in io.github.brenoepics.at4j.azure
The base URL of the Azure Translator API.
BODY_REQUEST_NOT_VALID_JSON - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
build() - Method in class io.github.brenoepics.at4j.AzureApiBuilder
Builds and returns an instance of AzureApi with the configured parameters.
BUILD_TIMESTAMP - Static variable in class io.github.brenoepics.at4j.AT4J
The build timestamp at which the current AT4J version was built.

C

CATEGORY_PARAMETER_INVALID - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
CLIENT_TRACE_ID_INVALID - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
COMMIT_ID - Static variable in class io.github.brenoepics.at4j.AT4J
The commit ID from which the current AT4J version was built.
connectTimeout(Duration) - Method in class io.github.brenoepics.at4j.AzureApiBuilder
Sets the connect timeout for the Azure API.
CONTENT_TYPE_HEADER_INVALID - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
CREATED - io.github.brenoepics.at4j.util.rest.RestRequestHttpResponseCode
The entity was created successfully.
createInstance(Exception, String, RestRequestInfo, RestRequestResponseInfo) - Method in interface io.github.brenoepics.at4j.core.exceptions.AzureExceptionInstantiation
Creates a new instance of the class T.
CUSTOM_SYSTEM_NOT_EXIST - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 

D

DELETE - io.github.brenoepics.at4j.util.rest.RestMethod
 
DELETED - io.github.brenoepics.at4j.data.request.optional.ProfanityAction
Represents the "Deleted" action for profanities.
DETECT - io.github.brenoepics.at4j.util.rest.RestEndpoint
The dictionary endpoint.
DetectedLanguage - Class in io.github.brenoepics.at4j.data
Represents a detected language.
DetectedLanguage(String, float) - Constructor for class io.github.brenoepics.at4j.data.DetectedLanguage
Constructor for DetectedLanguage class.
DetectedLanguage(String, float, boolean, boolean) - Constructor for class io.github.brenoepics.at4j.data.DetectedLanguage
Constructor for DetectedLanguage class.
DetectedLanguage(String, String, float) - Constructor for class io.github.brenoepics.at4j.data.DetectedLanguage
Constructor for DetectedLanguage class.
DetectedLanguage(String, String, float, boolean, boolean) - Constructor for class io.github.brenoepics.at4j.data.DetectedLanguage
Constructor for DetectedLanguage class.
detectLanguage(DetectLanguageParams) - Method in interface io.github.brenoepics.at4j.AzureApi
Detects the language of the given text.
detectLanguage(DetectLanguageParams) - Method in class io.github.brenoepics.at4j.core.AzureApiImpl
 
DetectLanguageParams - Class in io.github.brenoepics.at4j.data.request
This class represents the parameters for a language detection request.
DetectLanguageParams(String) - Constructor for class io.github.brenoepics.at4j.data.request.DetectLanguageParams
Constructs a new DetectLanguageParams object with the specified text.
DetectLanguageParams(List<String>) - Constructor for class io.github.brenoepics.at4j.data.request.DetectLanguageParams
Constructs a new DetectLanguageParams object with the specified list of texts.
DetectResponse - Class in io.github.brenoepics.at4j.data.response
This class represents a response from a language detection operation.
DetectResponse() - Constructor for class io.github.brenoepics.at4j.data.response.DetectResponse
Constructor for DetectResponse.
DICTIONARY - io.github.brenoepics.at4j.data.request.optional.LanguageScope
Represents the "dictionary" language scope.
disconnect() - Method in interface io.github.brenoepics.at4j.AzureApi
Disconnects the AzureApi.
disconnect() - Method in class io.github.brenoepics.at4j.core.AzureApiImpl
 
DISPLAY_VERSION - Static variable in class io.github.brenoepics.at4j.AT4J
The display version of the current AT4J version.
DOCS_URL - Static variable in class io.github.brenoepics.at4j.AT4J
 

E

endpointMatches(RestEndpoint) - Method in class io.github.brenoepics.at4j.core.ratelimit.RateLimitBucket
Checks if a bucket created with the given parameters would equal this bucket.
equals(Object) - Method in class io.github.brenoepics.at4j.core.ratelimit.RateLimitBucket
 
ERROR_FIELD - Static variable in class io.github.brenoepics.at4j.util.rest.RestRequest
 
EUROPE - io.github.brenoepics.at4j.azure.BaseURL
The domain of the Azure Translator API for the Europe.
execute(Function<RestRequestResult, T>) - Method in class io.github.brenoepics.at4j.util.rest.RestRequest
Executes the request.
executeBlocking() - Method in class io.github.brenoepics.at4j.util.rest.RestRequest
Executes the request blocking.
executorService(ExecutorService) - Method in class io.github.brenoepics.at4j.AzureApiBuilder
Sets the executor service for the Azure API.

F

FORBIDDEN - io.github.brenoepics.at4j.util.rest.RestRequestHttpResponseCode
The Authorization token you passed did not have permission to the resource.
ForbiddenException - Exception in io.github.brenoepics.at4j.core.exceptions
This exception is thrown when the Azure API returns a 403 Forbidden response.
ForbiddenException(Exception, String, RestRequestInfo, RestRequestResponseInfo) - Constructor for exception io.github.brenoepics.at4j.core.exceptions.ForbiddenException
Creates a new instance of this class.
FREE_QUOTA_EXCEEDED - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
from(String, String) - Static method in class io.github.brenoepics.at4j.data.Translation
Factory method to create a new Translation object.
fromAzureExceptionClass(Class<? extends AzureException>) - Static method in enum io.github.brenoepics.at4j.util.rest.RestRequestHttpResponseCode
Gets the rest request http response code by azure exception class.
fromCode(int) - Static method in enum io.github.brenoepics.at4j.util.rest.RestRequestHttpResponseCode
Gets the rest request http response code by actual numeric response code.
fromCode(String, RestRequestHttpResponseCode) - Static method in enum io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
Gets the rest request result error code by actual numeric result code.
fromString(String) - Static method in enum io.github.brenoepics.at4j.azure.lang.LanguageDirection
Converts a string value to its corresponding LanguageDirection.

G

GATEWAY_UNAVAILABLE - io.github.brenoepics.at4j.util.rest.RestRequestHttpResponseCode
There was not a gateway available to process your request.
GET - io.github.brenoepics.at4j.util.rest.RestMethod
 
getApi() - Method in class io.github.brenoepics.at4j.util.rest.RestRequest
Gets the api which is used for this request.
getApi() - Method in interface io.github.brenoepics.at4j.util.rest.RestRequestInfo
Gets the azure api instance which created the request.
getApi() - Method in class io.github.brenoepics.at4j.util.rest.RestRequestInfoImpl
 
getApi() - Method in interface io.github.brenoepics.at4j.util.rest.RestRequestResponseInfo
Gets the azure api instance which created the request.
getApi() - Method in class io.github.brenoepics.at4j.util.rest.RestRequestResponseInfoImpl
 
getAvailableLanguages(AvailableLanguagesParams) - Method in interface io.github.brenoepics.at4j.AzureApi
Gets the available languages for translation.
getAvailableLanguages(AvailableLanguagesParams) - Method in class io.github.brenoepics.at4j.core.AzureApiImpl
 
getAzureException(Exception, String, RestRequestInfo, RestRequestResponseInfo) - Method in enum io.github.brenoepics.at4j.util.rest.RestRequestHttpResponseCode
Gets the azure exception to throw for this kind of result code.
getAzureException(Exception, String, RestRequestInfo, RestRequestResponseInfo) - Method in enum io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
Gets the azure exception to throw for this kind of result code.
getAzureExceptionClass() - Method in enum io.github.brenoepics.at4j.util.rest.RestRequestHttpResponseCode
Gets the azure exception class to throw for this kind of result code.
getBaseText() - Method in class io.github.brenoepics.at4j.data.DetectedLanguage
Gets the text analyzed for language detection.
getBaseText() - Method in class io.github.brenoepics.at4j.data.TranslationResult
Returns the base texts that were translated
getBaseURL() - Method in interface io.github.brenoepics.at4j.AzureApi
The BaseURL of the Azure Translator API.
getBaseURL() - Method in class io.github.brenoepics.at4j.core.AzureApiImpl
 
getBody() - Method in class io.github.brenoepics.at4j.data.request.DetectLanguageParams
Returns the body of the request as an ArrayNode.
getBody() - Method in class io.github.brenoepics.at4j.data.request.TranslateParams
Returns the body of the request as a JSON node.
getBody() - Method in class io.github.brenoepics.at4j.util.rest.RestRequest
Gets the body of this request.
getBody() - Method in interface io.github.brenoepics.at4j.util.rest.RestRequestInfo
Gets the body of the rest request as string.
getBody() - Method in class io.github.brenoepics.at4j.util.rest.RestRequestInfoImpl
 
getBody() - Method in interface io.github.brenoepics.at4j.util.rest.RestRequestResponseInfo
Gets the body of the response as string.
getBody() - Method in class io.github.brenoepics.at4j.util.rest.RestRequestResponseInfoImpl
 
getCode() - Method in class io.github.brenoepics.at4j.azure.lang.Language
Returns the language code.
getCode() - Method in enum io.github.brenoepics.at4j.util.rest.RestRequestHttpResponseCode
Gets the actual numeric response code.
getCode() - Method in interface io.github.brenoepics.at4j.util.rest.RestRequestResponseInfo
Gets the response code of the response.
getCode() - Method in class io.github.brenoepics.at4j.util.rest.RestRequestResponseInfoImpl
 
getCode() - Method in enum io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
Gets the actual numeric result code.
getCurrentRequest() - Method in class io.github.brenoepics.at4j.util.rest.RestRequestHandler
Returns the current request being processed.
getDetectedLanguage() - Method in class io.github.brenoepics.at4j.data.TranslationResult
Returns the detected language of the input text.
getDetectedLanguages() - Method in class io.github.brenoepics.at4j.data.response.DetectResponse
Returns the list of detected languages.
getDir() - Method in class io.github.brenoepics.at4j.azure.lang.Language
Returns the direction of the language.
getEndpoint() - Method in class io.github.brenoepics.at4j.util.rest.RestRequest
Gets the endpoint of this request.
getEndpointUrl() - Method in enum io.github.brenoepics.at4j.util.rest.RestEndpoint
Gets the endpoint url (only including the base, not the BaseURL).
getExecutorService() - Method in interface io.github.brenoepics.at4j.core.thread.ThreadPool
Gets the used executor service.
getExecutorService() - Method in class io.github.brenoepics.at4j.core.thread.ThreadPoolImpl
 
getFirst() - Method in class io.github.brenoepics.at4j.data.response.DetectResponse
Returns the first detected language from the list.
getFirstResult() - Method in class io.github.brenoepics.at4j.data.response.TranslationResponse
Method to retrieve the first translation result from the list.
getFirstTranslation() - Method in class io.github.brenoepics.at4j.data.TranslationResult
Returns the first translation in the collection.
getFullyQualifiedCallerName() - Method in class io.github.brenoepics.at4j.util.logging.ProtectedLogger
 
getHeader(HttpHeaders, String, String) - Static method in class io.github.brenoepics.at4j.core.ratelimit.RateLimitManager
Gets the header value from the given headers.
getHeaders() - Method in class io.github.brenoepics.at4j.util.rest.RestRequest
 
getHeaders() - Method in interface io.github.brenoepics.at4j.util.rest.RestRequestInfo
Gets the headers of the rest request.
getHeaders() - Method in class io.github.brenoepics.at4j.util.rest.RestRequestInfoImpl
 
getHttpClient() - Method in interface io.github.brenoepics.at4j.AzureApi
Gets the HttpClient.
getHttpClient() - Method in class io.github.brenoepics.at4j.core.AzureApiImpl
Gets the used OkHttpClient.
getHttpUrl(BaseURL, Map<String, Collection<String>>) - Method in enum io.github.brenoepics.at4j.util.rest.RestEndpoint
Gets the full http url of the endpoint.
getIncludeAlignment() - Method in class io.github.brenoepics.at4j.data.request.TranslateParams
Returns if the alignment should be included in the response.
getIncludeSentenceLength() - Method in class io.github.brenoepics.at4j.data.request.TranslateParams
Returns if the sentence length should be included in the response.
getJsonBody() - Method in class io.github.brenoepics.at4j.util.rest.RestRequestResult
Gets the json body of the response.
getLanguageCode() - Method in class io.github.brenoepics.at4j.data.DetectedLanguage
Gets the detected language code.
getLanguageCode() - Method in class io.github.brenoepics.at4j.data.Translation
Returns the language code for the translation.
getLogger(Class<?>) - Static method in class io.github.brenoepics.at4j.util.logging.LoggerUtil
Gets or creates a logger for the given class.
getLogger(String) - Static method in class io.github.brenoepics.at4j.util.logging.LoggerUtil
Get or create a logger with the given name.
getMajorParameterPosition() - Method in enum io.github.brenoepics.at4j.util.rest.RestEndpoint
Gets the major parameter position of the endpoint.
getMeaning() - Method in enum io.github.brenoepics.at4j.util.rest.RestRequestHttpResponseCode
Gets the textual meaning.
getMeaning() - Method in enum io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
Gets the textual meaning.
getMethod() - Method in class io.github.brenoepics.at4j.util.rest.RestRequest
Gets the method of this request.
getName() - Method in class io.github.brenoepics.at4j.azure.lang.Language
Returns the language name.
getName() - Method in class io.github.brenoepics.at4j.util.logging.ProtectedLogger
 
getNativeName() - Method in class io.github.brenoepics.at4j.azure.lang.Language
Returns the native name of the language.
getObjectMapper() - Method in interface io.github.brenoepics.at4j.AzureApi
Gets the ObjectMapper.
getObjectMapper() - Method in class io.github.brenoepics.at4j.core.AzureApiImpl
Gets the used ObjectMapper.
getOrigin() - Method in class io.github.brenoepics.at4j.util.rest.RestRequest
Gets the origin of the rest request.
getProfanityAction() - Method in class io.github.brenoepics.at4j.data.request.TranslateParams
Returns the action to be taken on profanities in the text.
getProfanityMarker() - Method in class io.github.brenoepics.at4j.data.request.TranslateParams
Returns the marker to be used for profanities in the text.
getQueryParameters() - Method in class io.github.brenoepics.at4j.data.request.TranslateParams
Returns the parameters as a map.
getQueryParameters() - Method in class io.github.brenoepics.at4j.util.rest.RestRequest
Gets the query parameters of this request.
getQueryParameters() - Method in interface io.github.brenoepics.at4j.util.rest.RestRequestInfo
Gets the query parameters of the rest request.
getQueryParameters() - Method in class io.github.brenoepics.at4j.util.rest.RestRequestInfoImpl
 
getRatelimitManager() - Method in interface io.github.brenoepics.at4j.AzureApi
Gets the ratelimit manager.
getRatelimitManager() - Method in class io.github.brenoepics.at4j.core.AzureApiImpl
Gets the used RateLimitManager.
getRateLimitRemaining() - Method in class io.github.brenoepics.at4j.core.ratelimit.RateLimitBucket
Gets the remaining RateLimit
getReference() - Method in enum io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
Gets the reference to the documentation for this kind of result code.
getRequest() - Method in exception io.github.brenoepics.at4j.core.exceptions.AzureException
Gets information about the request which caused the exception.
getRequest() - Method in interface io.github.brenoepics.at4j.util.rest.RestRequestResponseInfo
Gets the request which this response answered.
getRequest() - Method in class io.github.brenoepics.at4j.util.rest.RestRequestResponseInfoImpl
 
getRequest() - Method in class io.github.brenoepics.at4j.util.rest.RestRequestResult
Gets the RestRequest which belongs to this result.
getResponse() - Method in exception io.github.brenoepics.at4j.core.exceptions.AzureException
Gets information about the response which caused the exception.
getResponse() - Method in class io.github.brenoepics.at4j.util.rest.RestRequestResult
Gets the response of the RestRequest.
getResponseCode() - Method in enum io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
Gets the response code for which the given instantiating should be used.
getResponseTimestamp() - Method in class io.github.brenoepics.at4j.util.rest.RestRequestHandler
Returns the timestamp of the response.
getRestRequestResult() - Method in class io.github.brenoepics.at4j.util.rest.RestRequestResponseInfoImpl
Gets the rest request result.
getResult() - Method in class io.github.brenoepics.at4j.util.rest.RestRequest
Gets the result of this request.
getResult() - Method in class io.github.brenoepics.at4j.util.rest.RestRequestHandler
Returns the result of the REST request.
getResultList() - Method in class io.github.brenoepics.at4j.data.response.TranslationResponse
Method to retrieve the list of translation results.
getScope() - Method in class io.github.brenoepics.at4j.data.request.AvailableLanguagesParams
Returns the scope as a comma-separated string.
getScore() - Method in class io.github.brenoepics.at4j.data.DetectedLanguage
Gets A float value indicating the confidence in the result.
getSourceLanguage() - Method in class io.github.brenoepics.at4j.data.request.AvailableLanguagesParams
Returns the source language.
getSourceLanguage() - Method in class io.github.brenoepics.at4j.data.request.TranslateParams
Gets the source language of the text.
getStringBody() - Method in class io.github.brenoepics.at4j.util.rest.RestRequestResult
Gets the string body of the response.
getSubscriptionKey() - Method in interface io.github.brenoepics.at4j.AzureApi
Gets the used subscription key.
getSubscriptionKey() - Method in class io.github.brenoepics.at4j.core.AzureApiImpl
 
getSubscriptionRegion() - Method in interface io.github.brenoepics.at4j.AzureApi
Gets the used subscription region.
getSubscriptionRegion() - Method in class io.github.brenoepics.at4j.core.AzureApiImpl
 
getSuggestedFromLanguage() - Method in class io.github.brenoepics.at4j.data.request.TranslateParams
Returns the suggested language if the source language can't be identified.
getTargetLanguages() - Method in class io.github.brenoepics.at4j.data.request.TranslateParams
Returns the target languages for the translation.
getText() - Method in class io.github.brenoepics.at4j.data.Translation
Returns the translated text.
getTexts() - Method in class io.github.brenoepics.at4j.data.request.DetectLanguageParams
Returns the text to be analyzed for language detection.
getTexts() - Method in class io.github.brenoepics.at4j.data.request.TranslateParams
Returns the text to be translated.
getTextType() - Method in class io.github.brenoepics.at4j.data.request.TranslateParams
Returns the type of the text to be translated.
getThreadPool() - Method in interface io.github.brenoepics.at4j.AzureApi
Gets the ThreadPool.
getThreadPool() - Method in class io.github.brenoepics.at4j.core.AzureApiImpl
 
getTimeTillSpaceGetsAvailable() - Method in class io.github.brenoepics.at4j.core.ratelimit.RateLimitBucket
Gets the time in seconds how long you have to wait till there's space in the bucket again.
getTranslations() - Method in class io.github.brenoepics.at4j.data.TranslationResult
Returns the collection of translations for the input text.
getUrl() - Method in enum io.github.brenoepics.at4j.azure.BaseURL
Gets the URL of the Azure Translator API.
getUrl() - Method in interface io.github.brenoepics.at4j.util.rest.RestRequestInfo
Gets the url, the request should be sent to.
getUrl() - Method in class io.github.brenoepics.at4j.util.rest.RestRequestInfoImpl
 
getValue() - Method in enum io.github.brenoepics.at4j.data.request.optional.LanguageScope
Returns the string value of the language scope.
getValue() - Method in enum io.github.brenoepics.at4j.data.request.optional.ProfanityAction
Retrieves the string value associated with the enum value.
getValue() - Method in enum io.github.brenoepics.at4j.data.request.optional.ProfanityMarker
Gets the value of the profanity marker.
getValue() - Method in enum io.github.brenoepics.at4j.data.request.optional.TextType
Returns the value of the text type.
GITHUB_URL - Static variable in class io.github.brenoepics.at4j.AT4J
The GitHub url of AT4J.
GLOBAL - io.github.brenoepics.at4j.azure.BaseURL
The default domain of the Azure Translator API.

H

handleNormalizedLoggingCall(Level, Marker, String, Object[], Throwable) - Method in class io.github.brenoepics.at4j.util.logging.ProtectedLogger
 
handleResponse(RestRequestResult) - Method in class io.github.brenoepics.at4j.data.request.AvailableLanguagesParams
Method to handle the response from the API.
handleResponse(RestRequestResult) - Method in class io.github.brenoepics.at4j.data.request.DetectLanguageParams
Handles the response from the API.
handleResponse(RestRequestResult) - Method in class io.github.brenoepics.at4j.data.request.TranslateParams
Handles the response from the API.
hashCode() - Method in class io.github.brenoepics.at4j.core.ratelimit.RateLimitBucket
 
HTML - io.github.brenoepics.at4j.data.request.optional.TextType
Represents HTML text.

I

includeAuthorizationHeader(boolean) - Method in class io.github.brenoepics.at4j.util.rest.RestRequest
Sets if an authorization header should be included in this request.
INPUT_TEXT_ARRAY_ELEMENT_INVALID - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
INPUT_TEXT_ARRAY_TOO_MANY_ELEMENTS - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
INPUT_TEXT_INVALID - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
INPUT_TEXT_TOO_LONG - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
INTERNAL_SERVER_ERROR - io.github.brenoepics.at4j.util.rest.RestRequestHttpResponseCode
There was an internal server error while processing your request.
InternalServerErrorException - Exception in io.github.brenoepics.at4j.core.exceptions
This exception is thrown when the Azure API returns a 403 Forbidden response.
InternalServerErrorException(Exception, String, RestRequestInfo, RestRequestResponseInfo) - Constructor for exception io.github.brenoepics.at4j.core.exceptions.InternalServerErrorException
Creates a new instance of this class.
io.github.brenoepics.at4j - package io.github.brenoepics.at4j
 
io.github.brenoepics.at4j.azure - package io.github.brenoepics.at4j.azure
 
io.github.brenoepics.at4j.azure.lang - package io.github.brenoepics.at4j.azure.lang
 
io.github.brenoepics.at4j.core - package io.github.brenoepics.at4j.core
 
io.github.brenoepics.at4j.core.exceptions - package io.github.brenoepics.at4j.core.exceptions
 
io.github.brenoepics.at4j.core.ratelimit - package io.github.brenoepics.at4j.core.ratelimit
 
io.github.brenoepics.at4j.core.thread - package io.github.brenoepics.at4j.core.thread
 
io.github.brenoepics.at4j.data - package io.github.brenoepics.at4j.data
 
io.github.brenoepics.at4j.data.request - package io.github.brenoepics.at4j.data.request
 
io.github.brenoepics.at4j.data.request.optional - package io.github.brenoepics.at4j.data.request.optional
 
io.github.brenoepics.at4j.data.response - package io.github.brenoepics.at4j.data.response
 
io.github.brenoepics.at4j.util.logging - package io.github.brenoepics.at4j.util.logging
 
io.github.brenoepics.at4j.util.rest - package io.github.brenoepics.at4j.util.rest
 
isDebugEnabled() - Method in class io.github.brenoepics.at4j.util.logging.ProtectedLogger
 
isDebugEnabled(Marker) - Method in class io.github.brenoepics.at4j.util.logging.ProtectedLogger
 
isErrorEnabled() - Method in class io.github.brenoepics.at4j.util.logging.ProtectedLogger
 
isErrorEnabled(Marker) - Method in class io.github.brenoepics.at4j.util.logging.ProtectedLogger
 
isIncludeAuthorizationHeader() - Method in class io.github.brenoepics.at4j.util.rest.RestRequest
Returns if an authorization header should be included in this request.
isInfoEnabled() - Method in class io.github.brenoepics.at4j.util.logging.ProtectedLogger
 
isInfoEnabled(Marker) - Method in class io.github.brenoepics.at4j.util.logging.ProtectedLogger
 
isTraceEnabled() - Method in class io.github.brenoepics.at4j.util.logging.ProtectedLogger
 
isTraceEnabled(Marker) - Method in class io.github.brenoepics.at4j.util.logging.ProtectedLogger
 
isTranslationSupported() - Method in class io.github.brenoepics.at4j.data.DetectedLanguage
Gets a boolean indicating if the language is supported for translation.
isTransliterationSupported() - Method in class io.github.brenoepics.at4j.data.DetectedLanguage
Gets a boolean indicating if the language is supported for transliteration.
isWarnEnabled() - Method in class io.github.brenoepics.at4j.util.logging.ProtectedLogger
 
isWarnEnabled(Marker) - Method in class io.github.brenoepics.at4j.util.logging.ProtectedLogger
 

L

Language - Class in io.github.brenoepics.at4j.azure.lang
Represents a language with its code, name, native name and direction.
Language(String, String, String, LanguageDirection) - Constructor for class io.github.brenoepics.at4j.azure.lang.Language
Constructs a new Language object.
LANGUAGE_PAIR_CATEGORY_COMBINATION_INVALID - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
LANGUAGE_SCRIPT_COMBINATION_INVALID - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
LANGUAGE_SPECIFIER_INVALID - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
LanguageDirection - Enum in io.github.brenoepics.at4j.azure.lang
Enum representing the direction of a language.
LANGUAGES - io.github.brenoepics.at4j.util.rest.RestEndpoint
The language list endpoint.
LanguageScope - Enum in io.github.brenoepics.at4j.data.request.optional
Enum representing the different language scopes that can be used.
LoggerUtil - Class in io.github.brenoepics.at4j.util.logging
This class is used to get a Logger instance.
LTR - io.github.brenoepics.at4j.azure.lang.LanguageDirection
 

M

MARKED - io.github.brenoepics.at4j.data.request.optional.ProfanityAction
Represents the "Marked" action for profanities.
METHOD_NOT_ALLOWED - io.github.brenoepics.at4j.util.rest.RestRequestHttpResponseCode
The HTTP method used is not valid for the location specified.
MethodNotAllowedException - Exception in io.github.brenoepics.at4j.core.exceptions
This exception is thrown when the Azure API returns a 403 Forbidden response.
MethodNotAllowedException(Exception, String, RestRequestInfo, RestRequestResponseInfo) - Constructor for exception io.github.brenoepics.at4j.core.exceptions.MethodNotAllowedException
Creates a new instance of this class.

N

newAt4jDefault() - Static method in class io.github.brenoepics.at4j.core.thread.ThreadPoolImpl
 
newThread(Runnable) - Method in class io.github.brenoepics.at4j.core.thread.AT4JThreadFactory
 
NO_ACTION - io.github.brenoepics.at4j.data.request.optional.ProfanityAction
Represents the "NoAction" action for profanities.
NO_CONTENT - io.github.brenoepics.at4j.util.rest.RestRequestHttpResponseCode
The request completed successfully but returned no content.
NOT_FOUND - io.github.brenoepics.at4j.util.rest.RestRequestHttpResponseCode
The resource at the location specified doesn't exist.
NOT_MODIFIED - io.github.brenoepics.at4j.util.rest.RestRequestHttpResponseCode
The entity was not modified (no action was taken).
NotFoundException - Exception in io.github.brenoepics.at4j.core.exceptions
When something was not found (HTTP response code 404).
NotFoundException(Exception, String, RestRequestInfo, RestRequestResponseInfo) - Constructor for exception io.github.brenoepics.at4j.core.exceptions.NotFoundException
Creates a new instance of this class.

O

of(TranslationResult) - Static method in class io.github.brenoepics.at4j.data.response.TranslationResponse
Static factory method to create a new TranslationResponse with the provided result.
of(List<TranslationResult>) - Static method in class io.github.brenoepics.at4j.data.response.TranslationResponse
Static factory method to create a new TranslationResponse with the provided list of results.
ofJSON(ObjectNode) - Static method in class io.github.brenoepics.at4j.data.DetectedLanguage
Creates a new instance of this class from a json node.
ofJSON(ObjectNode) - Static method in class io.github.brenoepics.at4j.data.Translation
Factory method to create a new Translation object from a JSON node.
ofJSON(String, ObjectNode) - Static method in class io.github.brenoepics.at4j.azure.lang.Language
Constructs a new Language object from a JSON object.
ofJSON(String, ObjectNode) - Static method in class io.github.brenoepics.at4j.data.DetectedLanguage
Creates a new instance of this class from a json node.
OK - io.github.brenoepics.at4j.util.rest.RestRequestHttpResponseCode
The request completed successfully.
OPERATION_NOT_ALLOWED - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
OPTIONS_FIELD_INVALID - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 

P

PATCH - io.github.brenoepics.at4j.util.rest.RestMethod
 
peekRequestFromQueue() - Method in class io.github.brenoepics.at4j.core.ratelimit.RateLimitBucket
Peeks a request from the bucket's queue.
PLAIN - io.github.brenoepics.at4j.data.request.optional.TextType
Represents plain text.
pollRequestFromQueue() - Method in class io.github.brenoepics.at4j.core.ratelimit.RateLimitBucket
Polls a request from the bucket's queue.
POST - io.github.brenoepics.at4j.util.rest.RestMethod
 
ProfanityAction - Enum in io.github.brenoepics.at4j.data.request.optional
Enum ProfanityAction is used to specify how profanities should be treated in translations.
ProfanityMarker - Enum in io.github.brenoepics.at4j.data.request.optional
Enum ProfanityMarker is used to specify how profanities should be marked in translations.
ProtectedLogger - Class in io.github.brenoepics.at4j.util.logging
This logger is used to wrap another logger and replace configured sensitive data by asterisks.
proxy(ProxySelector) - Method in class io.github.brenoepics.at4j.AzureApiBuilder
Sets the proxy selector for the Azure API.
PUT - io.github.brenoepics.at4j.util.rest.RestMethod
 

Q

queueRequest(RestRequest) - Method in class io.github.brenoepics.at4j.core.ratelimit.RateLimitManager
Queues the given request.

R

RATE_LIMIT_RESET_HEADER - Static variable in class io.github.brenoepics.at4j.core.ratelimit.RateLimitManager
The header name for rate-limit reset information.
RATE_LIMITED_BODY_CLOUDFLARE - Static variable in class io.github.brenoepics.at4j.core.ratelimit.RateLimitManager
The body name for rate-limit reset information.
RATE_LIMITED_HEADER - Static variable in class io.github.brenoepics.at4j.core.ratelimit.RateLimitManager
The header for rate-limit remaining information.
RATE_LIMITED_HEADER_CLOUDFLARE - Static variable in class io.github.brenoepics.at4j.core.ratelimit.RateLimitManager
The header name for rate-limit reset information.
RateLimitBucket<T,​T4,​T3> - Class in io.github.brenoepics.at4j.core.ratelimit
This class represents a rate limit bucket for Azure API requests.
RateLimitBucket(RestEndpoint) - Constructor for class io.github.brenoepics.at4j.core.ratelimit.RateLimitBucket
Creates a RateLimitBucket for the given endpoint / parameter combination.
RatelimitException - Exception in io.github.brenoepics.at4j.core.exceptions
When we encounter a rate limit and run out of retiring.
RatelimitException(Exception, String, RestRequestInfo) - Constructor for exception io.github.brenoepics.at4j.core.exceptions.RatelimitException
Creates a new instance of this class.
RateLimitManager<T,​T3,​T4> - Class in io.github.brenoepics.at4j.core.ratelimit
This class manages rate-limits and keeps track of them.
RateLimitManager(AzureApi) - Constructor for class io.github.brenoepics.at4j.core.ratelimit.RateLimitManager
Creates a new rate-limit manager.
region(String) - Method in class io.github.brenoepics.at4j.AzureApiBuilder
Sets the subscription region for the Azure API.
REQUEST_INPUT_INVALID - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
REQUEST_LIMITS_EXCEEDED - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
REQUEST_METHOD_NOT_SUPPORTED - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
REQUEST_NOT_AUTHORIZED - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
REQUEST_SIZE_EXCEEDED - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
REQUEST_TIMED_OUT - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
REQUEST_TIMEOUT - io.github.brenoepics.at4j.util.rest.RestRequestHttpResponseCode
The request timed out, you can retry it again later with the same parameters.
RequestTimeoutException - Exception in io.github.brenoepics.at4j.core.exceptions
This exception is thrown when the Azure API returns a 408 Request Timeout response.
RequestTimeoutException(Exception, String, RestRequestInfo, RestRequestResponseInfo) - Constructor for exception io.github.brenoepics.at4j.core.exceptions.RequestTimeoutException
Creates a new instance of this class.
RestEndpoint - Enum in io.github.brenoepics.at4j.util.rest
This enum contains all endpoints that we may use.
RestMethod - Enum in io.github.brenoepics.at4j.util.rest
This is an enumeration representing the most commonly used HTTP methods.
RestRequest - Class in io.github.brenoepics.at4j.util.rest
This class is used to wrap a rest request.
RestRequest(AzureApi, RestMethod, RestEndpoint) - Constructor for class io.github.brenoepics.at4j.util.rest.RestRequest
Creates a new instance of this class.
RestRequest(AzureApi, RestMethod, RestEndpoint, boolean) - Constructor for class io.github.brenoepics.at4j.util.rest.RestRequest
Creates a new instance of this class.
RestRequestHandler - Class in io.github.brenoepics.at4j.util.rest
This class is responsible for handling REST requests.
RestRequestHandler(RestRequestResult, RestRequest, long) - Constructor for class io.github.brenoepics.at4j.util.rest.RestRequestHandler
Constructs a new RestRequestHandler with the given result, current request, and response timestamp.
RestRequestHttpResponseCode - Enum in io.github.brenoepics.at4j.util.rest
An enum with all rest request result codes as defined by Azure.
RestRequestInfo - Interface in io.github.brenoepics.at4j.util.rest
Some information about a rest request.
RestRequestInfoImpl - Class in io.github.brenoepics.at4j.util.rest
The implementation of RestRequestInfo.
RestRequestInfoImpl(AzureApi, URL, Map<String, Collection<String>>, Map<String, String>, String) - Constructor for class io.github.brenoepics.at4j.util.rest.RestRequestInfoImpl
Creates new rest request information.
RestRequestResponseInfo - Interface in io.github.brenoepics.at4j.util.rest
Some information about a rest request response.
RestRequestResponseInfoImpl - Class in io.github.brenoepics.at4j.util.rest
The implementation of RestRequestResponseInfo.
RestRequestResponseInfoImpl(RestRequestInfo, RestRequestResult) - Constructor for class io.github.brenoepics.at4j.util.rest.RestRequestResponseInfoImpl
Creates a new rest request response information.
RestRequestResult - Class in io.github.brenoepics.at4j.util.rest
The result of a RestRequest.
RestRequestResult(RestRequest, HttpResponse<String>) - Constructor for class io.github.brenoepics.at4j.util.rest.RestRequestResult
Creates a new RestRequestResult.
RestRequestResultErrorCode - Enum in io.github.brenoepics.at4j.util.rest
An enum with all rest request result codes as defined by Azure API Errors.
RTL - io.github.brenoepics.at4j.azure.lang.LanguageDirection
 

S

SCOPE_PARAMETER_INVALID - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
SCRIPT_PARAMETER_INVALID - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
SERVICE_TEMPORARILY_UNAVAILABLE - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
SERVICE_UNAVAILABLE - io.github.brenoepics.at4j.util.rest.RestRequestHttpResponseCode
There was a service unavailable while processing your request.
ServiceUnavailableException - Exception in io.github.brenoepics.at4j.core.exceptions
This exception is thrown when the Azure API returns a 408 Request Timeout response.
ServiceUnavailableException(Exception, String, RestRequestInfo, RestRequestResponseInfo) - Constructor for exception io.github.brenoepics.at4j.core.exceptions.ServiceUnavailableException
Creates a new instance of this class.
setBody(JsonNode) - Method in class io.github.brenoepics.at4j.util.rest.RestRequest
Sets the body of the request.
setBody(String) - Method in class io.github.brenoepics.at4j.util.rest.RestRequest
Sets the body of the request.
setCode(String) - Method in class io.github.brenoepics.at4j.azure.lang.Language
Sets the language code.
setDir(LanguageDirection) - Method in class io.github.brenoepics.at4j.azure.lang.Language
Sets the direction of the language.
setIncludeAlignment(Boolean) - Method in class io.github.brenoepics.at4j.data.request.TranslateParams
Specifies whether to include the alignment string in the response.
setIncludeSentenceLength(Boolean) - Method in class io.github.brenoepics.at4j.data.request.TranslateParams
Specifies whether to include the number of characters in each translated sentence.
setKey(String) - Method in class io.github.brenoepics.at4j.AzureApiBuilder
Sets the subscription key for accessing the Azure API.
setName(String) - Method in class io.github.brenoepics.at4j.azure.lang.Language
Sets the language name.
setNativeName(String) - Method in class io.github.brenoepics.at4j.azure.lang.Language
Sets the native name of the language.
setProfanityAction(ProfanityAction) - Method in class io.github.brenoepics.at4j.data.request.TranslateParams
Specifies how profanities should be treated in translations.
setProfanityMarker(ProfanityMarker) - Method in class io.github.brenoepics.at4j.data.request.TranslateParams
Specifies how profanities should be marked in translations.
setRateLimitRemaining(int) - Method in class io.github.brenoepics.at4j.core.ratelimit.RateLimitBucket
Sets the remaining requests till rate-limit.
setRateLimitResetTimestamp(long) - Method in class io.github.brenoepics.at4j.core.ratelimit.RateLimitBucket
Sets the rate-limit reset timestamp.
setScope(LanguageScope...) - Method in class io.github.brenoepics.at4j.data.request.AvailableLanguagesParams
Sets the scope of the languages.
setSourceLanguage(Language) - Method in class io.github.brenoepics.at4j.data.request.TranslateParams
Sets the source language for the translation.
setSourceLanguage(String) - Method in class io.github.brenoepics.at4j.data.request.AvailableLanguagesParams
Sets the source language.
setSourceLanguage(String) - Method in class io.github.brenoepics.at4j.data.request.TranslateParams
Sets the source language for the translation.
setSuggestedFromLanguage(String) - Method in class io.github.brenoepics.at4j.data.request.TranslateParams
Specifies a fallback language if the language of the input text can't be identified.
setTargetLanguages(String...) - Method in class io.github.brenoepics.at4j.data.request.TranslateParams
Sets the target languages for the translation.
setTargetLanguages(Collection<Language>) - Method in class io.github.brenoepics.at4j.data.request.TranslateParams
Sets the target languages for the translation.
setTexts(Collection<String>) - Method in class io.github.brenoepics.at4j.data.request.TranslateParams
Sets the text to be translated.
setTextType(TextType) - Method in class io.github.brenoepics.at4j.data.request.TranslateParams
Defines whether the text being translated is plain text or HTML text.
shutdown() - Method in interface io.github.brenoepics.at4j.core.thread.ThreadPool
Shutdowns the thread pool.
shutdown() - Method in class io.github.brenoepics.at4j.core.thread.ThreadPoolImpl
 
SOURCE_LANGUAGE_INVALID - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
SOURCE_SCRIPT_SPECIFIER_INVALID - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
SPECIFIED_LANGUAGE_PAIR_INVALID - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
SPECIFIED_LANGUAGE_UNSUPPORTED - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
sslContext(SSLContext) - Method in class io.github.brenoepics.at4j.AzureApiBuilder
Sets the SSL context for the Azure API.
sslParameters(SSLParameters) - Method in class io.github.brenoepics.at4j.AzureApiBuilder
Sets the SSL parameters for the Azure API.

T

TAG - io.github.brenoepics.at4j.data.request.optional.ProfanityMarker
Represents the "Tag" option for marking profanities.
TARGET_LANGUAGE_NOT_VALID - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
TARGET_SCRIPT_SPECIFIER_INVALID - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
TARGET_SCRIPTS_NOT_MATCH_TARGET_LANGUAGES - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
TEXT_TYPE_INVALID - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
TextType - Enum in io.github.brenoepics.at4j.data.request.optional
This enum class represents the type of text that is being translated.
ThreadPool - Interface in io.github.brenoepics.at4j.core.thread
This class creates and contains thread pools which are used by AT4J.
ThreadPoolImpl - Class in io.github.brenoepics.at4j.core.thread
The implementation of ThreadPool.
ThreadPoolImpl(ExecutorService) - Constructor for class io.github.brenoepics.at4j.core.thread.ThreadPoolImpl
 
TOO_MANY_REQUESTS - io.github.brenoepics.at4j.util.rest.RestRequestHttpResponseCode
You've made too many requests.
toString() - Method in class io.github.brenoepics.at4j.azure.lang.Language
Returns a string representation of the Language object.
toString() - Method in class io.github.brenoepics.at4j.core.ratelimit.RateLimitBucket
 
toString() - Method in class io.github.brenoepics.at4j.data.DetectedLanguage
Returns a string representation of the DetectedLanguage object.
toString() - Method in class io.github.brenoepics.at4j.data.Translation
Returns a string representation of the Translation object.
translate(TranslateParams) - Method in interface io.github.brenoepics.at4j.AzureApi
Translates the given text from the given source language to the given target language.
translate(TranslateParams) - Method in class io.github.brenoepics.at4j.core.AzureApiImpl
 
TRANSLATE - io.github.brenoepics.at4j.util.rest.RestEndpoint
The translation endpoint.
TranslateParams - Class in io.github.brenoepics.at4j.data.request
This class represents the parameters for a translation request.
TranslateParams(String, Collection<String>) - Constructor for class io.github.brenoepics.at4j.data.request.TranslateParams
Constructor that initializes the text to be translated.
TranslateParams(Collection<String>, Collection<String>) - Constructor for class io.github.brenoepics.at4j.data.request.TranslateParams
Constructor that initializes the text to be translated.
Translation - Class in io.github.brenoepics.at4j.data
A translation of a text.
Translation(String, String) - Constructor for class io.github.brenoepics.at4j.data.Translation
Constructs a new Translation object.
TRANSLATION - io.github.brenoepics.at4j.data.request.optional.LanguageScope
Represents the "translation" language scope.
TRANSLATION_PARAMETER_INVALID - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
TRANSLATION_SYSTEM_BEING_PREPARED - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
TranslationResponse - Class in io.github.brenoepics.at4j.data.response
This class represents a response that contains a list of translation results.
TranslationResponse() - Constructor for class io.github.brenoepics.at4j.data.response.TranslationResponse
Default constructor that initializes an empty list of translation results.
TranslationResponse(List<TranslationResult>) - Constructor for class io.github.brenoepics.at4j.data.response.TranslationResponse
Constructor that initializes the list of translation results with the provided list.
TranslationResult - Class in io.github.brenoepics.at4j.data
This class represents a response from a translation service.
TranslationResult(String, DetectedLanguage, Collection<Translation>) - Constructor for class io.github.brenoepics.at4j.data.TranslationResult
Constructs a TranslationResponse with a detected language and a collection of translations.
TranslationResult(String, Collection<Translation>) - Constructor for class io.github.brenoepics.at4j.data.TranslationResult
Constructs a TranslationResponse with a collection of translations.
TRANSLITERATION - io.github.brenoepics.at4j.data.request.optional.LanguageScope
Represents the "transliteration" language scope.
TRANSLITERATION_NOT_SUPPORTED - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 

U

UNAUTHORIZED - io.github.brenoepics.at4j.util.rest.RestRequestHttpResponseCode
The Authorization header was missing or invalid.
UnauthorizedException - Exception in io.github.brenoepics.at4j.core.exceptions
When we sent a bad request (HTTP response code 400).
UnauthorizedException(Exception, String, RestRequestInfo, RestRequestResponseInfo) - Constructor for exception io.github.brenoepics.at4j.core.exceptions.UnauthorizedException
Creates a new instance of this class.
UNEXPECTED_ERROR_OCCURRED - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
UNITED_STATES - io.github.brenoepics.at4j.azure.BaseURL
The domain of the Azure Translator API for the United States.
UNSUPPORTED_MEDIA_TYPE - io.github.brenoepics.at4j.util.rest.RestRequestHttpResponseCode
The request entity has a media type which the server or resource does not support.
UnsupportedMediaTypeException - Exception in io.github.brenoepics.at4j.core.exceptions
When we sent a bad request (HTTP response code 400).
UnsupportedMediaTypeException(Exception, String, RestRequestInfo, RestRequestResponseInfo) - Constructor for exception io.github.brenoepics.at4j.core.exceptions.UnsupportedMediaTypeException
Creates a new instance of this class.
USER_AGENT - Static variable in class io.github.brenoepics.at4j.AT4J
The user agent used for requests.

V

valueOf(String) - Static method in enum io.github.brenoepics.at4j.azure.BaseURL
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.github.brenoepics.at4j.azure.lang.LanguageDirection
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.github.brenoepics.at4j.data.request.optional.LanguageScope
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.github.brenoepics.at4j.data.request.optional.ProfanityAction
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.github.brenoepics.at4j.data.request.optional.ProfanityMarker
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.github.brenoepics.at4j.data.request.optional.TextType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.github.brenoepics.at4j.util.rest.RestEndpoint
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.github.brenoepics.at4j.util.rest.RestMethod
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.github.brenoepics.at4j.util.rest.RestRequestHttpResponseCode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
Returns the enum constant of this type with the specified name.
values() - Static method in enum io.github.brenoepics.at4j.azure.BaseURL
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.github.brenoepics.at4j.azure.lang.LanguageDirection
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.github.brenoepics.at4j.data.request.optional.LanguageScope
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.github.brenoepics.at4j.data.request.optional.ProfanityAction
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.github.brenoepics.at4j.data.request.optional.ProfanityMarker
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.github.brenoepics.at4j.data.request.optional.TextType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.github.brenoepics.at4j.util.rest.RestEndpoint
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.github.brenoepics.at4j.util.rest.RestMethod
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.github.brenoepics.at4j.util.rest.RestRequestHttpResponseCode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
Returns an array containing the constants of this enum type, in the order they are declared.
VERSION - Static variable in class io.github.brenoepics.at4j.AT4J
The current AT4J version.

W

WRONG_CREDENTIALS_PROVIDED - io.github.brenoepics.at4j.util.rest.RestRequestResultErrorCode
 
A B C D E F G H I L M N O P Q R S T U V W 
All Classes All Packages